Operating System - HP-UX
1834882 Members
2386 Online
110071 Solutions
New Discussion

perl error message - OS:10.20

 
Choi Eun Kyoung
Occasional Advisor

perl error message - OS:10.20

I perl installed in HU-UX 10.20. But When the script execute, the error message display as below.

error message:
Can't locate Net/FTP.pm in @INC (@INC contains: /opt/perl5/lib/5.6.1/PA-RISC1.1 /opt/perl5/lib/5.6.1 /opt/perl5/lib/site_perl/5.6.1/PA-RISC1.1 /opt/perl5/lib/site_perl/5.6.1 /opt/perl5/lib/site_perl .) at /home/mireport line 22.
BEGIN failed--compilation aborted at /home/mireport line 22.
4 REPLIES 4
Steven Sim Kok Leong
Honored Contributor

Re: perl error message - OS:10.20

Hi,

1) Check where your FTP.pm resides:

# find / -name FTP.pm -print

2) Update your path:

If eg. your FTP.pm resides here:

/usr/lib/perl5/site_perl/5.6.1/Net/FTP.pm

Then do this:

# ln -s /usr/lib/perl5 /opt/perl5/lib

Hope this helps. Regards.

Steven Sim Kok Leong
Niraj Kumar Verma
Trusted Contributor

Re: perl error message - OS:10.20

Hi,

There is a problem with perl inclide path
You can print the path using

# perl -e "print @INC"

get the perl module LWP::conn

and install in the above printed path any where . It will work.

you can download it form

www.perl.com
www.cpan.org

-Niraj
Niraj.Verma@philips.com
Niraj Kumar Verma
Trusted Contributor

Re: perl error message - OS:10.20

Hey !!

try this.

# cd
# find ./ -name Net -print

you will get the path

copy the attached ftp.pm its for perl version 6.xx


--Niraj
Niraj.Verma@philips.com
H.Merijn Brand (procura
Honored Contributor

Re: perl error message - OS:10.20

If the link tips above don't work, get a recent copy from http://search.cpan.org/search?dist=libnet (**NOT** from LWP::conn, but from the libnet module, where the correct FTP resides)

# wget http://www.cpan.org/authors/id/GBARR/libnet-1.11.tar.gz
# gzip -d < libnet-1.11.tar.gz | tar xvf -
# cd libnet-1.11
# perl Makefile.PL
# make
# make test
# make install

For any missing module, go to http://search.cpan.org/ and type the module name in the search box
Enjoy, Have FUN! H.Merijn