wget doesnt build for me - Perl Problem
Daniel J. Luke
dluke at geeklair.net
Sat Oct 21 09:41:00 PDT 2006
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 at geeklair.net ----------------* |
| *-------------- http://www.geeklair.net -------------* |
+========================================================+
| Opinions expressed are mine and do not necessarily |
| reflect the opinions of my employer. |
+========================================================+
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.macosforge.org/pipermail/macports-users/attachments/20061021/ac649b22/PGP.bin
More information about the macports-users
mailing list