Last active
November 17, 2016 20:57
-
-
Save qgp9/f825e1d3868e9443ed1125f7c81168f7 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
#!/usr/bin/env bash | |
export MYPERL=$HOME/perl5/mymojo | |
echo "# Install CPANM" | |
curl -L http://cpanmin.us | perl -I $MYPERL - -f -l $MYPERL App::cpanminus | |
echo "# Install Loca::Lib" | |
$MYPERL/bin/cpanm -l $MYPERL local::lib | |
echo "# add 'myperl' to ~/.bash_profile" | |
echo 'export MYPERL=$HOME/perl5; myperl () { :;S=${1-mydev};eval `perl -I $MYPERL/$S/lib/perl5 -Mlocal::lib=$MYPERL/$S`; }' >> ~/.bash_profile | |
echo "# Install Mojolicious" | |
eval `perl -I $MYPERL/lib/perl5 -Mlocal::lib=$MYPERL` | |
cpanm Mojolicious | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment