wget doesnt build for me - Perl Problem
Hello all, finally I managed my switch from DP to macports list . . . and now I need your help with a Perl problem. When I try to build wget (but same prob w/ other Perl depending ports too) building stops w/ the following error:
Can't locate Pod/Man.pm in @INC (@INC contains: /opt/local/lib/ perl5/5.8.8/darwin-2level /opt/local/lib/perl5/5.8.8 /opt/local/lib/ perl5/site_perl/5.8.8/darwin-2level /opt/local/lib/perl5/site_perl/ 5.8.8 /opt/local/lib/perl5/site_perl /opt/local/lib/perl5/ vendor_perl/5.8.8/darwin-2level /opt/local/lib/perl5/vendor_perl/ 5.8.8 /opt/local/lib/perl5/vendor_perl .) at /opt/local/bin/pod2man line 16.
But: Pod::Man is installed at /usr/local/lib/perl5/5.8.8/Pod/Man.pm 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. Any help is highly appreciated. Peter
On Oct 20, 2006, at 8:07 AM, Peter wrote:
finally I managed my switch from DP to macports list . . . and now I need your help with a Perl problem.
When I try to build wget (but same prob w/ other Perl depending ports too) building stops w/ the following error:
I didn't think wget depended on amy perl (it certainly isn't listed in the portfile)
Can't locate Pod/Man.pm in @INC (@INC contains: /opt/local/lib/ perl5/5.8.8/darwin-2level /opt/local/lib/perl5/5.8.8 /opt/local/ lib/perl5/site_perl/5.8.8/darwin-2level /opt/local/lib/perl5/ site_perl/5.8.8 /opt/local/lib/perl5/site_perl /opt/local/lib/ perl5/vendor_perl/5.8.8/darwin-2level /opt/local/lib/perl5/ vendor_perl/5.8.8 /opt/local/lib/perl5/vendor_perl .) at /opt/ local/bin/pod2man line 16.
But:
Pod::Man is installed at /usr/local/lib/perl5/5.8.8/Pod/Man.pm
Why did you install Pod::Man in /usr/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)
Any help is highly appreciated.
It looks like pod2man is your culprit, but on my system: % port provides /opt/local/bin/pod2man /opt/local/bin/pod2man is provided by: perl5.8 % port provides /opt/local/lib/perl5/5.8.8/Pod/Man.pm /opt/local/lib/perl5/5.8.8/Pod/Man.pm is provided by: perl5.8 Maybe you need to uninstall/reinstall the perl port? -- Daniel J. Luke +========================================================+ | *---------------- dluke@geeklair.net ----------------* | | *-------------- http://www.geeklair.net -------------* | +========================================================+ | Opinions expressed are mine and do not necessarily | | reflect the opinions of my employer. | +========================================================+
Hi Daniel, thx for your answer. Daniel J. Luke wrote:
I didn't think wget depended on amy perl (it certainly isn't listed in the portfile)
Can't locate Pod/Man.pm in @INC (@INC contains: /opt/local/lib/ perl5/5.8.8/darwin-2level /opt/local/lib/perl5/5.8.8 /opt/local/ lib/perl5/site_perl/5.8.8/darwin-2level /opt/local/lib/perl5/ site_perl/5.8.8 /opt/local/lib/perl5/site_perl /opt/local/lib/ perl5/vendor_perl/5.8.8/darwin-2level /opt/local/lib/perl5/ vendor_perl/5.8.8 /opt/local/lib/perl5/vendor_perl .) at /opt/ local/bin/pod2man line 16.
But:
Pod::Man is installed at /usr/local/lib/perl5/5.8.8/Pod/Man.pm
far as I can see from the error Pod/Man.pm and so Perl is needed to create wget.rc
Why did you install Pod::Man in /usr/local?
because I use the CPAN shell to install Perl modules beside MacPorts
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. Peter
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. | +========================================================+
Hi Daniel, thank you VERY much for your help !
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
Yes, but I configured CPANplus to install not in /opt because I wanted to keep my custom Perl installs separated . . .
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
Next time I run into trouble with MacPorts Perl I will try that - thank you for this info . . . in the meantime I solved my problem w/ wget by installing the missing .pm manually into /opt/local ( I was too impatient ;-) ) Thanks again Peter
On Oct 23, 2006, at 12:36 PM, Peter wrote:
cpan shell with macports perl defaults to installing into a directory in /opt/local
Yes, but I configured CPANplus to install not in /opt because I wanted to keep my custom Perl installs separated . . .
Just so you know, macports provided perl modules will install into (or at least are supposed to install into) the vendor_perl location, while CPAN/self installed modules would install into the site_perl location. -- Daniel J. Luke +========================================================+ | *---------------- dluke@geeklair.net ----------------* | | *-------------- http://www.geeklair.net -------------* | +========================================================+ | Opinions expressed are mine and do not necessarily | | reflect the opinions of my employer. | +========================================================+
participants (2)
-
Daniel J. Luke
-
Peter