how to use perl -MCPAN -e'install Net::SFTP'

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mdshafi01
    New Member
    • Jan 2008
    • 36

    how to use perl -MCPAN -e'install Net::SFTP'

    hello,
    I am trying to install this package from cpan using perl -MCPAN -e'install Net::SFTP' this command.
    but i am unable to instlal this package.


    I guess to use this comman on command probmp we need to have some configurations we have to do.

    please can any one tell me before using this command really what configurations are required.


    shafi
  • numberwhun
    Recognized Expert Moderator Specialist
    • May 2007
    • 3467

    #2
    Originally posted by mdshafi01
    hello,
    I am trying to install this package from cpan using perl -MCPAN -e'install Net::SFTP' this command.
    but i am unable to instlal this package.


    I guess to use this comman on command probmp we need to have some configurations we have to do.

    please can any one tell me before using this command really what configurations are required.


    shafi
    First, what OS are you using Perl on? Second, have you run the CPAN shell before this? If not, then you might need to just run "perl -MCPAN -e shell" and go through the initial configuration. What options you choose will depend on your system and what you are doing. You should read everything on the screen and if you don't know what something is, then just take the default. There is one question where it asks you if you want to ask, follow or something else. I would choose "follow" to make your life easier. That will install dependencies for the modules you are installing, automatically.

    Regards,

    Jeff

    Comment

    • mdshafi01
      New Member
      • Jan 2008
      • 36

      #3
      I am trying to install this package on windows plat form.
      please can any one tell what commands we should used to install this packages.

      what configurations we have to do.

      when i use ppm install package name i am getting following error.

      [IMG]D:\ccp\ppm error.bmp[/IMG]


      please tell me how to configure this


      i am getting failed 500 connt connect to active.... 80 some error i am getting.

      Comment

      • numberwhun
        Recognized Expert Moderator Specialist
        • May 2007
        • 3467

        #4
        Originally posted by mdshafi01
        I am trying to install this package on windows plat form.
        please can any one tell what commands we should used to install this packages.

        what configurations we have to do.

        when i use ppm install package name i am getting following error.

        [IMG]D:\ccp\ppm error.bmp[/IMG]


        please tell me how to configure this


        i am getting failed 500 connt connect to active.... 80 some error i am getting.
        Ok, so you are on Windows using the Active State version of Perl. It would be easier for you if you ran the PPM gui from the start menu. You search for the module you want to install and install it. Its pretty easy and no configuration really needed from what I remember. I haven't used it on the command line so I cannot help you there.

        Regards,

        Jeff

        Comment

        • KevinADC
          Recognized Expert Specialist
          • Jan 2007
          • 4092

          #5
          Originally posted by mdshafi01
          I am trying to install this package on windows plat form.
          please can any one tell what commands we should used to install this packages.

          what configurations we have to do.

          when i use ppm install package name i am getting following error.

          [IMG]D:\ccp\ppm error.bmp[/IMG]


          please tell me how to configure this


          i am getting failed 500 connt connect to active.... 80 some error i am getting.
          You may need to turn off any firwall software running or try and add ppm to the list of programs that can access the internet.

          Comment

          • mdshafi01
            New Member
            • Jan 2008
            • 36

            #6
            Now i have executed ppm on run one windows apperard. But it is not showing any package names so that i can install that package one my system. It is required to do any invironemt variables to be configured or what.

            Because i am exectuing this comman on my windows xp operating sytem.

            shafi

            Originally posted by numberwhun
            Ok, so you are on Windows using the Active State version of Perl. It would be easier for you if you ran the PPM gui from the start menu. You search for the module you want to install and install it. Its pretty easy and no configuration really needed from what I remember. I haven't used it on the command line so I cannot help you there.

            Regards,

            Jeff

            Comment

            • nithinpes
              Recognized Expert Contributor
              • Dec 2007
              • 410

              #7
              Originally posted by mdshafi01
              Now i have executed ppm on run one windows apperard. But it is not showing any package names so that i can install that package one my system. It is required to do any environemt variables to be configured or what.

              Because i am exectuing this comman on my windows xp operating sytem.

              shafi
              If you are using this in your office/if there is any proxy settings, add the following three environment variables under system variables:

              name: http_proxy
              value: your proxy server(e.g http://internet:8085)

              name: http_proxy_user
              value: your username(Window s login)

              name: http_proxy_pass
              value: user password
              Last edited by nithinpes; Feb 11 '08, 01:55 PM. Reason: gave proper space to avoid confusion

              Comment

              • KevinADC
                Recognized Expert Specialist
                • Jan 2007
                • 4092

                #8
                try:

                c:\>ppm help

                Comment

                Working...