Skip to content

Instantly share code, notes, and snippets.

@vifo
Last active July 24, 2018 17:37
Show Gist options
  • Save vifo/5986771 to your computer and use it in GitHub Desktop.
Save vifo/5986771 to your computer and use it in GitHub Desktop.
Perl: Install latest stable Perl via perlbrew with custom perlbrew root and options.
#!/usr/bin/env bash
export CC="gcc"
export CFLAGS="-march=native -O2 -Wall -pipe"
export CXXFLAGS="-march=native -O2 -Wall -pipe"
export PERLBREW_ROOT="/usr/local/perl"
export PERLBREW_CONFIGURE_FLAGS="-Dcc=gcc -Dinstallusrbinperl=n -Dpager=\"/usr/bin/sensible-pager\" -Uman1dir -Uman3dir -Usiteman1dir -Usiteman3dir -Uuseshrplib -Uusethreads -Uvendorman1dir -Uvendorman3dir -des"
curl -L http://install.perlbrew.pl | bash
source /usr/local/perl/etc/bashrc
perlbrew install 5.18.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment