Created
January 22, 2011 14:46
-
-
Save kazeburo/791162 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 PERLBREW_ROOT=$HOME/perlbrew | |
| export OHOME=$HOME | |
| export HOME=/dev/null | |
| source $PERLBREW_ROOT/etc/bashrc | |
| export HOME=$OHOME | |
| __perlbrew_set_path | |
| hash -r | |
| echo $PATH | |
| perlbrew install-cpanm | |
| perlbrew use perl-5.12.2 | |
| echo $PATH | |
| hash -r | |
| which cpanm | |
| cpanm -v Math::BigInt::GMP |
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 PERLBREW_ROOT=$HOME/perlbrew | |
| if [ -d $PERLBREW_ROOT ]; then | |
| rm -rf $PERLBREW_ROOT | |
| fi | |
| if [ -d /tmp/work ]; then | |
| rm -rf /tmp/work | |
| fi | |
| mkdir -p $PERLBREW_ROOT | |
| mkdir -p /tmp/work | |
| cd /tmp/work | |
| curl -LO http://xrl.us/perlbrew | |
| chmod +x perlbrew | |
| ./perlbrew install | |
| echo $HOME | |
| OHOME=$HOME | |
| export HOME=/tmp/work | |
| $PERLBREW_ROOT/bin/perlbrew init | |
| source $PERLBREW_ROOT/etc/bashrc | |
| export HOME=$OHOME | |
| hash -r | |
| perlbrew install perl-5.12.2 -n | |
| perlbrew install-cpanm | |
| perlbrew use perl-5.12.2 | |
| hash -r | |
| cpanm Task::BeLike::Foo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment