self-contained, portable perl binaries
Perl Other
Clone or download
Latest commit d206264 Jun 22, 2018
Permalink
Failed to load latest commit information.
src undef i_xlocale for ubuntu 18.04 Jun 16, 2018
.gitignore perl-install Jul 15, 2015
.travis.yml remove bz2 Oct 1, 2017
BUILD_VERSION 5.28.0 Jun 23, 2018
Dockerfile 5.26.2.0 Apr 14, 2018
LATEST LATEST 5.28.0.0 Jun 23, 2018
LICENSE add LICENSE May 31, 2015
README.md 5.26.2.0 Apr 14, 2018
mac.sh update Feb 17, 2018
perl-install update Feb 17, 2018
relocatable-perl-build undef i_xlocale for ubuntu 18.04 Jun 16, 2018

README.md

relocatable perl Build Status

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.

Install

One liner

curl -sSL https://git.io/perl-install | bash -s ~/perl

This installs the latest relocatable perl to ~/perl.

plenv

If you use plenv, then plenv-download may be useful:

git clone https://github.com/skaji/plenv-download ~/.plenv/plugins/plenv-download
# download the latest relocatable perl
plenv download latest

Manually

Let's say you use OS X. Then:

wget https://github.com/skaji/relocatable-perl/releases/download/5.26.2.0/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 2 (v5.26.2) 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

See mac.sh, Dockerfile and Docker Hub.

License

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.

  • Perl5 Copyright 1987-2015, Larry Wall, GNU General Public License or Artistic License

  • App::cpanminus Copyright 2010- Tatsuhiko Miyagawa, licensed under the same terms as Perl.

  • App::ChangeShebang Copyright Shoichi Kaji, licensed under the same terms as Perl.