Can't locate HTTP/Request/Common.pm in @INC Perl problem
Hi all:
I ran into following problem while running a perl script. Here is error
I am aware that it is requiring certain Http Module. I use to resolve this issue in Ubuntu using package manager but in Mac I have no idea how to ? I am using
OSX 10.7
Xcode
Macport

I ran into following problem while running a perl script. Here is error
Quote:
Can't locate HTTP/Request/Common.pm in @INC (@INC contains: /opt/local/lib/perl5/site_perl/5.12.3/darwin-multi-2level /opt/local/lib/perl5/site_perl/5.12.3 /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level /opt/local/lib/perl5/vendor_perl/5.12.3 /opt/local/lib/perl5/5.12.3/darwin-multi-2level /opt/local/lib/perl5/5.12.3 /opt/local/lib/perl5/site_perl /opt/local/lib/perl5/vendor_perl .)
Can't locate HTTP/Request/Common.pm in @INC (@INC contains: /opt/local/lib/perl5/site_perl/5.12.3/darwin-multi-2level /opt/local/lib/perl5/site_perl/5.12.3 /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level /opt/local/lib/perl5/vendor_perl/5.12.3 /opt/local/lib/perl5/5.12.3/darwin-multi-2level /opt/local/lib/perl5/5.12.3 /opt/local/lib/perl5/site_perl /opt/local/lib/perl5/vendor_perl .)
I am aware that it is requiring certain Http Module. I use to resolve this issue in Ubuntu using package manager but in Mac I have no idea how to ? I am using
OSX 10.7
Xcode
Macport


Comments
I am aware that it is requiring certain Http Module. I use to resolve this issue in Ubuntu using package manager but in Mac I have no idea how to ? I am using
OSX 10.7
Xcode
Macport
Your @INC variable is looking for Perl in the Macports /opt folder, not the system folder. The file it's looking for should be in /System/Library/Perl/Extras/5.12/HTTP/Request/Common.pm.