http://search.cpan.org/search?query=local%3A%3Alib&mode=all
tar xzf local-lib-1.003003.tar.gz
cd local-lib-1.003003/
perl Makefile.PL --bootstrap
make test && make install
or:
sudo apt-get install liblocal-lib-perl
Append to .bashrc:
echo '[ $SHLVL -eq 1 ] && eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)"' >>~/.bashrc
Re-read configuration file:
. ~/.bashrc
Install cpanm:
cpan App::cpanminus
or:
sudo apt-get install cpanminus
Install module:
cpanm Acme::EyeDrops
Now it should appear in ~/perl5/lib/perl5
=================
$ cpan<cpan[1]> o conf init urllist
# follow the prompts to pick a cpan mirror near you
<cpan[2]> o conf commit
<cpan> exit
o conf prerequisites_policy follow
o conf build_requires_install_policy yes
o conf make_install_make_command 'sudo make'
o conf commit
No comments:
Post a Comment