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

Posted:
in macOS edited January 2014
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



Comments

  • Reply 1 of 1
    MarvinMarvin Posts: 14,200moderator
    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.
Sign In or Register to comment.