Do you have a question? Post it now! No Registration Necessary. Now with pictures!
October 28, 2004, 5:39 pm
rate this thread
> I installed perl-5.8.0 with -Dprefix=/usr, but @INC shows everything in
> /usr/local. How do I fix that?
Does it need to be fixed?
I pose that question because it is common to have the programs and
libraries supplied by the vendor located under /usr while programs and
libraries subsequently installed by the sysadmin under /usr/local or
some other node (Randal Schwartz uses /opt for upgrades of Perl).
There's nothing mandatory about this, but it's the default behavior on
When I got an iBook in May, it came with Perl 5.8.1, but I immediately
wanted to upgrade to 5.8.4 (the latest version then available). At
first I wanted that upgrade under /usr, because I was so accustomed to
the #!/usr/bin/perl shebang line on my Linux box (where 5.6.0 came from
RedHat and I never successfully upgraded). Randal and other friends
advised me how to relax and allow a default installation, and that went
automatically to /usr/local.
I then had to prepend my path so that Perl would find
/usr/local/bin/perl5.8.4 before /usr/bin/perl5.8.0 and convert shebang
lines on scripts I was bringing over from other systems. The latter was
done with one script -- and could have been done with a one-liner. I
had to change that path in line 2 of the 'cpan' utility as well
And I have had no problems since. Could you live with that?