Self-contained, portable perl binaries for Linux and macOS. 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.
There are 3 ways:
curl -fsSL https://raw.githubusercontent.com/skaji/relocatable-perl/main/perl-install | bash -s ~/perl
This installs the latest relocatable perl to ~/perl
.
If you use plenv, then plenv-download may be useful:
git clone https://github.com/skaji/plenv-download $(plenv root)/plugins/plenv-download
# download the latest relocatable perl
plenv download latest
You can download appropriate tarballs from release pages.
For example, if you use linux amd64, then:
curl -fsSL -o perl-linux-amd64.tar.xz https://github.com/skaji/relocatable-perl/releases/latest/download/perl-linux-amd64.tar.xz
tar xJf perl-linux-amd64.tar.xz
mv perl-linux-amd64 ~/wherever-you-want
~/wherever-you-want/bin/perl --version
See build and .github/workflows directories.
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.
-
libcrypt.a Copyright (C) 1991-2015 Free Software Foundation, Inc. GNU Lesser General Public License version 2.1 or later.