I'm attempting to use two perl modules, BerkeleyDB.pm and MY::Net::SFTP.
However, when attempting to use them in the same package , thus
package mypackage; @ISA = qw (somethingelse);
use BerkeleyDB;
use MY::Net::SFTP;
Now MY::Net::SFTP uses Net::SFTP. When I attempt to run the simple test
program which follows
#!/usr/local/bin/perl
use Net::SFTP;
use BerkeleyDB;
my %params = ( user => 'myusername' , password => 'mypassword');
my $myaddr = '/home/mine/secure';
my $sftp = eval 'Net::SFPT->new($myaddr,%params)';
this fails with tons of errors with the BerkeleyDB.pm and succeeds without it.
Any ideas, here are the errors:
"makerandom" is not exported by the Crypt::Random module
"makerandom_itv" is not exported by the Crypt::Random module
"makerandom_octet" is not exported by the Crypt::Random module
Can't continue after import errors at /usr/depot/redhat9/perl/5.8.0/lib/site_perl/5.8.0/Crypt/Random/Generator.pm line 12
BEGIN failed--compilation aborted at /usr/depot/redhat9/perl/5.8.0/lib/site_perl/5.8.0/Crypt/Random/Generator.pm line 12, <GEN2> line 1.
Compilation failed in require at /usr/depot/redhat9/perl/5.8.0/lib/site_perl/5.8.0/Crypt/Random.pm line 18, <GEN2> line 1.
BEGIN failed--compilation aborted at /usr/depot/redhat9/perl/5.8.0/lib/site_perl/5.8.0/Crypt/Random.pm line 18, <GEN2> line 1.
Compilation failed in require at /usr/depot/redhat9/perl/5.8.0/lib/site_perl/5.8.0/Crypt/DH.pm line 6, <GEN2> line 1.
BEGIN failed--compilation aborted at /usr/depot/redhat9/perl/5.8.0/lib/site_perl/5.8.0/Crypt/DH.pm line 6, <GEN2> line 1.
Compilation failed in require at /usr/depot/redhat9/perl/5.8.0/lib/site_perl/5.8.0/Net/SSH/Perl/Kex/DH1.pm line 13, <GEN2> line 1.
BEGIN failed--compilation aborted at /usr/depot/redhat9/perl/5.8.0/lib/site_perl/5.8.0/Net/SSH/Perl/Kex/DH1.pm line 13, <GEN2> line 1.
Compilation failed in require at /usr/depot/redhat9/perl/5.8.0/lib/site_perl/5.8.0/Net/SSH/Perl/Kex.pm line 6, <GEN2> line 1.
BEGIN failed--compilation aborted at /usr/depot/redhat9/perl/5.8.0/lib/site_perl/5.8.0/Net/SSH/Perl/Kex.pm line 6, <GEN2> line 1.
Compilation failed in require at /usr/depot/redhat9/perl/5.8.0/lib/site_perl/5.8.0/Net/SSH/Perl/SSH2.pm line 6, <GEN2> line 1.
BEGIN failed--compilation aborted at /usr/depot/redhat9/perl/5.8.0/lib/site_perl/5.8.0/Net/SSH/Perl/SSH2.pm line 6, <GEN2> line 1.
Compilation failed in require at /usr/depot/redhat9/perl/5.8.0/lib/site_perl/5.8.0/Net/SSH/Perl.pm line 51, <GEN2> line 1.
or
marge2{mxp:92}% testSFTP
"SSH2" is not exported by the Net::SSH::Perl::Buffer module
Can't continue after import errors at /usr/depot/redhat9/perl/5.8.0/lib/site_perl/5.8.0/Net/SFTP/Buffer.pm line 6
BEGIN failed--compilation aborted at /usr/depot/redhat9/perl/5.8.0/lib/site_perl/5.8.0/Net/SFTP/Buffer.pm line 6, <CLPFH> line 1.
Compilation failed in require at /usr/depot/redhat9/perl/5.8.0/lib/site_perl/5.8.0/Net/SFTP/Attributes.pm line 7, <CLPFH> line 1.
BEGIN failed--compilation aborted at /usr/depot/redhat9/perl/5.8.0/lib/site_perl/5.8.0/Net/SFTP/Attributes.pm line 7, <CLPFH> line 1.
Compilation failed in require at /usr/depot/redhat9/perl/5.8.0/lib/site_perl/5.8.0/Net/SFTP.pm line 8, <CLPFH> line 1.
BEGIN failed--compilation aborted at /usr/depot/redhat9/perl/5.8.0/lib/site_perl/5.8.0/Net/SFTP.pm line 8, <CLPFH> line 1.
Compilation failed in require at /usr3/mxp/dev/src/KEOF/Operations/SFTP.pm line 2, <CLPFH> line 1.
BEGIN failed--compilation aborted at /usr3/mxp/dev/src/KEOF/Operations/SFTP.pm line 2, <CLPFH> line 1.
Compilation failed in require at /usr3/mxp/dev/src/KEOF/Operations/Data.pm line 829, <CLPFH> line 1.
BEGIN failed--compilation aborted at /usr3/mxp/dev/src/KEOF/Operations/Data.pm line 829, <CLPFH> line 1.
Compilation failed in require at testSFTP line 5, <CLPFH> line 1.
BEGIN failed--compilation aborted at testSFTP line 5, <CLPFH> line 1.