sh-3.2# ./backup.pl
Can't locate Net/RawIP.pm in @INC (@INC contains: /Library/Perl/Updates/5.10.0 /System/Library/Perl/5.10.0/darwin-thread-multi-2level /System/Library/Perl/5.10.0 /Library/Perl/5.10.0/darwin-thread-multi-2level /Library/Perl/5.10.0 /Network/Library/Perl/5.10.0/darwin-thread-multi-2level /Network/Library/Perl/5.10.0 /Network/Library/Perl /System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2level /System/Library/Perl/Extras/5.10.0 .) at ./web-scanner.pl line 12.
BEGIN failed--compilation aborted at ./web-scanner.pl line 12.
sh-3.2# perl -MCPAN -e "install Net::RawIP"
CPAN: Storable loaded ok (v2.19)
Going to read /var/root/.cpan/Metadata
Database was generated on Mon, 13 Dec 2010 01:34:15 GMT
Net::RawIP is up to date (0.25).
|
|
||||
|
closed as not a real question by Sathya♦, John T, Diago Dec 13 '10 at 6:57
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.
|
The module is not installed where Perl is looking. Before running the script, you can try using the PERL5LIB or PERLLIB to the path where the Module is installed. If you are running bash, you could put the following in your .bashrc:
Alternatively, you could add:
in your Perl script but if you have a lot of Perl scripts, this might not be scalable. Alternatively, you could install the module in one of the directories that is in @INC. Or you could cheat and symbolically link the directory into one of the directories that is in @INC. |
|||
|
|
|
|||
|
|
