From: michael higgins <gentoo.lists@snet.net>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] perl 5.8.6 install/update - @INC not working, solved?
Date: Wed, 13 Jul 2005 19:58:28 -0400 [thread overview]
Message-ID: <20050713195828.3fe36219@localhost> (raw)
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
reply other threads:[~2005-07-14 0:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050713195828.3fe36219@localhost \
--to=gentoo.lists@snet.net \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox