HIP:TS-7000:perl

From Earlham Cluster Department

Jump to: navigation, search

Installing perl and necessary modules

The general procedure for installing perl and perl modules on the TS-7260's ts-linux is to use the existing perl install on the Debian image provided by Technologic Systems and install the needed modules to this perl install. Due to the similarity of the Debian distro to the ts-linux, the perl directories of the debain image can be copied to the ts-linux image without modification. Thus, all required modules will be installed on Debian and then the perl install will be copied to the ts-linux image. This process assumes that one has the ability to boot or chroot to both the provided Debian and ts-linux. The following instructions explain how this is done for the specific case of the modules needed for the portable water monitoring station scripts.

Install modules on Debian

Install the latest release of the threads perl module from CPAN on the Debian root. (At this writing, 1.63.)Please note that this is the "threads" module, not the older "Thread" module. To install, expand the tar and follow the insturctions to install the module.

Install the latest release of the Digest-MD5 perl module from CPAN on the Debian root. (At this writing, 2.36.) To install, expand the tar and follow the insturctions to install the module.

Install the serial port perl module by doing an apt-get install on the Debian linux:

debian$ apt-get install libdevice-serialport-perl

This install could probably be done the same way as the previous two installs, but it has not been tested with that method.

Copy perl to ts-linux

Finally copy the perl install from the Debian root to the ts-linux root by copying the following files and directories from the Debian root to the corresponding directories in the ts-linux root. All copies of directories are assumed to be recursive. Some directories may have to be created for the copies.

/usr/share/perl/
/usr/share/perl5/MD5.pm
/usr/lib/perl/
/usr/lib/perl5/
/usr/lib/libperl.so.5.8.4
/usr/bin/perl
/usr/bin/perl5.8.4
/lib/libpthread-0.10.so

Some links are needed as well:

<ts-linux root>/lib/ $ ln -s libpthread-0.10.so libpthread.so.0
<ts-linux root>/usr/lib/ $ ln -s libperl.so.5.8.4 libperl.so.5.8

To make the perl installation smaller, delete the following unnecessary files and directories from the perl install in the ts-linux root. All deletes of directories are assumed to be recursive.

/usr/lib/perl/5.8.4/auto/Encode/CN/
/usr/lib/perl/5.8.4/auto/Encode/JP/
/usr/lib/perl/5.8.4/auto/Encode/KR/
/usr/lib/perl/5.8.4/auto/Encode/TW/
/usr/lib/perl/5.8.4/auto/Unicode/
/usr/lib/perl/5.8.4/Unicode/
/usr/lib/perl5/auto/Locale/
/usr/lib/perl5/auto/DBI/
/usr/lib/perl5/auto/DBD/
/usr/lib/perl5/Bundle/
/usr/lib/perl5/DBD/
/usr/lib/perl5/DBI/
/usr/lib/perl5/DBI.pm
/usr/lib/perl5/Locale/
/usr/lib/perl5/Mysql/
/usr/lib/perl5/Mysql.pm
/usr/lib/perl5/PDL/
/usr/lib/perl5/Win32/
/usr/share/perl/5.8.4/CPAN.pm
/usr/share/perl/5.8.4/CPAN/
/usr/share/perl/5.8.4/Encode/CN/
/usr/share/perl/5.8.4/Encode/JP/
/usr/share/perl/5.8.4/Encode/KR/
/usr/share/perl/5.8.4/Encode/Unicode/
/usr/share/perl/5.8.4/ExtUtils/
/usr/share/perl/5.8.4/Locale/
/usr/share/perl/5.8.4/Pod/
/usr/share/perl/5.8.4/pod/
/usr/share/perl/5.8.4/Unicode/
/usr/share/perl/5.8.4/unicore/
Personal tools
Namespaces
Variants
Actions
websites
wiki
this semester
Toolbox