Skip to content

Instantly share code, notes, and snippets.

@shohey1226
Created March 6, 2014 22:59
Show Gist options
  • Save shohey1226/9401598 to your computer and use it in GitHub Desktop.
Save shohey1226/9401598 to your computer and use it in GitHub Desktop.
#!/bin/bash
export PLENV_ROOT=/opt/perl5
if [[ ! -e $PLENV_ROOT ]];then
mkdir -p /opt/perl5
git clone git://github.com/tokuhirom/plenv.git $PLENV_ROOT
git clone git://github.com/tokuhirom/Perl-Build.git $PLENV_ROOT/plugins/perl-build/
$PLENV_ROOT/bin/plenv install 5.18.2
$PLENV_ROOT/bin/plenv rehash
$PLENV_ROOT/bin/plenv global 5.18.2
$PLENV_ROOT/bin/plenv install-cpanm
$PLENV_ROOT/bin/plenv rehash
#echo 'export PATH="$HOME/.plenv/bin:$PATH"' >> $HOME/.bash_profile
#echo 'eval "$(plenv init -)"' >> $HOME/.bash_profile
#$HOME/.plenv/shims/cpanm Carton
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment