Created
March 6, 2014 22:59
-
-
Save shohey1226/9401598 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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