Skip to content

Instantly share code, notes, and snippets.

@chetan
Created December 22, 2011 22:44
Show Gist options
  • Save chetan/1512185 to your computer and use it in GitHub Desktop.
Save chetan/1512185 to your computer and use it in GitHub Desktop.
a simple way to install perl library dependencies from CPAN
#!/bin/bash
# a simple dependency installer using cpanm and the DEPS file
if [ ! -f `which cpanm` ]; then
echo "need to install cpanm!"
cd /usr/local/bin
sudo curl -fsSLO http://xrl.us/cpanm
sudo chmod 755 cpanm
cd -
fi
echo -n "installing: "
cat DEPS | xargs echo
cat DEPS | sudo xargs cpanm -nq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment