Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

mod_perl installation weirdo...

by ismail (Acolyte)
on Dec 08, 2000 at 21:59 UTC ( [id://45755]=perlquestion: print w/replies, xml ) Need Help??

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

I'm trying to install mod_perl and I get an error out of the box. I'm following the instructions for "INSTALL.simple" and I'm installing for the following versions: mod_perl_1.24, apache_1.3.14

Here is what happens:
--begin stuff-- [root@dn5 mod_perl-1.24]# perl Makefile.PL DO_HTTPD=1 USE_APACI=1 APA +CHE_PREFIX=/usr/local/apache Will configure via APACI Enter `q' to stop search Please tell me where I can find your apache src [../apache_x.x/src] ../apache_1.3.14/src cp apaci/Makefile.libdir ../apache_1.3.14/src/modules/perl/Makefile.li +bdir cp apaci/Makefile.tmpl ../apache_1.3.14/src/modules/perl/Makefile.tmpl cp apaci/README ../apache_1.3.14/src/modules/perl/README cp apaci/configure ../apache_1.3.14/src/modules/perl/configure cp apaci/libperl.module ../apache_1.3.14/src/modules/perl/libperl.modu +le cp apaci/mod_perl.config.sh ../apache_1.3.14/src/modules/perl/mod_perl +.config.sh cp apaci/load_modules.pl.PL ../apache_1.3.14/src/modules/perl/load_mod +ules.pl.PL cp apaci/find_source.PL ../apache_1.3.14/src/modules/perl/find_source. +PL cp apaci/apxs_cflags.PL ../apache_1.3.14/src/modules/perl/apxs_cflags. +PL cp apaci/mod_perl.exp ../apache_1.3.14/src/modules/perl/mod_perl.exp ************* WARNING ************* Apache Version 1.3.0 required, aborting... ************* WARNING ************* --end stuff--

Um... anybody else run into this? If not, anyplace else I can look for guidance?

thanks!
f.

Replies are listed 'Best First'.
Re: mod_perl installation weirdo...
by dchetlin (Friar) on Dec 08, 2000 at 22:07 UTC
    You need mod_perl 1.24_01 to go with Apache 1.3.14. Get it here.

    -dlc

(Guildenstern) Re: mod_perl installation weirdo...
by Guildenstern (Deacon) on Dec 08, 2000 at 22:09 UTC
    After some digging around on one of the mod_perl mailing lists, it appears that apache_1.3.14 is broken somehow in relation to mod_perl_1.24. The consensus seems to be that you'll need to get mod_perl_1.24_01 in order for it all to work correctly.

    Hope this helps!

    Guildenstern
    Negaterd character class uber alles!
Re: mod_perl installation weirdo...
by rdw (Curate) on Dec 08, 2000 at 22:07 UTC

    I hit this recently. There is a newer version of mod_perl - 1.24_01 - getting that solved my problem.

    Have fun,

    rdw

Re: mod_perl installation weirdo...
by damian1301 (Curate) on Dec 08, 2000 at 22:41 UTC
    Just while we're on the subject. Im wondering if anyone can answer these questions for me? Or point me to somewhere that could (please keep it short and easy to understand).

    1. What is mod_perl?
    2. Are there any differences between coding mod_perl and the regular ol' Perl?

    Thanks to all who answer!

    Wanna be perl hacker.
    Dave AKA damian
      mod_perl syntax isn't different from perl. It is just a module as far as the perl side (it interacts with the Apache side, which is why apache needs to be patched, but the perl works the same)

      _writing_ scripts with mod_perl is fairly significantly different. You can write stuff using Apache::Registry, but that's really a stopgap measure.

      mod_perl allows you to write handlers for requests to apache. "Normally", with a cgi script, the request comes in, apache looks at it and does all the various lookups to get the right file. It then says "Ah, this is a CGI request", and hands it to the CGI handler. This, in turn, reads in the file, executes the she-bang line, and your script runs just as if it had been run from the command line. Output is then handed back to Apache, which passes it to the browser, and the user sees the results.

      mod_perl lets you write your own handlers for requests. This is vastly faster, since you don't have to load Perl (it's resident), and perl has already pre-interpreted what it can of the script. It does represent a difference in how you think of requests. Your variables aren't limited to one execution, for example.

      mod_perl is cool. The various mod_perl sites tend to assume you know what's going on, so I highly recommend the Eagle book from O'Reilly.

      (The above is my simplified and possibly wrong interpretation of how mod_perl and Apache work their magic)

      In short, mod_perl is an extension to Apache to make Perl code run better under Apache. The homepage, or at least a very good starting point seems to be http://perl.apache.org.

      For the differences, there are some sites, but I can't find them right now and my best friend just came to visit - sorry, I'll put an update here later ...

Re: mod_perl installation weirdo...
by ismail (Acolyte) on Dec 08, 2000 at 22:18 UTC
    sweet! ++'s for everyone! :)
      BTW, the issue is that Apache tinkered with how they set the version number in the C declarations. And the perlscript that does the check for the version string is quite a hackjob anyway, notwithstanding the series of hacks that have been added to keep up with changes in Apache's .h files and #declares =)

      --
      $you = new YOU;
      honk() if $you->love(perl)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-20 02:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found