User avatar
JimDod
Posts: 22
Joined: Wed Apr 04, 2012 10:24 pm
Location: Southern California

Perl - installing modules

Fri Aug 03, 2012 5:32 pm

What I'm wanting to do is install quite a few Perl modules, many of them include C code. after they are installed I wish to "copy" the SD image to replicate it on other SD cards. I expect this will take some time to run, which is not a problem. I like to install "by hand" that is I have all the modules holed away and do not need to use the cpan tool(s).

Any advice out there?

User avatar
scruss
Posts: 5290
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON

Re: Perl - installing modules

Fri Aug 03, 2012 9:09 pm

Installing from CPAN on a Debian-based system can be a world of pain. If you can make do with the lib*-perl module versions available as debs from the main repository, I'd recommend doing so. Debian has a policy about packages not being able to modify the configuration of other packages, but CPAN has its own ideas. A few years back the Debian maintainers did something that basically broke your entire Perl installation if you'd used one of the CPAN XML modules.

If you just download the debs, you can apply them to each machine quite quickly.
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.
Pronouns: he/him

User avatar
JimDod
Posts: 22
Joined: Wed Apr 04, 2012 10:24 pm
Location: Southern California

Re: Perl - installing modules

Sun Aug 05, 2012 3:44 am

my plan that I have used on Intel based debian is to download and build by hand the normal:

perl Makefile.PL
make
make install

I expect it will be slow, but I expect it will work.

saif
Posts: 74
Joined: Sun Apr 15, 2012 8:15 pm

Re: Perl - installing modules

Sun Aug 05, 2012 7:34 am

The easiest on the Pi is probably using cpanminus

To install this, first install curl and gcc-4.7, then get and install the perl app cpanminus using: -

Code: Select all

sudo apt-get install curl gcc-4.7
sudo curl -L http://cpanmin.us | perl - --sudo App::cpanminus
after this installing CPAN perl modules is as easy as
sudo cpanm <Insert-module-name here>

Return to “Other programming languages”