For all of the admins who threw their computer out the window and swore they would never use CPAN again when they tried to install Net::SSH::Perl, try the following two things:
1. Install the GMP library(not the perl one) apt-get install libgmp-dev
2. Use cpanm instead of cpan. i.e. cpanm Net::SSH::Perl
This should solve the following error:
GMP.xs:4:17: error: gmp.h: No such file or directory
Also, while I am talking about it, check out perlbrew. It allows you to easily set up self contained instances of perl for multiple versions and switch between them. The possible uses for this are nearly endless, but I find that it increases my “sense of adventure” when messing with perl modules and my environment since I am not affecting the system perl.
!!
I’ve been trying to get around to setting up a host to test the perl program Brackup for two weeks. I did it in a VM and it was slow, so I wanted to try it on a physical box but didn’t have one that I was willing to jack with the system perl on.
**Runs off to install perlbrew**
Also, I’ve been concerned about cpan since the first time I ever ran it. It might as well have just printed out, “Please configure me for 20 minutes so I can make your console scroll for 10, while I fornicate with your system, leaving you with little respect for yourself or any idea of what changes I’ve really made.” I know a big part of the issue is my ignorance, but for all the yelling people do about ‘just use cpan’ you’d think someone could at least turn down the verbosity so the noobs could sleep at night.