Gentoo Archives: gentoo-user

From: michael higgins <gentoo.lists@××××.net>
To: gentoo-user@l.g.o
Subject: [gentoo-user] perl 5.8.6 install/update - @INC not working, solved?
Date: Thu, 14 Jul 2005 00:05:07
Message-Id: 20050713195828.3fe36219@localhost
1 Hello list.
2
3 I just decided to rebuild perl as I recently noticed that perl wasn't working for me anymore. When I just happened to need to use it, of course.
4
5 As an aside, if perhaps relevant, I had a couple of problems with failed compiles. As is usually is the fix for this machine, I opened the case, and the compile finished. New perl installed, no big deal.
6
7 And then an emerge message indicated I should complete the update via perl-cleaner. Ran perl-cleaner.
8
9 However, still, trying to run even perl -V yields:
10
11 Can't locate Config.pm in @INC (@INC contains: /etc/perl /usr/lib/perl5/site_perl/5.8.5/i686-linux /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i686-linux /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.5/i686-linux /usr/lib/perl5/5.8.5 /usr/local/lib/site_perl .).
12 BEGIN failed--compilation aborted.
13
14 . . .
15
16 I finally noticed that the @INC doesn't include the new perl folder for 5.8.6. Ah.
17
18 Looking into it, it would seem that 'which perl' gives /usr/local/bin/perl. This is, apparently, not a link. It is, however the perl that is broken... but
19
20 ls -l /usr/bin/perl
21 lrwxrwxrwx 1 root root 9 Jul 13 16:46 /usr/bin/perl -> perl5.8.6
22
23 and
24
25 /usr/bin/perl -V
26
27 Does work... as expected. So, what happened? And, how do I fix it?
28
29 # cd /usr/local/bin
30 bin # mv perl perl5.8.5
31
32 Okay. That wasn't so good. I got a failed reference to /usr/local/bin/perl from bash, so I tried:
33
34 # cp /usr/bin/perl /usr/local/bin/perl
35
36 And that seems to work. But, my question is, still, why was there another perl in /usr/local/bin... Could be it got promoted in my path somehow?
37
38 And why would bash still look for /usr/local/bin/perl when I run a script, when /usr/bin has a perl that is working (and is the one that's #!referenced at the top of my script anyway)?
39
40 TIA for any enlightenment in this area. '-)
41
42 --
43 |\ /| | | ~ ~
44 | \/ | |---| `|` ?
45 | |ichael | |iggins \^ /
46 michael[dot]higgins[at]snet[dot]net
47 --
48 gentoo-user@g.o mailing list