Last active
September 9, 2015 17:46
-
-
Save paulohrpinheiro/6b95b9ffd7f36598b74d to your computer and use it in GitHub Desktop.
Install a new perl from perlbrew
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
[data]$ perlbrew available | |
perl-5.22.0 | |
perl-5.20.2 | |
perl-5.18.4 | |
perl-5.16.3 | |
perl-5.14.4 | |
perl-5.12.5 | |
perl-5.10.1 | |
perl-5.8.9 | |
perl-5.6.2 | |
perl5.005_04 | |
perl5.004_05 | |
perl5.003_07 | |
[data]$ perlbrew install --notest --noman perl-5.22.0 | |
Fetching perl 5.22.0 as /var/lib/openshift/55e5156a7628e1d752000132/app-root/data//perlbrew/dists/perl-5.22.0.tar.bz2 | |
Download http://www.cpan.org/src/5.0/perl-5.22.0.tar.bz2 to /var/lib/openshift/55e5156a7628e1d752000132/app-root/data//perlbrew/dists/perl-5.22.0.tar.bz2 | |
Installing /var/lib/openshift/55e5156a7628e1d752000132/app-root/data//perlbrew/build/perl-5.22.0 into /var/lib/openshift/55e5156a7628e1d752000132/app-root/data//perlbrew/perls/perl-5.22.0 | |
This could take a while. You can run the following command on another shell to track the status: | |
tail -f /var/lib/openshift/55e5156a7628e1d752000132/app-root/data//perlbrew/build.perl-5.22.0.log | |
[data]$ perlbrew list | |
perl-5.22.0 | |
[data]\> perlbrew alias create perl-5.22.0 production | |
[data]\> perlbrew list | |
perl-5.22.0 | |
production (5.22.0) | |
[data]\> perlbrew switch production | |
A sub-shell is launched with production as the activated perl. Run 'exit' to finish it. | |
bash-4.1$ perl -v | |
This is perl 5, version 22, subversion 0 (v5.22.0) built for x86_64-linux | |
(with 1 registered patch, see perl -V for more detail) | |
Copyright 1987-2015, 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. | |
bash-4.1$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment