Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Can't locate Net/Telnet.pm in @INC

by Anonymous Monk
on Jan 31, 2003 at 13:53 UTC ( #231598=perlquestion: print w/ replies, xml ) Need Help??
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I'm new to perl. can anyone help with this error. Can't locate Net/Telnet.pm in @INC (@INC contains: c:/Perl/lib c:/Perl/site/lib Begin failed compilation aborted )

Edit by tye

Comment on Can't locate Net/Telnet.pm in @INC
Re: @INC
by Jaap (Curate) on Jan 31, 2003 at 14:03 UTC
    3 tips:

    1. Register with perlmonks.org, so you can find your posts back
    2. Tell us what OS you use
    3. Did you try to install the Net::Telnet module?
Re: @INC
by AcidHawk (Vicar) on Jan 31, 2003 at 14:09 UTC

    I think we can assume you are using a windows os from c:/Perl/lib I assume that you are then using ActivePerl.

    You need to install the Net::Telnet module which can be found here if you are using ActivePerl 5.6 or here if you are using ActivePerl 5.8

    -----
    Of all the things I've lost in my life, its my mind I miss the most.
      Using straweberry perl

        Using straweberry perl

        Yes, using straweberry perl is wonderful

      This looks promising, but when i click on the link it asks for userid and password...

        Quick, travel back in time to 2003 :)

        The Delorean is at the shop? Awww :)

        The current perl version is 5.16, 5.6 is so twelve years ago, it is completely unsupported

        You can see here, http://code.activestate.com/ppm/Net-Telnet/

        But you can still install modules yourself, see A Guide To Installing Modules

        Although, I hear ActiveState has paid support , it might offer it for 5.6 , but it doesn't look like it

        Use the PPM GUI included with your ActivePerl 5.6. Through the PPM GUI they are free. Through the website they are paid.
Re: @INC
by elbow (Scribe) on Jan 31, 2003 at 14:09 UTC
    Your script is trying to use a module that you don't have! If you look at the lib directory where Perl is installed, you should see a list of folders. One of these is 'Net' and the Telnet module should be located in there.

    I'd suggest you visit CPAN to download.

    elbow
Re: Can't locate Net/Telnet.pm in @INC
by strat (Canon) on Feb 01, 2003 at 10:36 UTC
    If you use the perl downloaded from http://www.activestate.com/, try the shell-program ppm to try to install precompiled packages, e.g.
    I:\>ppm PPM interactive shell (2.1.6) - type 'help' for available commands. PPM> help Commands: exit - leave the program. help [command] - prints this screen, or help on 'command'. install PACKAGES - installs specified PACKAGES. quit - leave the program. query [options] - query information about installed packages. remove PACKAGES - removes the specified PACKAGES from the system search [options] - search information about available packages. set [options] - set/display current options. verify [options] - verifies current install is up to date. version - displays PPM version number PPM> search Net::Telnet Packages available from http://ppm.ActiveState.com/cgibin/PPM/ppmserve +r.pl?urn:/ PPMServer: Net-Telnet [3.03] Interact with TELNET port or other TCP por +ts Net-Telnet-Cisco [1.10] automate Cisco management Net-Telnet-Netscreen [1.01] interact with a Netscreen firewall
    and if Net::Telnet is found (as above), download and install it by
    PPM> install Net-Telnet
    see also: http://perlmonks.thepen.com/147012.html

    if not, then go and try http://www.cpan.org/, e.g by typing into shell

    perl -MCPAN -e shell
    and answer all the questions (if you don't know just press enter, only entering a http_proxy and ftp_proxy is important if you use any). Then enter help to get some help

    Best regards,
    perl -e "s>>*F>e=>y)\*martinF)stronat)=>print,print v8.8.8.32.11.32"

      How can i test the installation? I can't use the script that failed earlier when I received the error message telling me that I didn't have the net-telnet...

        If you can't use the other script (why not?), then write a new one and run it.

        Running 'perldoc Net::Telnet' will tell you if it's installed. Then you can also read the documentation to help you write your new script.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://231598]
Approved by rob_au
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2014-04-20 21:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (488 votes), past polls