That libnet package has nothing to do with Perl.
 
To install Perl modules or bundles you use CPAN (www.cpan.org). You'll need to download the libnet bundle from CPAN (http://search.cpan.org/~gbarr/libnet-1.19/), extract it, then do:
 
sun> perl Makefile.PL
sun> make
sun> make test
sun> make install
 
 
 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Wednesday, April 06, 2005 9:49 AM
To: perl-unix-users@listserv.ActiveState.com
Subject: [Perl-unix-users] Perl FTP

Hello

            I am using a SUN MicroSystem Sun Blade 2000 with Solaris 8, and Perl 5.005_03.

I want to ftp files from one system to other using Perl language.

I read on the perl book that the Net: :FTP is part of the libnet bundle.

 

I download the libnet bundle (libnet-1.02a-sol8-sparc-local.gz) from Sunfreeware.com.

1.  I unzip the file using the gunzip command as follow:

# gunzip libnet-1.02a-sol8-sparc-local.gz

 

2. I loaded the bundle using the pkgadd command as follow:

            # pkgadd -d libnet-1.02a-sol8-sparc-local

           

            The following packages are available:

1         SMClibnet  libnet  (sparc) 1.0.2a

 

Select packages you wish to process :  all

Using </usr/local> as the package base directory

.

.

.

Installation of <SMClibnet> was successful.

 

 

I wrote the following short perl script (test.pl) to test the net FTP.

 

#!/usr/bin/perl -w

 

# created by Oscar

#

use Net: : FTP;

 

print ("testing the FTP procedure\n");

 

I received the following error message:

 

Can't locate Net/FTP.pm in @INC @INC contains:

/usr/perl5/5.00503/sun4-solaris (/usr/perl5/5.00503

/usr/perl5/site_perl/5.005/sun4-solaris /usr/perl5/site_perl/5.005 . )

at ./test.pl line 5.

 

BEGIN failed - compilation aborted at ./test.pl line 5.

 

How can I get the FTP.pm  on my system?

Did is do something wrong?

 

 

 

_______________________________________________
Perl-Unix-Users mailing list
Perl-Unix-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to