Wednesday, 14 December 2011

cpanm for lazy people

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
Post a Comment