Skip to content

Instantly share code, notes, and snippets.

@hatak
Created May 23, 2012 15:22
Show Gist options
  • Save hatak/2775862 to your computer and use it in GitHub Desktop.
Save hatak/2775862 to your computer and use it in GitHub Desktop.
install perlbrew + cpanm + carton
#!/bin/bash
PERL_STABLE="5.16.1"
echo '%< --- installing perlbrew ---'
echo
curl -kL http://install.perlbrew.pl | bash
source ~/perl5/perlbrew/etc/bashrc
perlbrew install --notest perl-${PERL_STABLE}
perlbrew install-cpanm
perlbrew switch perl-${PERL_STABLE}
echo '%< --- installing carton ---'
echo
perlbrew lib create carton
perlbrew switch perl-${PERL_STABLE}@carton
source ~/perl5/perlbrew/etc/bashrc
cpanm Carton
echo '%< --- install finished ! ---'
echo 'Please add that source line to config'
echo '$ echo "source ~/perl5/perlbrew/etc/bashrc" >> ~/.bashrc'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment