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?
Re: Perl - installing modules
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.
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
Pronouns: he/him
Re: Perl - installing modules
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.
perl Makefile.PL
make
make install
I expect it will be slow, but I expect it will work.
Re: Perl - installing modules
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: -
after this installing CPAN perl modules is as easy as
sudo cpanm <Insert-module-name here>
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
sudo cpanm <Insert-module-name here>