[SHELL PROMPT ]$ mkdir site_perl
####
[SHELL PROMPT ]$ cd ~
# check for shell configuration files
[SHELL PROMPT ]$ ls -al
(for sh, bash, ksh, or zsh shells - example used: bash)
[SHELL PROMPT ]$ pico ./.bashrc
[PICO PROMPT ]$ export PERL5LIB=$HOME/path/to/my/site_perl
(for csh or tcsh shells - example used tcsh)
[SHELL PROMPT ]$ pico ./.cshrc
[PICO PROMPT ]$ set PERL5LIB=/path/to/my/site_perl
##
##
[SHELL PROMPT ]$ echo $PERL5LIB
##
##
[SHELL PROMPT ]$ cd /path/to/your/site_perl
[SHELL PROMPT ]$ ftp ftp.CPAN.org/pub/CPAN
login: anonymous
ftp> get /path/to/yourmodule.tar.gz [space]/path/to/your/site_perl/yourmodule.tar.gz
ftp> quit
221 Goodbye.
##
##
[SHELL PROMPT ]$ gzip -d yourmodule.tar.gz
##
##
[SHELL PROMPT ]$ tar -xvf yourmodule.tar
##
##
[SHELL PROMPT ]$ perl Makefile.PL LIB=/path/to/my/site_perl \
INSTALLMAN1DIR=/path/to/my/man/man1 \
INSTALLMAN3DIR=/path/to/my/man/man3
[SHELL PROMPT ]$ make
[SHELL PROMPT ]$ make test
##
##
[SHELL PROMPT ]$ make install
##
##
use lib '/path/to/my/site_perl';
##
##
BEGIN { unshift(@INC, "/path/to/my/site_perl") }
##
##
[SHELL PROMPT ]$ perl -MCPAN -e shell
##
##
cpan> cpan_home: /path/to/my/site_perl/ANY_NAME_YOU_WANT
cpan> makepl_arg: LIB=/path/to/my/site_perl
you can check these values in the CPAN shell at any time by typing:
cpan> o conf
##
##
cpan> o conf
CPAN::Config options and /Users/Sol-Invictus/site-perl/.cpan/CPAN/MyConfig.pm:
commit Commit changes to disk
defaults Reload defaults from disk
init Interactive setting of all options
build_cache 10
build_dir /Users/Sol-Invictus/site-perl/.cpan/build
cache_metadata 1
cpan_home /Users/Sol-Invictus/site-perl/.cpan
dontload_hash
ftp /usr/bin/ftp
ftp_proxy
getcwd cwd
gzip /usr/bin/gzip
histfile /Users/Sol-Invictus/site-perl/.cpan/histfile
histsize 100
http_proxy
inactivity_timeout 0
index_expire 1
inhibit_startup_message 0
keep_source_where /Users/Sol-Invictus/site-perl/.cpan/sources
lynx
make /usr/bin/make
make_arg
make_install_arg
makepl_arg
ncftp
ncftpget
no_proxy
pager /usr/bin/less
prerequisites_policy ask
scan_cache atstart
shell /bin/tcsh
tar /usr/bin/tar
term_is_latin 1
unzip /usr/bin/unzip
urllist
ftp://ftp.ayamura.org/pub/CPAN/
ftp://ftp.cpan.jp/CPAN/
ftp://ftp.dti.ad.jp/pub/lang/CPAN/
ftp://ftp.jaist.ac.jp/pub/lang/perl/CPAN/
ftp://ftp.kddlabs.co.jp/CPAN/
ftp://ftp.meisei-u.ac.jp/pub/CPAN/
ftp://ftp.ring.gr.jp/pub/lang/perl/CPAN/
ftp://ftp.u-aizu.ac.jp/pub/CPAN
ftp://mirror.nucba.ac.jp/mirror/Perl/
ftp://mirror.Mazic.org/pub/CPAN
ftp://cpan.topend.com.au/pub/CPAN/
ftp://ftp.planetmirror.com/pub/CPAN/
ftp://mirror.aarnet.edu.au/pub/perl/CPAN/
ftp://cpan.in.freeos.com/pub/CPAN/
ftp://ftp.cbn.net.id/mirror/CPAN
ftp://ftp.mweb.co.id/pub/languages/perl/CPAN/
wait_list
wait://ls6-www.informatik.uni-dortmund.de:1404
wget
##
##
cpan> o conf init
##
##
[SHELL PROMPT]$ perldoc CPAN
##
##
[SHELL PROMPT]$ man CPAN
##
##
[SHELL PROMPT ]$ perl -MCPAN -e shell
cpan> install MODULE_YOU_WANT
##
##
cpan> ?