- or download this
[SHELL PROMPT ]$ mkdir site_perl
- or download this
[SHELL PROMPT ]$ cd ~
...
(for csh or tcsh shells - example used tcsh)
[SHELL PROMPT ]$ pico ./.cshrc
[PICO PROMPT ]$ set PERL5LIB=/path/to/my/site_perl
- or download this
[SHELL PROMPT ]$ echo $PERL5LIB
- or download this
[SHELL PROMPT ]$ cd /path/to/your/site_perl
[SHELL PROMPT ]$ ftp ftp.CPAN.org/pub/CPAN
...
ftp> get /path/to/yourmodule.tar.gz [space]/path/to/your/site_perl/yo
+urmodule.tar.gz
ftp> quit
221 Goodbye.
- or download this
[SHELL PROMPT ]$ gzip -d yourmodule.tar.gz
- or download this
[SHELL PROMPT ]$ tar -xvf yourmodule.tar
- or download this
[SHELL PROMPT ]$ perl Makefile.PL LIB=/path/to/my/site_perl \
INSTALLMAN1DIR=/path/to/my/man/man1 \
...
[SHELL PROMPT ]$ make
[SHELL PROMPT ]$ make test
- or download this
[SHELL PROMPT ]$ make install
- or download this
use lib '/path/to/my/site_perl';
- or download this
BEGIN { unshift(@INC, "/path/to/my/site_perl") }
- or download this
[SHELL PROMPT ]$ perl -MCPAN -e shell
- or download this
cpan> cpan_home: /path/to/my/site_perl/ANY_NAME_YOU_WANT
...
you can check these values in the CPAN shell at any time by typing:
cpan> o conf
- or download this
cpan> o conf
CPAN::Config options and /Users/Sol-Invictus/site-perl/.cpan/CPAN/MyCo
+nfig.pm:
...
wait://ls6-www.informatik.uni-dortmund.de:1404
wget
- or download this
cpan> o conf init
- or download this
[SHELL PROMPT]$ perldoc CPAN
- or download this
[SHELL PROMPT]$ man CPAN
- or download this
[SHELL PROMPT ]$ perl -MCPAN -e shell
cpan> install MODULE_YOU_WANT
- or download this
cpan> ?