Skip to content

Instantly share code, notes, and snippets.

@kazeburo
Created January 22, 2011 14:46
Show Gist options
  • Select an option

  • Save kazeburo/791162 to your computer and use it in GitHub Desktop.

Select an option

Save kazeburo/791162 to your computer and use it in GitHub Desktop.
#/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
#/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