in reply to Obtaining perl-5.6.2 for modern Ubuntu

I used perlbrew and it installed pretty easily.

$ perl -v This is perl, v5.6.2 built for x86_64-linux (with 1 registered patch, see perl -V for more detail) Copyright 1987-2003, Larry Wall Perl may be copied only under the terms of either the Artistic License + or the GNU General Public License, which may be found in the Perl 5 source ki +t. Complete documentation for Perl, including FAQ lists, should be found +on this system using `man perl' or `perldoc perl'. If you have access to + the Internet, point your browser at http://www.perl.com/, the Perl Home Pa +ge. $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 19.10 Release: 19.10 Codename: eoan

I've had this perlbrew installation for a while though, so I guess 5.6.2 might have been built on Ubuntu 18.x.

I don't have many problems getting 5.6.1 and 5.6.2 to build on Travis-CI with perlbrew either, though getting a recent version of Test::More to install properly on 5.6.1 can be a challenge.

Replies are listed 'Best First'.
Re^2: Obtaining perl-5.6.2 for modern Ubuntu
by syphilis (Archbishop) on Mar 20, 2020 at 11:25 UTC
    I used perlbrew and it installed pretty easily

    Ok ... so how do I install "perlbrew" on Ubuntu, and then coerce it into building perl-5.6.2 for me ? (Baby steps please.)

    I do have the 5.6.2 source tarball installed locally, and if perlbrew can build 5.6.2 on Ubuntu-18.x then I figure there's a good chance it can do the same on my Ubuntu-20.04.
    I just tried building 5.6.2 on Debian wheezy (which must be years old by now) and struck the same issue. And I tried 5.6.1 as well ... but it's no different.

    Don't we all just love people who want their stuff to build on ancient garbage that doesn't even build out of the box any more ?
    For those of you struggling to come up with the correct answer to that question, it's a definite "yes!!".

    (As in "yes ... we don't" ;-)
    Cheers,
    Rob

      from App::perlbrew:

      perlbrew install-patchperl; perlbrew install perl-5.6.2

      works for me (EDIT: Failed 3 test scripts out of 359, 99.16% okay.)

        Thanks - though not exactly my idea of baby steps ;-)
        Having installed App::perbrew, curl, and perlbrew, when I run:
        perlbrew install perl-5.6.2
        it tries to download http://www.cpan.org/authors/id/R/RG/RGARCIA/perl-5.6.2.tar.gz.
        But my ISP won't allow downloads via http of more than 1015 bytes.
        How do I tell perlbrew to download https://www.cpan.org/authors/id/R/RG/RGARCIA/perl-5.6.2.tar.gz instead ?

        As I mentioned, I already have perl-5.6.2.tar.gz so an alternative would be to grab the source from the local directory.

        EDIT: Failed 3 test scripts out of 359, 99.16% okay.

        If I can just get make install to work then that'll probly be good enough for me ;-)
        I'll see if I can work out how to get it to find the source ... might take me 2 minutes; might take me 2 hours ...

        Update: Heh, I found the following gem in the perlbrew --help documentation:
        PERLBREW_CPAN_MIRROR The CPAN mirror url of your choice. The default value is "http://www.cpan.org"
        No mention of how to alter the default, presumably because that could have been useful information.
        I checked echo $PERLBREW_CPAN_MIRROR only to find it was empty, and I walked away uttering strings of expletives - which is my usual mode of behaviour.
        About half an hour later, it occurred to me that maybe I should try setting the PERLBREW_CPAN_MIRROR env var to https://www.cpan.org just in case it might have the desired effect ... and it did !!
        This is just typical of unfamiliar tools - they're documentation never tells you what you need to know ;-)
        And therein lies my reticence to use them.

        Anyway - it still hasn't given me a perl-5.6.2 installation.
        More of that later as I follow it up.

        Next Update: 2 of the tests failed during make test, but running cd /home/sisyphus/perl5/perlbrew/build/perl-5.6.2/perl-5.6.2; make install takes care of that and I now have a (hopefully) usable perl-5.6.2 installation.
        As always, thanks guys !!!

        Cheers,
        Rob