Click here to get back home

get all a module's dependencies?

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
get all a module's dependencies? Jay G. Scott 09-25-2007
Posted by Jay G. Scott on September 25, 2007, 3:02 pm
Please log in for more thread options

this must be a faq but i haven't found the right search
or i don't recognize the right words....

i need to install Net-SSH-perl and all its dependencies.
perl -MCPAN -e ...
isn't working for me -- i'm going to have to download to
another machine and then move the files to the target.

the problem is, every time i try to get some prereq, it needs
another prereq. it's VERY tedious trying to track down
a prereq one at a time, download, move it, try it and fail....
ad nauseum.

there must be a better way.

is there a giant blob of stuff with perhaps way more than
i need just so i can put a stop to this onesie madness?

thanks.

--
Jay Scott                512-835-3553                gl@arlut.utexas.edu
Head of Sun Support, Sr. Operating Systems Specialist
Applied Research Labs, Computer Science Div. S224
University of Texas at Austin

Posted by Mumia W. on September 25, 2007, 4:05 pm
Please log in for more thread options
On 09/25/2007 02:02 PM, Jay G. Scott wrote:
> this must be a faq but i haven't found the right search
> or i don't recognize the right words....
>
> i need to install Net-SSH-perl and all its dependencies.
> perl -MCPAN -e ...
> isn't working for me -- i'm going to have to download to
> another machine and then move the files to the target.
>
> the problem is, every time i try to get some prereq, it needs
> another prereq. it's VERY tedious trying to track down
> a prereq one at a time, download, move it, try it and fail....
> ad nauseum.
>
> there must be a better way.
>
> is there a giant blob of stuff with perhaps way more than
> i need just so i can put a stop to this onesie madness?
>
> thanks.
>

Net::SSH::Perl gave me one the the most complicated failed installs I've
ever had.

You can try to set 'prerequisites_policy' to 'follow'; try to do the
CPAN install on a machine that has nothing but Perl installed--no
additional modules. You will have to set PREFIX, INSTALLDIRS and
INSTALLSITELIB appropriately also.

Read these documents:

perldoc CPAN
perldoc ExtUtils::MakeMaker

Don't be surprised if it still doesn't work. You can also search for
"bundles" within the CPAN shell, but the closest match, Bundle::SSH,
seems to be unavailable at this time.


Posted by Peter Scott on September 26, 2007, 11:09 am
Please log in for more thread options
On Tue, 25 Sep 2007 19:02:16 +0000, Jay G. Scott wrote:
> i need to install Net-SSH-perl and all its dependencies.
> perl -MCPAN -e ...
> isn't working for me -- i'm going to have to download to
> another machine and then move the files to the target.
>
> the problem is, every time i try to get some prereq, it needs
> another prereq. it's VERY tedious trying to track down
> a prereq one at a time, download, move it, try it and fail....
> ad nauseum.

You want CPAN::FindDependencies:
http://search.cpan.org/~dcantrell/CPAN-FindDependencies-1.02/lib/CPAN/FindDependencies/Dependency.pm

$ cpandeps Net::SSH::Perl
Net::SSH::Perl (D/DB/DBROBINS/Net-SSH-Perl-1.30.tar.gz)
Scalar::Util (G/GB/GBARR/Scalar-List-Utils-1.19.tar.gz)
Crypt::DSA (B/BT/BTROTT/Crypt-DSA-0.14.tar.gz)
Math::BigInt (T/TE/TELS/math/Math-BigInt-1.87.tar.gz)
Digest::SHA1 (G/GA/GAAS/Digest-SHA1-2.11.tar.gz)
Convert::PEM (B/BT/BTROTT/Convert-PEM-0.07.tar.gz)
MIME::Base64 (G/GA/GAAS/MIME-Base64-3.07.tar.gz)
Digest::MD5 (G/GA/GAAS/Digest-MD5-2.36.tar.gz)
Crypt::DES_EDE3 (B/BT/BTROTT/Crypt-DES_EDE3-0.01.tar.gz)
Convert::ASN1 (G/GB/GBARR/Convert-ASN1-0.21.tar.gz)
Class::ErrorHandler (B/BT/BTROTT/Class-ErrorHandler-0.01.tar.gz)
String::CRC32 (S/SO/SOENKE/String-CRC32-1.4.tar.gz)
Math::Pari (I/IL/ILYAZ/modules/Math-Pari-2.010709.tar.gz)
Crypt::IDEA (D/DP/DPARIS/Crypt-IDEA-1.08.tar.gz)
Digest::HMAC_SHA1 (G/GA/GAAS/Digest-HMAC-1.01.tar.gz)
IO::Socket (G/GB/GBARR/IO-1.2301.tar.gz)
Crypt::DH (B/BT/BTROTT/Crypt-DH-0.06.tar.gz)
Math::GMP (C/CH/CHIPT/Math-GMP-2.04.tar.gz)

