Skip to content

Instantly share code, notes, and snippets.

@manchicken
Last active December 21, 2015 07:49
Show Gist options
  • Save manchicken/6274281 to your computer and use it in GitHub Desktop.
Save manchicken/6274281 to your computer and use it in GitHub Desktop.
PLEASE NOTE: koding.com VMs are now able to install more sane environments. This is just a way of demonstrating now I used to do it way back upon launch. http://goo.gl/Ox6KXw
#!env sh
# Make the local folder
mkdir $HOME/local
# Set up your PERL5LIB
echo 'export PERL5LIB="$HOME/local/lib64/perl5:$HOME/local/share/perl5"' >> $HOME/.bash_profile
echo -e "o conf makepl_arg PREFIX=$HOME/local\no conf make_install_arg PREFIX=$HOME/local\no conf commit\nexit\n" |
cpan
# Add the PERL5LIB to your .htaccess
echo "SetEnv PERL5LIB \"$HOME/local/lib64/perl5:$HOME/local/share/perl5\"" >> $HOME/Sites/${USER}.koding.com/website/.htaccess
# Install some base modules!
echo -e "y\n" | cpan YAML Readonly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment