Photius has asked for the wisdom of the Perl Monks concerning the following question:

I'm using ActiveState Perl 5.8.8 and trying to install package Net::SFTP using ppm. I currently have the following two repositories configured in ppm:
http://ppm4.activestate.com/MSWin32-x86/5.8/822/package.xml http://theoryx5.uwinnipeg.ca/ppms/package.xml
Using ppm to select and install that package gives the error below. Is Net-SFTP a viable package under ActiveState? Any ideas on how to handle this?
Net-SFTP marked for install WARNING: Can't find any package that provide Convert-PEM for Net-SSH-P +erl Net-SFTP depends on Net-SSH-Perl Net-SFTP depends on Crypt-DH Net-SFTP depends on Crypt-IDEA Net-SFTP depends on Math-Pari Net-SFTP depends on String-CRC32 Net-SFTP depends on Math-GMP Net-SFTP depends on Crypt-DSA ERROR: Can't find any package that provide Convert-PEM for Net-SSH-Per +l Installing package ... Downloading Net-SFTP-0.1 ... done Unpacking Net-SFTP-0.1 ... done Generating HTML for Net-SFTP-0.1 ... done Updating files in site area ... done Installing package done

Replies are listed 'Best First'.
Re: Trouble installing Net::SFTP under ActiveState
by glasswalk3r (Friar) on Mar 12, 2009 at 18:12 UTC

    Add more PPM repositories. Changes that you will find a PPM package that you need will be higher.

    There is a chance that the PPD file for Net::SFTP is wrong by using a diferent name of the Convert-PEM module/distribution.

    If Convert-PEM exists and the name is correct, maybe the module just doesn't exists as a PPM package. You can try to create it, it's not that hard. Actually, it will be hard if you're in Windows and needs to compile C/C++ libraries that depends on libraries from Windows. You will need to check.

    This site should help you as well: http://cpan.uwinnipeg.ca/module/Convert::PEM.

    Alceu Rodrigues de Freitas Junior
    ---------------------------------
    "You have enemies? Good. That means you've stood up for something, sometime in your life." - Sir Winston Churchill
Re: Trouble installing Net::SFTP under ActiveState
by syphilis (Archbishop) on Mar 12, 2009 at 22:11 UTC
    SFTP is also available with Net::SSH2 (from the uwinnipeg rep):
    ppm install Net-SSH2
    This is nuch simpler to install than Net::SFTP.

    Cheers,
    Rob
Re: Trouble installing Net::SFTP under ActiveState
by Anonymous Monk on Mar 12, 2009 at 18:07 UTC
      Thanks. I added repository http://trouchelle.com and then I was able to install Net::SFTP. However, when I try to create a connection:
      use Net::SFTP; my $sftp = Net::SFTP->new($targetURL, [user => $targetUser, password = +> $targetPwd]);
      I get:
      The getpwuid function is unimplemented at C:/Perl/site/lib/Net/SSH/Per +l.pm line 110.
        That has been fixed since version 1.20 2001.07.11. Upgrade to Net-SSH-Perl-1.34 01 Feb 2009