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.
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.