- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Install Net::SFTP perl module
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2005 06:30 AM
тАО10-05-2005 06:30 AM
Install Net::SFTP perl module
I get the following message.
#perl -MCPAN -e 'shell'
Can't locate CPAN.pm in @INC (@INC contains: /opt/perl5/lib/5.00502/PA-RISC1.1 /opt/perl5/lib/5.0050
2 /opt/perl5/lib/site_perl/5.005/PA-RISC1.1 /opt/perl5/lib/site_perl/5.005 .).
BEGIN failed--compilation aborted.
Please help me resolve this problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2005 06:33 AM
тАО10-05-2005 06:33 AM
Re: Install Net::SFTP perl module
run this command to see where this file is located
find /opt -name "CPAN.pm"
after finding it, either copy the file to where it is looking for or create a symlink (I am not sure about how perl treats symlinks, so copying it to where it is needed is a better approach in my opinion)
HTH
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2005 06:34 AM
тАО10-05-2005 06:34 AM
Re: Install Net::SFTP perl module
Check perl version: perl -v
Check where perl is being run from: which perl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2005 08:27 AM
тАО10-05-2005 08:27 AM
Re: Install Net::SFTP perl module
# cd /tmp
# wget http://search.cpan.org/CPAN/authors/id/D/DB/DBROBINS/Net-SFTP-0.09.tar.gz
# gzip -d
# perl Makefile.PL
# make
# make test
# make install
But I'm affraid that Net-SFTP requires some other modules to work. The Makefile.PL for example has stated Net::SSH::Perl version 1.24 to be a prerequisite, so that has to be installed first
http://search.cpan.org/CPAN/authors/id/D/DB/DBROBINS/Net-SSH-Perl-1.28.tar.gz
And that module has quite a list of prerequisites (some optional):
my %prereq = (
'Digest::MD5' => 0,
'IO::Socket' => 0,
);
my %SSH_PREREQ = (
1 => {
'String::CRC32' => '1.2',
'Math::GMP' => '1.04',
'Scalar::Util' => 0,
},
2 => {
'Digest::SHA1' => 0,
'Digest::HMAC_MD5' => 0,
'Digest::HMAC_SHA1' => 0,
'Crypt::DSA' => '0.11',
'Crypt::DH' => '0.01',
'Math::Pari' => '2.001804',
'MIME::Base64' => 0,
'Convert::PEM' => '0.05',
},
But you will understand that getting this to work with a perl as old as the one you are working with is quite a challenge :)
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2005 06:25 PM
тАО10-05-2005 06:25 PM
Re: Install Net::SFTP perl module
you are having just too old perl5 (I remember using it 5 yrs back). So better upgrade it to latest perl (5.8), it will have CPAN module through which you can install Net::SFTP module.
believe me installing Net::SFTP module without using CPAN module is very difficult, because it requires so many dependencies which inturn require so many dependencies. The problem gets multiplied with your old perl version.
Regards,
Gopi