Skip to content

Instantly share code, notes, and snippets.

@creaktive
Created November 28, 2012 00:23
Show Gist options
  • Save creaktive/4158147 to your computer and use it in GitHub Desktop.
Save creaktive/4158147 to your computer and use it in GitHub Desktop.
Stanislaws-MacBook-Pro:~ fpbruzan$ curl -kL http://install.perlbrew.pl | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 315 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
100 1022 100 1022 0 0 314 0 0:00:03 0:00:03 --:--:-- 5161
## Download the latest perlbrew
## Installing perlbrew
perlbrew is installed: ~/perl5/perlbrew/bin/perlbrew
perlbrew root (~/perl5/perlbrew) is initialized.
Append the following piece of code to the end of your ~/.bash_profile and start a
new shell, perlbrew should be up and fully functional from there:
source ~/perl5/perlbrew/etc/bashrc
Simply run `perlbrew` for usage details.
Happy brewing!
## Installing patchperl
## Done.
Stanislaws-MacBook-Pro:~ fpbruzan$ echo "source ~/perl5/perlbrew/etc/bashrc" >> ~/.bash_profile
Stanislaws-MacBook-Pro:~ fpbruzan$ source ~/.bash_profile
Stanislaws-MacBook-Pro:~ fpbruzan$ perlbrew install perl-5.16.2
Fetching perl 5.16.2 as /Users/fpbruzan/perl5/perlbrew/dists/perl-5.16.2.tar.bz2
Installing /Users/fpbruzan/perl5/perlbrew/build/perl-5.16.2 into ~/perl5/perlbrew/perls/perl-5.16.2
This could take a while. You can run the following command on another shell to track the status:
tail -f ~/perl5/perlbrew/build.perl-5.16.2.log
perl-5.16.2 is successfully installed.
Stanislaws-MacBook-Pro:~ fpbruzan$ perlbrew switch perl-5.16.2
Stanislaws-MacBook-Pro:~ fpbruzan$ perlbrew install-cpanm
cpanm is installed to
/Users/fpbruzan/perl5/perlbrew/bin/cpanm
Stanislaws-MacBook-Pro:~ fpbruzan$ perl -v
This is perl 5, version 16, subversion 2 (v5.16.2) built for darwin-2level
Copyright 1987-2012, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
Stanislaws-MacBook-Pro:~ fpbruzan$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment