Open Source Software and Linux

Jan 6 2009   7:15PM GMT

Getting Net::SSH::Perl and Bundle::CPAN installed

John Little Profile: Xjlittle

In most cases getting Net::SSH::Perl is going to be tough any way you look at it. In many cases you will find that Bundle::CPAN won’t completely install either. When either of them won’t install it’s going to take some time to get it done. At the of the first run, and maybe more, they are still not going to be installed. Instead it’s going to show you a list of the depending modules that failed testing for Net::SSH::Perl or Bundle::CPAN to properly install. Going through all of this can be aggravating to say the least. Hopefully I can alleviate some of that aggravation.

I am going to focus on Net::SSH:Perl for the rest of this post as that is where I first discovered the problem. I wasn’t aware of Bundle::CPAN until afterwards. You can follow these instructions to get either of them installed.

I used the CPAN shell to install everything. That is to say that I issued the commmand cpan at the command line to drop into the CPAN shell. After that I used either install or force install . I used the force install if it had already failed the test and to make sure that it covered all of the previous tests for the module.

Here is a list of modules with which you are most likely going to have a problem. When you first run either of the Net::SSH::Perl or Bundle::CPAN be sure and copy a list of the modules that it tells you failed. You may want to run a force install on them later to make sure that they get updated.

install XS
install Math::Pari
install Scalar::Util
install IO::Compress::Base
force install Scalar::Util
force install IO::Compress::Base
install Net::SSH::Perl
force install Crypt::DH
install Net::SSH::Perl

You will probably find that the XS module seems to be a big part of the problem so install it first. Then run Scalar::Util. If it tells you that it’s up to date install it with the force install command. Then start with the Math::Pari module. From there you can follow my list from above where it matches your list. Make sure that you cover the modules in your list as well.

Installing Crypt::DH is going to take awhile. It will appear as if it is hung on testing a part of the module. Go watch a movie or something. It will eventually finish the testing.

Finally after everything is installed force install Scalar::Util once more. After that try installing Net::SSH::Perl or Bundle::CPAN. They should install without problem.


 Comment on this Post

There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when other members comment.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

Share this item with your network: