1. I opened command promt and executed "cpan install Net::SSH::Perl" and got the following error.

Microsoft Windows [Version 6.2.9200] (c) 2012 Microsoft Corporation. All rights reserved. C:\Users\supriyas>sudo cpan Net::SSH 'sudo' is not recognized as an internal or external command, operable program or batch file. C:\Users\supriyas>cpan install Net::SSH::Perl It looks like you don't have a C compiler and make utility installed. + Trying to install dmake and the MinGW gcc compiler using the Perl Package Man +ager. This may take a a few minutes... Downloading ActiveState Package Repository packlist...failed 500 Can't + connect t o ppm4.activestate.com:80 (10061) ppm.bat install failed: Can't find any package that provides MinGW It looks like the installation of dmake and MinGW has failed. You wil +l not be able to run Makefile commands or compile C extension code. Please +check your internet connection and your proxy settings! CPAN: Term::ANSIColor loaded ok (v4.02) CPAN: Storable loaded ok (v2.45) CPAN: LWP::UserAgent loaded ok (v6.05) CPAN: Time::HiRes loaded ok (v1.9726) Fetching with LWP: http://ppm.activestate.com/CPAN/authors/01mailrc.txt.gz LWP failed with code[500] message[Can't connect to ppm.activestate.com +:80 (10061 )] Warning: no success downloading 'C:\Perl\cpan\sources\authors\01mailrc +.txt.gz.tm p8472'. Giving up on it. Fetching with LWP: http://cpan.perl.org/authors/01mailrc.txt.gz LWP failed with code[500] message[Can't connect to cpan.perl.org:80 (1 +0061)] Warning: no success downloading 'C:\Perl\cpan\sources\authors\01mailrc +.txt.gz.tm p8472'. Giving up on it. Warning: no success downloading 'C:\Perl\cpan\sources\authors\01mailrc +.txt.gz.tm p8472'. Giving up on it. No external ftp command available Fetching with LWP: http://ppm.activestate.com/CPAN/authors/01mailrc.txt.gz LWP failed with code[500] message[Can't connect to ppm.activestate.com +:80 (10061 )] Warning: no success downloading 'C:\Perl\cpan\sources\authors\01mailrc +.txt.gz.tm p8472'. Giving up on it. Fetching with LWP: http://cpan.perl.org/authors/01mailrc.txt.gz LWP failed with code[500] message[Can't connect to cpan.perl.org:80 (1 +0061)] Warning: no success downloading 'C:\Perl\cpan\sources\authors\01mailrc +.txt.gz.tm p8472'. Giving up on it. Warning: no success downloading 'C:\Perl\cpan\sources\authors\01mailrc +.txt.gz.tm p8472'. Giving up on it. No external ftp command available CPAN: YAML::XS loaded ok (v0.41) Please check, if the URLs I found in your configuration file (http://ppm.activestate.com/CPAN, http://cpan.perl.org) are valid. The urllist can be edited. E.g. with 'o conf urllist push ftp://myurl/' Could not fetch authors/01mailrc.txt.gz

2.and just gave "Cpan" so that it will enter to the capn promt where i can give "install Net::SSH::Perl" but giving Cpan alone is opening the capn GUI.

3. Got a Net::SSH::Perl pm file and saved it in perl/lib/Net but didn't work


In reply to Re^2: Perl script on networks. by supriyas
in thread Perl script on networks. by supriyas

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.