Skip to content
Build and install perls
Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
vendor/patchperl-extracted
LICENSE reinit Dec 22, 2019
README.md
perl-install prefer xz Dec 23, 2019

README.md

perl-install

Build and install perls.

This is similar to perl-build. While perl-build is written in perl, perl-install is written in shell script.

perl-install also provides plenv install command.

Install

# If you have git, then
git clone https://github.com/skaji/perl-install

# If you don't have git, but wget/tar, then
wget -o perl-install-master.tar.gz https://github.com/skaji/perl-install/archive/master.tar.gz
tar xf perl-install-master.tar.gz

If you want to use perl-install as a plenv plugin, then change the target directory:

git clone https://github.com/skaji/perl-install $(plenv root)/plugins/perl-install
# Now you have `plenv install` command powered by perl-install

Note that if you already have perl-build in your plenv plugin directory, then remove it first.

Usage

❯ perl-install --help
Usage: perl-install [options] perl_version prefix

Options:
  -A, -D, -U       set perl configure options
  -l, --list       list stable perl versions, and exit
  -L, --list-all   list all perl versions, and exit
  -j, --jobs       set make --jobs option
  -h, --help       show this help
      --version    show perl-install's version
      --noman      do not generate man pages, i.e, set -Dman1dir=none and -Dman3dir=none
      --nopatch    do not apply Devel::PatchPerl
      --test       run test
      --work-dir   set work directory

Examples:
  $ perl-install -l
  $ perl-install 5.30.1 ~/perl
  $ perl-install 5.30.1 ~/perl-shrplib -Duseithreads -Duseshrplib

Requirements

To use perl-install, you need:

  • curl/wget
  • tar
  • patch

To build perl, you need:

  • make
  • c compiler, such as gcc
  • c headers

License

This software is copyright (c) 2019 by Shoichi Kaji skaji@cpan.org.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

You can’t perform that action at this time.