in reply to Specifying Perl version to Apache via httpd.conf

I think --with-perl is largely historical cruft, at least for Linux/Unix type systems. I suspect that .configure will just "do the right thing" and find the perl installed by your distro. It seems like all that option probably does is rewrite the shebang lines in the helper scripts.

In the old days, this mattered because there were lots of systems where /usr/bin/perl was version 4. On a lot of our systems, we had /usr/bin/perl5 for a long time. Anyhow, the scripts need Perl 5 so we get that option.

To be fair, that option may still matter a lot on other platforms that don't really have a canonical location for Perl.

Replies are listed 'Best First'.
Re^2: Specifying Perl version to Apache via httpd.conf
by kcott (Archbishop) on Jun 06, 2014 at 00:38 UTC
    "I think --with-perl is largely historical cruft, at least for Linux/Unix type systems. I suspect that .configure will just "do the right thing" and find the perl installed by your distro."

    I'm looking at options for using a Perl that is not the one "installed by your distro". See the update to the OP for more information on that.

    -- Ken

      Hello again, kcott, and thanks for the update.

      For the record; I wans't trying to be "nozey", or anything. But I found it hard to speak specifically to solution(s) w/o a bit more info. :)

      As I mentioned in my original response to your question; isn't it enough to simply tell your Perl applications which Perl to use? I'm thinking "shebang" here, but I know many of the other stuff allows you to setup any desired ENV you might/may require.

      As I await your response, I'll go dig up all the old links I have for httpd.conf related stanza's I recall having seen, a couple, or so years ago, and update this post, or reply as appropriate.

      --Chris

      UPDATE:
      I think the following covers what I had recalled, pretty well:
      perl-apache-httpd-conf
      P.S. Just for the record; you can do all of this on VirtualHost basis, meaning; a different host can run a different Perl -- my own recollection.

      ¡λɐp ʇɑəɹ⅁ ɐ əʌɐɥ puɐ ʻꜱdləɥ ꜱᴉɥʇ ədoH