perl.sh 736 B

12345678910111213141516
  1. #!/bin/bash
  2. RETCODE=$(fw_exists ${IROOT}/perl-5.18.installed)
  3. [ ! "$RETCODE" == 0 ] || { return 0; }
  4. fw_get https://raw.github.com/tokuhirom/Perl-Build/master/perl-build -o perl-build.pl
  5. # compile with optimizations, n.b. this does not turn on debugging
  6. perl perl-build.pl -DDEBUGGING=-g 5.18.2 perl-5.18 2>&1 | tee $IROOT/perl-install.log | awk '{ if (NR%100 == 0) printf "."}'
  7. fw_get http://cpanmin.us -o cpanminus.pl
  8. perl-5.18/bin/perl cpanminus.pl --notest --no-man-page App::cpanminus
  9. # Install only a bare-bones of Perl modules
  10. # Install others in the per-framework install script or cpanfile
  11. perl-5.18/bin/cpanm -f --notest --no-man-page Carton JSON JSON::XS IO::Socket::IP IO::Socket::SSL
  12. touch ${IROOT}/perl-5.18.installed