Last active
July 24, 2018 17:37
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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