in reply to Checklist for installing mod_perl

Is there any particular reason you're installing from source?

If not, I'd recommend the following (for mod_perl):

sudo apt-get install libapache2-mod-perl2

If you don't already have apache, you should do this first:

sudo apt-get install apache2 apache2.2-common apache2-mpm-worker apach +e2-utils libapr1 libaprutil1

You might want to use apache2-mpm-prefork (non-threaded, slower) instead of apache2-mpm-worker (threaded, faster) if you need compatibility with non-thread-safe libraries.

For more info on installing a LAMP server on ubuntu, see here: https://help.ubuntu.com/community/ApacheMySQLPHP

Just ignore all the stuff about "PHP" ;-)

Replies are listed 'Best First'.
Re^2: Checklist for installing mod_perl
by wfsp (Abbot) on Apr 06, 2010 at 14:03 UTC
    No particular reason. :-)

    It was partly because I followed the install procedure on the mod_perl website. Also, I wanted to install a separate perl anyway and in the back of my mind was how mod_perl would pick up the new perl. Which perl would the apt-get package pick up? The page you linked to doesn't mention perl.

    A minor point, I found the way Ubuntu setup Apache more than a bit convoluted, although I'm sure you'd get used to it.

      I'm pretty sure the Ubuntu setup is the same as that of any other Debian-based linux distribution.

      The default version of perl depends on which version of Ubuntu you're using. Ubuntu 8.04LS uses Perl 5.8.8. I *think* Ubuntu 9.04 comes with Perl 5.10.

      You have to be real careful if you try to upgrade perl on an older distribution, because the OS uses perl-based scripts for certain things - so changing the system perl can break your whole installation. Installing from source (into an area like /opt or /usr/local) is probably the best way to go. Or else upgrade Ubuntu until you get a version that comes with the perl you want!

      The main reason I have for using the package manager (for apache) is that it makes life easier if you start installing multiple apache modules (mod_rewrite, mod_ssh, mod_dav, etc) - many of those have multiple dependencies on other libraries, etc. Trying to get everything built without any conflicts takes a lot of time and energy - all easily avoided by simply using the package manager.