You need to compile and install this by hand. Luckily that is easier than you might think. I will assume a Unix system of some sort, and assume that you are not in a mod_perl environment.

You need to download it, tar -xvzf perl-5.8.7.tar.gz it, then cd into the directory that was created and run ./Configure (the defaults will be OK on everything except where to install it, you want it installed to a local directory), then make, make test and finally make install.

I would personally advise doing this as an unprivileged user so you don't accidentally overwrite any system libraries that might exist.

That should install it to whatever directory you specified. This installation is completely independent of your existing Perl. So the next thing you need to do is /path/to/new/version/bin/perl -MCPAN -e shell and go about installing all of your CPAN dependencies. Then run your application against this version of Perl.

If modifying your application to run against the new location of Perl is too much work, as a hack you can (as root) move your existing /usr/bin/perl then ln /path/to/new/version/bin/perl /usr/bin/perl, test your application, then remove your symlink and copy the old version of Perl back when you're done.

If you are on a non-Unix like OS (eg Windows), then you may not have all of the tools for the above to work. If so then you'll need to manually locate a copy of an older version of Perl for your platform and follow its instructions. Likewise if you're using mod_perl then you'll need to compile Apache with mod_perl with an older version of Perl.


In reply to Re: Install Perl 5.8.7 by tilly
in thread Install Perl 5.8.7 by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.