--
Peter Scott
http://www.perlmedic.com/
http://www.perldebugged.com/


Posted by Inventor on September 26, 2007, 1:17 pm
Please log in for more thread options
I guess that's why they call it "Dependency Hell".

Inventor
www.freedomodds.com




Posted by Jay G. Scott on September 26, 2007, 3:57 pm
Please log in for more thread options
>On Tue, 25 Sep 2007 19:02:16 +0000, Jay G. Scott wrote:
>> i need to install Net-SSH-perl and all its dependencies.
>> perl -MCPAN -e ...
>> isn't working for me -- i'm going to have to download to
>> another machine and then move the files to the target.
>>
>> the problem is, every time i try to get some prereq, it needs
>> another prereq. it's VERY tedious trying to track down
>> a prereq one at a time, download, move it, try it and fail....
>> ad nauseum.
>
>You want CPAN::FindDependencies:
>http://search.cpan.org/~dcantrell/CPAN-FindDependencies-1.02/lib/CPAN/FindDependencies/Dependency.pm
>
>$ cpandeps Net::SSH::Perl
>Net::SSH::Perl (D/DB/DBROBINS/Net-SSH-Perl-1.30.tar.gz)
> Scalar::Util (G/GB/GBARR/Scalar-List-Utils-1.19.tar.gz)
> Crypt::DSA (B/BT/BTROTT/Crypt-DSA-0.14.tar.gz)
> Math::BigInt (T/TE/TELS/math/Math-BigInt-1.87.tar.gz)
> Digest::SHA1 (G/GA/GAAS/Digest-SHA1-2.11.tar.gz)
> Convert::PEM (B/BT/BTROTT/Convert-PEM-0.07.tar.gz)
> MIME::Base64 (G/GA/GAAS/MIME-Base64-3.07.tar.gz)
> Digest::MD5 (G/GA/GAAS/Digest-MD5-2.36.tar.gz)
> Crypt::DES_EDE3 (B/BT/BTROTT/Crypt-DES_EDE3-0.01.tar.gz)
> Convert::ASN1 (G/GB/GBARR/Convert-ASN1-0.21.tar.gz)
> Class::ErrorHandler (B/BT/BTROTT/Class-ErrorHandler-0.01.tar.gz)
> String::CRC32 (S/SO/SOENKE/String-CRC32-1.4.tar.gz)
> Math::Pari (I/IL/ILYAZ/modules/Math-Pari-2.010709.tar.gz)
> Crypt::IDEA (D/DP/DPARIS/Crypt-IDEA-1.08.tar.gz)
> Digest::HMAC_SHA1 (G/GA/GAAS/Digest-HMAC-1.01.tar.gz)
> IO::Socket (G/GB/GBARR/IO-1.2301.tar.gz)
> Crypt::DH (B/BT/BTROTT/Crypt-DH-0.06.tar.gz)
> Math::GMP (C/CH/CHIPT/Math-GMP-2.04.tar.gz)
>
>--
>Peter Scott
>http://www.perlmedic.com/
>http://www.perldebugged.com/
>

thanks to all. i'm sidetracked at the moment so i
haven't done anything about it, but this looks helpful.
j.

--
Jay Scott                512-835-3553                gl@arlut.utexas.edu
Head of Sun Support, Sr. Operating Systems Specialist
Applied Research Labs, Computer Science Div. S224
University of Texas at Austin

Similar ThreadsPosted
[RFC] Devel::Dependencies January 4, 2006, 7:47 am
Mutual Circular Module Dependencies November 29, 2007, 6:03 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap