Self-contained, portable perl binaries for x86-64 Linux and OS X.
You can download them from release page.
Since version 5.10, perl can be built with relocatable INC.
If we build perl with
-Duserelocatableinc and apply some patches to it,
then we have self-contained and portable perl.
curl -sSkL https://git.io/perl-install | bash -s ~/perl
This installs the latest relocatable perl to
git clone https://github.com/skaji/plenv-download ~/.plenv/plugins/plenv-download # download the latest relocatable perl plenv download latest
Let's say you use OS X. Then:
wget https://github.com/skaji/relocatable-perl/releases/download/184.108.40.206/perl-darwin-2level.tar.gz tar xzf perl-darwin-2level.tar.gz mv perl-darwin-2level ~/my-favorite-name
That's all. Check out your perl works:
$ ~/my-favorite-name/bin/perl -v This is perl 5, version 26, subversion 1 (v5.26.1) built for darwin-2level # cpanm is already installed. Install your favorite cpan modules. $ ~/my-favorite-name/bin/cpanm LWP::UserAgent
How to build relocatable perls by yourself
Copyright (C) Shoichi Kaji.
This is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Please note that the artifacts in the release page contains
Perl5, App::cpanminus and App::ChangeShebang.
They have their own copyright and license.