General
cancel
Showing results for 
Search instead for 
Did you mean: 

cpan -> check module dependencies

SOLVED
Go to solution
'chris'
Super Advisor

cpan -> check module dependencies

hi

I've installed a lot of perl modules using cpan on my debian etch stable.
I forced some modules instalations because of errors.
howto check for module dependencies if is everything OK now ?

kind regards
chris

5 REPLIES
Ivan Ferreira
Honored Contributor
Solution

Re: cpan -> check module dependencies

Hi 'chris', please see:

http://cpandeps.cantrell.org.uk/
http://search.cpan.org/~autrijus/Module-ScanDeps-0.54/script/scandeps.pl
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Steven E. Protter
Exalted Contributor

Re: cpan -> check module dependencies

Shalom,

It would also be helpful long term if cpan maintained a respository supporting apt-get and yum for Red Hat Linux.

It is worth the time to ask them to do that and deal with dependency issues.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
'chris'
Super Advisor

Re: cpan -> check module dependencies

thanks,

I've installed libmodule-scandeps-perl:

# apt-cache search Module-ScanDeps
libmodule-scandeps-perl - perl module to recursively scan Perl code for dependencies
# apt-get install libmodule-scandeps-perl

but howto use libmodule-scandeps-perl now ?
James R. Ferguson
Acclaimed Contributor

Re: cpan -> check module dependencies

Hi Chris:

> I forced some modules installations because of errors.

Why would you do this?

If you use :

# perl -MCPAN -e shell

The module detects module builds which have prerequisites. You can elect to build the prerequisites automatically ('follow'); ask you for confirmation ('ask'); or simply 'ignore' them.

You should be able to remove any existing '~/.cpan/CPAN/MyConfig.pm' and then when you rerun, choose more appropriate settings.

You might want to reinstall your locally-installed modules. You can find them with:

# perldoc perllocal

Regards!

...JRF...
'chris'
Super Advisor

Re: cpan -> check module dependencies

some modules must be forced, for example if you try to install Net::SFTP under debian etch stable, you get a lot of very nice errors:

# perl -MCPAN -e 'install Net::SFTP'

# Looks like your test died before it could output anything.
t/02-buffer......dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-19
Failed 19/19 tests, 0.00% okay
t/03-packet......Can't locate Math/GMP.pm in @INC (@INC contains: /root/.cpan/build/Net-SSH-Perl-1.30-gJgHNi/blib/lib /root/.cpan/build/Net-SSH-Perl-1.30-gJgHNi/blib/arch /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl . /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /root/.cpan/build/Net-SSH-Perl-1.30-gJgHNi/blib/lib/Net/SSH/Perl/Util/SSH1MP.pm line 7.
BEGIN failed--compilation aborted at /root/.cpan/build/Net-SSH-Perl-1.30-gJgHNi/blib/lib/Net/SSH/Perl/Util/SSH1MP.pm line 7.
Compilation failed in require at /root/.cpan/build/Net-SSH-Perl-1.30-gJgHNi/blib/lib/Net/SSH/Perl/Util.pm line 56.
BEGIN failed--compilation aborted at /root/.cpan/build/Net-SSH-Perl-1.30-gJgHNi/blib/lib/Net/SSH/Perl/Key/RSA1.pm line 6.
Compilation failed in require at /root/.cpan/build/Net-SSH-Perl-1.30-gJgHNi/blib/lib/Net/SSH/Perl/SSH1.pm line 13.
BEGIN failed--compilation aborted at /root/.cpan/build/Net-SSH-Perl-1.30-gJgHNi/blib/lib/Net/SSH/Perl/SSH1.pm line 13.
Compilation failed in require at /root/.cpan/build/Net-SSH-Perl-1.30-gJgHNi/blib/lib/Net/SSH/Perl.pm line 54.
# Looks like your test died before it could output anything.
t/03-packet......dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-10
Failed 10/10 tests, 0.00% okay
t/04-config......ok
t/05-cipher......ok
t/06-circular....ok
Failed Test Stat Wstat Total Fail List of Failed
-------------------------------------------------------------------------------
t/02-buffer.t 255 65280 19 38 1-19
t/03-packet.t 255 65280 10 20 1-10
Failed 2/6 test scripts. 29/116 subtests failed.
Files=6, Tests=116, 1 wallclock secs ( 0.56 cusr + 0.05 csys = 0.61 CPU)
Failed 2/6 test programs. 29/116 subtests failed.
make: *** [test_dynamic] Error 255
DBROBINS/Net-SSH-Perl-1.30.tar.gz
/usr/bin/make test -- NOT OK
//hint// To get more information about failing tests, try:
reports DBROBINS/Net-SSH-Perl-1.30.tar.gz
Running make install
make test had returned bad status, won't install without force
Running make for D/DB/DBROBINS/Net-SFTP-0.10.tar.gz
Has already been unwrapped into directory /root/.cpan/build/Net-SFTP-0.10-bpCflJ

