Created
December 19, 2009 00:00
-
-
Save konobi/259876 to your computer and use it in GitHub Desktop.
This file contains 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
Download perl-5.10.1 from http://www.cpan.org/src/perl-5.10.1.tar.gz | |
mkdir ~/local/ | |
mkdir ~/local/perl_5.10 | |
ln -s ~/local/perl_5.10 ~/local/perl | |
cd ~/local/ | |
wget http://www.cpan.org/src/perl-5.10.1.tar.gz | |
tar -xzf perl-5.10.1.tar.gz | |
INST_PATH=$HOME/local/perl_5.10 | |
cd perl-5.10.1 | |
./Configure -Dprefix=$INST_PATH | |
# make sure that all directories used by perl are under this INST_PATH | |
make test | |
make install | |
# add this to your ~/.bashrc | |
PATH="$HOME/local/perl/bin:$PATH" | |
source ~/.bashrc | |
cd ~/local/ | |
mkdir ~/local/perl-locallib | |
wget http://search.cpan.org/CPAN/authors/id/A/AP/APEIRON/local-lib-1.004009.tar.gz | |
tar -xzf local-lib-1.004009.tar.gz | |
cd local-lib-1.004009 | |
perl Makefile.PL --bootstrap=$HOME/local/perl-locallib | |
make test | |
make install | |
# Now add this line to your ~/.bashrc and ensure your .bash_profile doesn't make a mess of things | |
eval $(perl -I$HOME/local/perl-locallib/lib/perl5 -Mlocal::lib=$HOME/local/perl-locallib) | |
# If everything is right run: | |
perl -I$HOME/local/perl-locallib/lib/perl5 -Mlocal::lib=$HOME/local/perl-locallib | |
# And the output should be like this: | |
export MODULEBUILDRC="/Users/scott/local/perl-locallib/.modulebuildrc" | |
export PERL_MM_OPT="INSTALL_BASE=/Users/scott/local/perl-locallib" | |
export PERL5LIB="/Users/scott/local/locallib/lib/perl5:/Users/scott/local/perl-locallib/lib/perl5/darwin-2level:$PERL5LIB" | |
export PATH="/Users/scott/local/perl-locallib/bin:$PATH" | |
# ENSURE your environment reflects these values |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment