|
|
| Obantec Support 2004-07-08, 8:57 pm |
| Hi
I seem to have killed perl in that i have tried to build the latest version
and although it all seem to go ok it built into /usr/local/lib/perl5 not
/usr/lib/perl5 on my RH7.2 box.
now perl -v is still showing 5.6.0 but @INC has changed to reflect the new
version 5.8.4
can someone hint how to restore @INC
i did a google but it only finds INC documents.
Mark
| |
| Joe Smith 2004-07-09, 3:55 am |
| Obantec Support wrote:
> I seem to have killed perl in that i have tried to build the latest version
> and although it all seem to go ok it built into /usr/local/lib/perl5 not
> /usr/lib/perl5 on my RH7.2 box.
>
> now perl -v is still showing 5.6.0 but @INC has changed to reflect the new
> version 5.8.4
> can someone hint how to restore @INC
The value of @INC is compiled in. You change it by recompiling perl from
the sources. What method are you using to check @INC? One way is this:
solaris% /usr/perl5/bin/perl -MNo::Such::Module -e 1
Can't locate No/Such/Module.pm in @INC (@INC contains:
/usr/perl5/5.00503/sun4-solaris /usr/perl5/5.00503
/usr/perl5/site_perl/5.005/sun4-solaris /usr/perl5/site_perl/5.005 .).
BEGIN failed--compilation aborted.
solaris% /usr/local/bin/perl -MNo::Such::Module -e 1
Can't locate No/Such/Module.pm in @INC (@INC contains:
/usr/local/lib/perl5/5.8.3/sun4-solaris /usr/local/lib/perl5/5.8.3
/usr/local/lib/perl5/site_perl/5.8.3/sun4-solaris
/usr/local/lib/perl5/site_perl/5.8.3 /usr/local/lib/perl5/site_perl .).
BEGIN failed--compilation aborted.
Each of the two binaries has their own @INC; changes to /usr/local/bin/perl
have no effect on /usr/perl5/bin/perl, and /usr/bin/perl is a symlink
to one of those two binaries.
-Joe
| |
| Obantec Support 2004-07-09, 3:55 am |
| "Joe Smith" <Joe.Smith@inwap.com> wrote in message
news:i_qHc.51836$XM6.4673@attbi_s53...
> Obantec Support wrote:
>
version[color=darkred]
new[color=darkred]
>
> The value of @INC is compiled in. You change it by recompiling perl from
> the sources. What method are you using to check @INC? One way is this:
>
> solaris% /usr/perl5/bin/perl -MNo::Such::Module -e 1
> Can't locate No/Such/Module.pm in @INC (@INC contains:
> /usr/perl5/5.00503/sun4-solaris /usr/perl5/5.00503
> /usr/perl5/site_perl/5.005/sun4-solaris /usr/perl5/site_perl/5.005 .).
> BEGIN failed--compilation aborted.
>
> solaris% /usr/local/bin/perl -MNo::Such::Module -e 1
> Can't locate No/Such/Module.pm in @INC (@INC contains:
> /usr/local/lib/perl5/5.8.3/sun4-solaris /usr/local/lib/perl5/5.8.3
> /usr/local/lib/perl5/site_perl/5.8.3/sun4-solaris
> /usr/local/lib/perl5/site_perl/5.8.3 /usr/local/lib/perl5/site_perl .).
> BEGIN failed--compilation aborted.
>
> Each of the two binaries has their own @INC; changes to
/usr/local/bin/perl
> have no effect on /usr/perl5/bin/perl, and /usr/bin/perl is a symlink
> to one of those two binaries.
> -Joe
Hi Joe
I use
perl -e 'for (@INC) { printf "%d %s\n", $i++, $_}'
(from my perl cookbook)
to report @INC
its odd that perl -v report 5.6.0 and yet @INC refers to 5.8.4 paths
on this install RH7.2 perl binary is in /usr/bin and not a symlink to
/usr/local/bin/perl as perl binary 5.8.4 is there.
so question is i guess how to force compile replace perl 5.6.0
Mark
| |
| Joe Smith 2004-07-09, 8:56 pm |
| Obantec Support wrote:
> so question is i guess how to force compile replace perl 5.6.0
There were significant bugs in 5.6.0; 5.6.2 is better.
wget http://www.perl.com/CPAN/src/perl-5.6.2.tar.gz
mkdir src; cd src
tar xvfz ../perl-5.6.2.tar.gz
cd perl-5.6.2
less INSTALL
bash
eval `/usr/bin/perl -V:config_args`
./Configure $config_args
make
make test
make install
-Joe
| |
| Obantec Support 2004-07-09, 8:56 pm |
| "Joe Smith" <Joe.Smith@inwap.com> wrote in message
news:7LAHc.50741$IQ4.8646@attbi_s02...
> Obantec Support wrote:
>
>
> There were significant bugs in 5.6.0; 5.6.2 is better.
>
> wget http://www.perl.com/CPAN/src/perl-5.6.2.tar.gz
> mkdir src; cd src
> tar xvfz ../perl-5.6.2.tar.gz
> cd perl-5.6.2
> less INSTALL
> bash
> eval `/usr/bin/perl -V:config_args`
> ./Configure $config_args
> make
> make test
> make install
>
> -Joe
Hi Joe
I understand your instructions but ./Configure $config_args reports an error
or 2 which jumps of the screen before i can see it. Looks like a couple of
the $config_args values are not recognised.
Mark
| |
| Obantec Support 2004-07-10, 4:02 am |
| "Joe Smith" <Joe.Smith@inwap.com> wrote in message
news:7LAHc.50741$IQ4.8646@attbi_s02...
> Obantec Support wrote:
>
>
> There were significant bugs in 5.6.0; 5.6.2 is better.
>
> wget http://www.perl.com/CPAN/src/perl-5.6.2.tar.gz
> mkdir src; cd src
> tar xvfz ../perl-5.6.2.tar.gz
> cd perl-5.6.2
> less INSTALL
> bash
> eval `/usr/bin/perl -V:config_args`
> ./Configure $config_args
> make
> make test
> make install
>
> -Joe
Hi Joe
re my last reply the 2 problem values in config_args are
[root@proteus0 perl-5.6.2]# eval `/usr/bin/perl -V:config_args`
[root@proteus0 perl-5.6.2]# ./Configure $config_args
Configure: unknown option -march=i386
Configure: unknown option -mcpu=i686
Usage: Configure [-dehrsEKOSV] [-f config.sh] [-D symbol] [-D symbol=value]
[-U symbol] [-U symbol=] [-A command:symbol...]
<snipped rest of Configure text>
[root@proteus0 perl-5.6.2]# Configure: unknown option -march=i386
bash: Configure:: command not found
[root@proteus0 perl-5.6.2]# Configure: unknown option -mcpu=i686
bash: Configure:: command not found
[root@proteus0 perl-5.6.2]#
Mark
|
|
|
|