You installed it wrong.  First of all the module is Net::Telnet, so it needs
to be in the Net/ subdirectory, like this...

/usr/perl5/5.00503/sun4-solaris/Net

Second, some modules (not all) need to be compiled or have some other things
that need to be done during the installation.  So if copying it to that
folder doesn't work you will need to install it the right way.

--> first run this
perl Makefile.PL

This creates a Makefile file.

---> then this
make

This "builds" the module (using the Makefile that the first script created)
which could involve any number of things including checking to make sure
that the prerequisits are installed.

--> then this
make test

This runs the tests that were shipped with the module (if any).  Tests are
created to make sure that your system is able to use it.

--> then this
make install

This copies the module to the appropritate directory in your library so that
you can use it.

....If you are on Windows using ActiveState Perl you will want to use
nmake.exe instead of make (usually found on Unix).  nmake.exe can be found
on the Microsoft FTP server and is also shipped with MS Visual C++.  I can't
remember where nmake.exe is on the MS site, so you will have to do some
searching or maybe someone else knows off the top of their heads.

The install instructions will be listed in the README file if there is one,
so read that.

Rob



-----Original Message-----
From: OZGUR GENC [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 7:24 AM
To: perl beginners
Subject: Perl Modules


Hi All,
I would like to use perl modules.
I downloaded the module (Telnet.pm) and I copied it to
/usr/perl5/5.00503/sun4-solaris . But I still get following error
messages.
What should I do? 

Can't locate Net/Telnet.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
.../batch_get.txt line 2.
BEGIN failed--compilation aborted at ./batch_get.txt line 2



My script:


#!/usr/local/bin/perl
use Net::Telnet ();
.....
######### File for passwords ######################

***************************************************************************

This e-mail and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you are not the intended recipient you are hereby notified that any
dissemination, forwarding, copying or use of any of the information is
prohibited.

The opinions expressed in this message belong to sender alone. There is no
implied endorsement by TURKCELL.

This e-mail has been scanned for all known computer viruses.

***************************************************************************

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to