CPAN.pm: Going to build D/DB/DBROBINS/Net-SFTP-0.10.tar.gz

Warning: Prerequisite 'Net::SSH::Perl => 1.24' for 'D/DB/DBROBINS/Net-SFTP-0.10.tar.gz' failed when processing 'D/DB/DBROBINS/Net-SSH-Perl-1.30.tar.gz' with 'make_test => NO'. Continuing, but chances to succeed are limited.
cp lib/Net/SFTP/Util.pm blib/lib/Net/SFTP/Util.pm
cp lib/Net/SFTP.pm blib/lib/Net/SFTP.pm
cp lib/Net/SFTP/Attributes.pm blib/lib/Net/SFTP/Attributes.pm
cp lib/Net/SFTP/Buffer.pm blib/lib/Net/SFTP/Buffer.pm
cp lib/Net/SFTP/Constants.pm blib/lib/Net/SFTP/Constants.pm
Manifying blib/man3/Net::SFTP::Util.3pm
Manifying blib/man3/Net::SFTP.3pm
Manifying blib/man3/Net::SFTP::Attributes.3pm
Manifying blib/man3/Net::SFTP::Buffer.3pm
Manifying blib/man3/Net::SFTP::Constants.3pm
DBROBINS/Net-SFTP-0.10.tar.gz
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01-load........Can't locate Net/SSH/Perl/Buffer.pm in @INC (@INC contains: /root/.cpan/build/Net-SFTP-0.10-bpCflJ/blib/lib /root/.cpan/build/Net-SFTP-0.10-bpCflJ/blib/arch /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl . /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /root/.cpan/build/Net-SFTP-0.10-bpCflJ/blib/lib/Net/SFTP/Buffer.pm line 6.
BEGIN failed--compilation aborted at /root/.cpan/build/Net-SFTP-0.10-bpCflJ/blib/lib/Net/SFTP/Buffer.pm line 6.
Compilation failed in require at /root/.cpan/build/Net-SFTP-0.10-bpCflJ/blib/lib/Net/SFTP/Attributes.pm line 7.
BEGIN failed--compilation aborted at /root/.cpan/build/Net-SFTP-0.10-bpCflJ/blib/lib/Net/SFTP/Attributes.pm line 7.
Compilation failed in require at /root/.cpan/build/Net-SFTP-0.10-bpCflJ/blib/lib/Net/SFTP.pm line 8.
BEGIN failed--compilation aborted at /root/.cpan/build/Net-SFTP-0.10-bpCflJ/blib/lib/Net/SFTP.pm line 8.
Compilation failed in require at t/01-load.t line 5.
BEGIN failed--compilation aborted at t/01-load.t line 5.
t/01-load........dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED test 1
Failed 1/1 tests, 0.00% okay
t/06-circular....Can't locate Net/SSH/Perl/Buffer.pm in @INC (@INC contains: /root/.cpan/build/Net-SFTP-0.10-bpCflJ/blib/lib /root/.cpan/build/Net-SFTP-0.10-bpCflJ/blib/arch /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl . /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /root/.cpan/build/Net-SFTP-0.10-bpCflJ/blib/lib/Net/SFTP/Buffer.pm line 6.
BEGIN failed--compilation aborted at /root/.cpan/build/Net-SFTP-0.10-bpCflJ/blib/lib/Net/SFTP/Buffer.pm line 6.
Compilation failed in require at /root/.cpan/build/Net-SFTP-0.10-bpCflJ/blib/lib/Net/SFTP/Attributes.pm line 7.
BEGIN failed--compilation aborted at /root/.cpan/build/Net-SFTP-0.10-bpCflJ/blib/lib/Net/SFTP/Attributes.pm line 7.
Compilation failed in require at /root/.cpan/build/Net-SFTP-0.10-bpCflJ/blib/lib/Net/SFTP.pm line 8.
BEGIN failed--compilation aborted at /root/.cpan/build/Net-SFTP-0.10-bpCflJ/blib/lib/Net/SFTP.pm line 8.
Compilation failed in require at t/06-circular.t line 5.
BEGIN failed--compilation aborted at t/06-circular.t line 5.
t/06-circular....dubious
Test returned status 2 (wstat 512, 0x200)
Failed Test Stat Wstat Total Fail List of Failed
-------------------------------------------------------------------------------
t/01-load.t 2 512 1 2 1
t/06-circular.t 2 512 ?? ?? ??
Failed 2/2 test scripts. 1/1 subtests failed.
Files=2, Tests=1, 0 wallclock secs ( 0.02 cusr + 0.02 csys = 0.04 CPU)
Failed 2/2 test programs. 1/1 subtests failed.
make: *** [test_dynamic] Error 2
DBROBINS/Net-SFTP-0.10.tar.gz
/usr/bin/make test -- NOT OK
//hint// To get more information about failing tests, try:
reports DBROBINS/Net-SFTP-0.10.tar.gz
Running make install
make test had returned bad status, won't install without force



after forcing I'm not sure if is it OK.