Re^2: mod_perl installation - missing apache src
by ARiccela (Novice) on Jun 08, 2009 at 20:52 UTC
|
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...? | [reply] [d/l] |
|
|
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.
| [reply] [d/l] [select] |
|
|
OK, will do, but wouldn't CPAN automatically get the latest version of mod_perl?
I seriously appreciate the help, and the patience. I have never, ever done any type of Sys Admin, server setup, etc. I just be a little old Java/ColdFusion code monkey. Then last week guess what I got thrust upon me...? Welcome to 'The Show' kid...
| [reply] |
|
|
| [reply] [d/l] |
|
|
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.*
| [reply] [d/l] |
Re^2: mod_perl installation - missing apache src
by ARiccela (Novice) on Jun 08, 2009 at 18:32 UTC
|
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!
| [reply] [d/l] |
|
|
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...
| [reply] [d/l] [select] |
|
|
@Khen1950fx - Thanks, that dir you list is exactly where mine came up after running the 'whereis' cmd.
@almut - I did some digging, and here's what I got:
#rpm -qil httpd-2.2.3-11.el5
Name : httpd Relocations: (not relocatab
+le)
Version : 2.2.3 Vendor: Red Hat, Inc.
Release : 11.el5 Build Date: Mon 06 Aug 200
+7 11:24:29 AM UTC
Install Date: Wed 13 May 2009 11:23:46 PM UTC Build Host: ls20-bc
+2-14.build.redhat.com
Group : System Environment/Daemons Source RPM: httpd-2.2.3-11
+.el5.src.rpm
Size : 3054126 License: Apache Softwar
+e License
Signature : DSA/SHA1, Mon 27 Aug 2007 01:38:50 PM UTC, Key ID 532681
+0137017186
Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL : http://httpd.apache.org/
Summary : Apache HTTP Server
Description :
The Apache HTTP Server is a powerful, efficient, and extensible
web server.
/etc/httpd
/etc/httpd/conf
/etc/httpd/conf.d
/etc/httpd/conf.d/README
/etc/httpd/conf.d/proxy_ajp.conf
/etc/httpd/conf.d/welcome.conf
...
Is this what you were talking about, a runtime install...?
| [reply] [d/l] |
|
|
|
|
Try running whereis apachectl to see if you have it. On my system, I have to run the command like: /usr/sbin/apachectl start.
| [reply] [d/l] [select] |