Skip to content

Instantly share code, notes, and snippets.

@shohey1226
Created January 21, 2014 22:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shohey1226/8550068 to your computer and use it in GitHub Desktop.
Save shohey1226/8550068 to your computer and use it in GitHub Desktop.
#!/bin/bash
if [[ ! -e $HOME/.plenv ]];then
git clone git://github.com/tokuhirom/plenv.git $HOME/.plenv
echo 'export PATH="$HOME/.plenv/bin:$PATH"' >> $HOME/.bash_profile
echo 'eval "$(plenv init -)"' >> $HOME/.bash_profile
git clone git://github.com/tokuhirom/Perl-Build.git $HOME/.plenv/plugins/perl-build/
$HOME/.plenv/bin/plenv install 5.18.0
$HOME/.plenv/bin/plenv rehash
$HOME/.plenv/bin/plenv global 5.18.0
$HOME/.plenv/bin/plenv install-cpanm
$HOME/.plenv/bin/plenv rehash
$HOME/.plenv/shims/cpanm Carton
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment