Net::SSH::Perl, Perlbrew and You


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.

Perlbrew

About these ads

One thought on “Net::SSH::Perl, Perlbrew and You

  1. !!
    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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s