This way individual projects with specific perl requirements avoid
borking the global install.
## I'm going to use MediaWiki::API to load, so I'll install local::lib
## using cpanm.
## Step 1, install a local cpanm (and some deps)
curl -k -L http://cpanmin.us \
| perl - -l local-lib App::cpanminus
## Step 2, install local::lib
./local-lib/bin/cpanm \
-l local-lib local::lib
perl -Ilocal-lib/lib/perl5/ -Mlocal::lib=`pwd`/local-lib \
> local-lib.sh
source local-lib.sh
## Step 3, install MediaWiki::API
cpanm MediaWiki::API
## ENJOY
2 comments:
You don't need local::lib, but I find it convenient.
Note, if you use perlbrew, you should perform all the above after your perlbrew use or switch commands!
Post a Comment