Subject: | perlbrew fails to build perl 5.12.2 |
I tried to install perl-5.12.2 by doing the following:
export LANG=C
export PERLBREW_ROOT=/opt/artemis/perl
curl -LO http://xrl.us/perlbrew
chmod +x perlbrew
./perlbrew install
/opt/artemis/perl/bin/perlbrew init
echo "source /opt/artemis/perl/etc/bashrc" >> $HOME/.bashrc
source /opt/artemis/perl/etc/bashrc
perlbrew install perl-5.12.1
perlbrew switch perl-5.12.1
This fails with the following error message:
Only http is supported by HTTP::Lite at /opt/artemis/perl/bin/
perlbrew line 149.
Fail to get https://github.com/miyagawa/cpanminus/raw/master/cpanm
(error: ) at /opt/artemis/perl/bin/perlbrew line 1433.
It looks like perlbrew tries to fetch data from github using http. Now
github always forwards to https which is not supported by HTTP::Lite. I
suggest using a different HTTP module or convincing github to provide
public data via http.