self-contained, portable perl binaries
Perl Other
Clone or download
Latest commit d206264 Jun 22, 2018
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 Apr 14, 2018
LATEST LATEST Jun 23, 2018
LICENSE add LICENSE May 31, 2015 Apr 14, 2018 update Feb 17, 2018
perl-install update Feb 17, 2018
relocatable-perl-build undef i_xlocale for ubuntu 18.04 Jun 16, 2018

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.


One liner

curl -sSL | bash -s ~/perl

This installs the latest relocatable perl to ~/perl.


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

git clone ~/.plenv/plugins/plenv-download
# download the latest relocatable perl
plenv download latest


Let's say you use OS X. Then:

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, Dockerfile and Docker Hub.


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.