Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


local_perl_modules

To install a local perl module, follow steps like these:

mkdir ~/lib
cd ~/lib
wget http://search.cpan.org/CPAN/authors/id/R/RK/RKHILL/DateTime-Astro-Sunrise-0.01_01.tar.gz
tar -zxvf DateTime-Astro-Sunrise-0.01_01.tar.gz
cd DateTime-Astro-Sunrise-0.01_01
perl Makefile.PL PREFIX=~/lib LIB=~/lib
make
make test
make install
<code>

In the actual script you want to run, include this:
<code>
use lib '/path/to/username/lib';
use DateTime;
use DateTime::Astro::Sunrise;
local_perl_modules.txt · Last modified: 2015/01/22 10:50 by juckins