Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

mod_perl installation - missing apache src

by ARiccela (Novice)
on Jun 08, 2009 at 18:04 UTC ( [id://769636]=perlquestion: print w/replies, xml ) Need Help??

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

I am trying to install mod_perl via CPAN but am getting the error output below. Is it asking for the Apache Server src code or the Perl module Apache module code, which I assumed was installed by mod_perl! Any attempts I make to point toward the Apache Server code fail, which led me to make this post thinking I'm being too literal. Thanks in advance for the help!
CPAN: File::Temp loaded ok (v0.21) CPAN: YAML loaded ok (v0.68) CPAN.pm: Going to build G/GO/GOZER/mod_perl-1.31.tar.gz Enter `q' to stop search Please tell me where I can find your apache src [../apache_x.x/src] sh: ./Configure: No such file or directory

Replies are listed 'Best First'.
Re: mod_perl installation - missing apache src
by almut (Canon) on Jun 08, 2009 at 18:19 UTC
    Any attempts I make to point toward the Apache Server code fail

    Are you sure you have the Apache sources installed?

    See the installation docs for the details.

      OK, this isn't making any sense. We went ahead, got the "-devel" install. Installed it, v2.2.3. Then went to CPAN shell, reran install for mod_perl, and it gloriously bombed and we got this wonderful error:
      Please tell me where I can find your apache src [../apache_x.x/src] /usr/src/redhat/SOURCES/httpd-2.2.3 Configure mod_perl with /usr/src/redhat/SOURCES/httpd-2.2.3 ? [y] y ************* WARNING ************* Apache Version 1.3.0 required, aborting... ************* WARNING *************
      OK, what gives? Why is it saying an older version is required??? Is there a Perl module I may be missing...?

        I suppose you've downloaded mod_perl-1.31, which is for the older Apache-1 branch.  Try mod_perl-2.0.4 instead.

        Update: as you're using the CPAN shell, I guess the problem is that it by default gets the most recently released version, and mod_perl-1.31 is more recent (13 May 2009) than mod_perl-2.0.4 (17 Apr 2008) — kind of unfortunate...

        So try: install G/GO/GOZER/mod_perl-2.0.4.tar.gz  from the CPAN shell.

        The message

        Please tell me where I can find your apache src [../apache_x.x/src]

        should appear only if you want to install Apache::Registry for mod_perl 1.* . You should not need this for mod_perl 2.*

      Well, they were installed. This past Friday I could start the server 'apachectl start' and nav to our app's homepage and get the RH/apache test/maintainance page. I just now tried it and got this...
      $ su root Password: apachectl start bash: apachectl: command not found $
      Maybe this be why I'm having trouble!

        Even being able to successfully start Apache does not necessarily mean that its C sources are installed. Most distros only install the Apache runtime environment, i.e. compiled program, etc. (when you install the apache package), but not the source/header files. You typically need to install them separately via "*-dev" or "*-devel" packages.

        If you intend to use packages supplied by the disto (or are generally not experienced with compiling stuff yourself), it's usually easier to also use the precompiled mod_perl distro package, if one is available...

        Try running whereis apachectl to see if you have it. On my system, I have to run the command like: /usr/sbin/apachectl start.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (10)
As of 2024-03-29 15:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found