Install net in Perl: Telnet Module

Source: Internet
Author: User
Tags apache error log
Apache Error Log:
Can't locate net/telnet. pm IN @ INC (@ INC contains: C:/perl/lib C:/perl/site/lib .) at E: \ proj \ PHP \ san2 \ source ~ 1 \ webser ~ 1 \ System \ snmpmg ~ 1. pl line 3.

Can't locate object method "new" via package "Net: Telnet" (perhaps you forgot to load "Net: Telnet "?) At E: \ proj \ PHP \ san2 \ source ~ 1 \ webser ~ 1 \ System \ snmpmg ~ 1. pl line 12.

Solve the above problems:
1. Go to search.cpan.org to download a net: Telnet (http://search.cpan.org/CPAN/authors/id/J/JR/JROGERS/Net-Telnet-3.03.tar.gz), put the decompressed Telnet. PM under c: \ Perl \ site \ Lib \ net.
2. Then execute ppm install net: Telnet on the command line to install the SDK, instead of simply copying it.
For example:
C: \ Documents ents and Settings \ Evan> ppm install net: Telnet
Installing package 'Net-Telnet '...
Bytes transferred: 48478
Installing c: \ Perl \ HTML \ site \ Lib \ net \ telnet.html
Installing c: \ Perl \ site \ Lib \ net \ Telnet. PM
Writing C: \ Perl \ site \ Lib \ auto \ net \ Telnet \. packlist

C: \ Documents ents and Settings \ Evan>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.