Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


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

mkdir ~/lib
cd ~/lib
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 test
make install

In the actual script you want to run, include this:
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