On Oct 21, 2006, at 7:12 AM, Peter wrote:
Why did you install Pod::Man in /usr/local?
because I use the CPAN shell to install Perl modules beside MacPorts
cpan shell with macports perl defaults to installing into a directory in /opt/local
and the PERL5LIB variable is set:
root# echo $PERL5LIB /usr/local/lib/perl5:/usr/local/lib/perl5/site_perl:/opt/local/ lib/perl5
but macports doesnt see it.
Well, as you can see from the error above, macports' perl isn't searching /usr/local (since the error shows you @INC)
Yes, and so my question was : why isn't macports' perl searching / usr/local although PERL5LIB variable is set ?
Answers are still VERY welcome.
Because PERL5LIB isn't set when macports runs (because macports sanitizes the environment variables before running) You can get macports to keep PERL5LIB by adding it to extra_env in / opt/local/etc/ports/ports.conf -- Daniel J. Luke +========================================================+ | *---------------- dluke@geeklair.net ----------------* | | *-------------- http://www.geeklair.net -------------* | +========================================================+ | Opinions expressed are mine and do not necessarily | | reflect the opinions of my employer. | +========================================================+