From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1DsrDv-0005t1-EU for garchives@archives.gentoo.org; Thu, 14 Jul 2005 00:05:07 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j6E038bv024446; Thu, 14 Jul 2005 00:03:08 GMT Received: from ylpvm53.prodigy.net (ylpvm53-ext.prodigy.net [207.115.57.84]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j6DNwTFZ008036 for ; Wed, 13 Jul 2005 23:58:30 GMT Received: from localhost (146.210.252.64.snet.net [64.252.210.146] (may be forged)) (authenticated bits=0) by ylpvm53.prodigy.net (8.12.10 auth mps linux/8.12.10) with ESMTP id j6DNw7jr019853 for ; Wed, 13 Jul 2005 19:58:07 -0400 Date: Wed, 13 Jul 2005 19:58:28 -0400 From: michael higgins To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] perl 5.8.6 install/update - @INC not working, solved? Message-ID: <20050713195828.3fe36219@localhost> X-Mailer: Sylpheed-Claws 1.0.4a (GTK+ 1.2.10; i686-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archives-Salt: ccdbe248-9d6a-431e-93b2-9fb75101ce85 X-Archives-Hash: 6e5c13f5a6999bf5f85f7b3eb2f77ae3 Hello list. 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. 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. And then an emerge message indicated I should complete the update via perl-cleaner. Ran perl-cleaner. However, still, trying to run even perl -V yields: 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 .). BEGIN failed--compilation aborted. . . . I finally noticed that the @INC doesn't include the new perl folder for 5.8.6. Ah. 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 ls -l /usr/bin/perl lrwxrwxrwx 1 root root 9 Jul 13 16:46 /usr/bin/perl -> perl5.8.6 and /usr/bin/perl -V Does work... as expected. So, what happened? And, how do I fix it? # cd /usr/local/bin bin # mv perl perl5.8.5 Okay. That wasn't so good. I got a failed reference to /usr/local/bin/perl from bash, so I tried: # cp /usr/bin/perl /usr/local/bin/perl 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? 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)? TIA for any enlightenment in this area. '-) -- |\ /| | | ~ ~ | \/ | |---| `|` ? | |ichael | |iggins \^ / michael[dot]higgins[at]snet[dot]net -- gentoo-user@gentoo.org mailing list