Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Perl 5.8 on Debian

by crenz (Priest)
on Apr 06, 2005 at 09:51 UTC ( [id://445228]=perlquestion: print w/replies, xml ) Need Help??

crenz has asked for the wisdom of the Perl Monks concerning the following question:

I have a webserver where I'm running a few projects that make fairly extensive use of Perl's Unicode features. The server is running on Debian stable, so unfortunately this means I have to work with Perl 5.6.1.

I am slowly getting very fed up with 5.6.1's Unicode support and definitely want to switch to a 5.8 version. However, as far as I know (confirmed by the SVK Wiki), there is no 5.8 for Debian stable, so I only seem to have three alternatives:

  1. Move the whole server to Debian unstable, losing security updates
  2. Install Perl from source, but going well beyond Install parallel Perl on Debian because on top of that, I have to install Apache and mod_perl from source as well!
  3. Wait till Debian Sarge is released... in a year. Or two. Or three.

All three alternatives sound rather scary (although the second one less so, since I'm a bit security-minded). Any hints how I should go about this problem?

Replies are listed 'Best First'.
Re: Perl 5.8 on Debian
by tlm (Prior) on Apr 06, 2005 at 10:06 UTC

    BTW, you don't need to switch the entire server to testing (or unstable); you can just upgrade perl. Try

    [sudo or whatever] apt-get install perl/testing

    the lowliest monk

      Or even

      apt-get build-dep --compile perl && apt-get source --compile perl

      with

      deb-src http://http.us.debian.org/debian testing main or deb-src http://http.us.debian.org/debian unstable main

      cp
      ----
      "Never be afraid to try something new. Remember, amateurs built the ark. Professionals built the Titanic."

      Thanks, that sounds like a viable option. That way, I can install perl, Apache and mod_perl from testing. Of course, there are still some security issues, but at least I only have a few packages to watch, not a whole system.

Re: Perl 5.8 on Debian
by borisz (Canon) on Apr 06, 2005 at 10:46 UTC
    I install a recent perl in another location and make that the default. So any change to the distribution does not affect perl anymore.
    Boris
Other alternatives
by dave0 (Friar) on Apr 06, 2005 at 14:11 UTC
    In Debian, you can pull packages from multiple sources, so you might1 be able to get your base OS from 'stable' and pull certain packages from 'testing' or 'unstable'. See http://www.argon.org/~roderick/apt-pinning.html for information on setting this up.

    Rather than using testing or unstable, you might be able to find some of the packages you need at http://www.backports.org. Not Perl, though, but they do have Apache2.

    A nice middle ground between building everything from upstream sources, or suffering through outdated packages might be to build your own .deb packages of perl 5.8.x and its dependancies. I haven't tried this for something as complex as Perl or Apache, but for many other packages it's a simple matter of downloading the source packages from 'unstable' and rebuilding them on 'stable'.

    1 - I say "might", because doing so might require upgrading the dependancies of Perl and Apache to the versions from 'testing', at which point you're basically better off just switching the entire thing rather than trying to track a 'stable' base and 'testing' for your apps.

Re: Perl 5.8 on Debian
by vladdrak (Monk) on Apr 07, 2005 at 08:06 UTC
    Well, security.debian.org does in fact host sarge debs. They aren't first priority, woody gets patched first, but sarge is close (cough) to becoming stable, and so the security team is more on the ball these days. Add this to your sources.list:
    deb http://security.debian.org/ sarge/updates main contrib non-free
    You could also crossgrade to Ubuntu..
Re: Perl 5.8 on Debian
by tlm (Prior) on Apr 06, 2005 at 10:02 UTC

    How about Debian testing?

    the lowliest monk

      Debian Testing also fails to get security updates. The situation there is actually worse then Unstable since it only contains packages that have been in Unstable without serious bug reports for a certain period of time.

        Yes; I was thinking all along about just upgrading to perl/testing; I should have been clearer.

        the lowliest monk

A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://445228]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (None)
    As of 2024-04-25 04:25 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found