get all a module"s dependencies?

get all a module"s dependencies?

am 25.09.2007 21:02:16 von GL

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

Re: get all a module"s dependencies?

am 25.09.2007 22:05:38 von paduille.4061.mumia.w+nospam

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.

Re: get all a module"s dependencies?

am 26.09.2007 17:09:05 von Peter Scott

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/

Re: get all a module"s dependencies?

am 26.09.2007 19:17:21 von inventor

I guess that's why they call it "Dependency Hell".

Inventor
www.freedomodds.com

Re: get all a module"s dependencies?

am 26.09.2007 21:57:23 von GL

In article ,
Peter Scott wrote:
>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.0 2/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