or Connect
AppleInsider › Forums › Software › Mac OS X › Can't locate HTTP/Request/Common.pm in @INC Perl problem
New Posts  All Forums:Forum Nav:

Can't locate HTTP/Request/Common.pm in @INC Perl problem

post #1 of 2
Thread Starter 
Hi all:
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 .)

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

post #2 of 2
Quote:
Originally Posted by gandip View Post

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.
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Mac OS X
AppleInsider › Forums › Software › Mac OS X › Can't locate HTTP/Request/Common.pm in @INC Perl problem