LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 07-10-2006, 08:54 AM   #1
contiguous
LQ Newbie
 
Registered: Jul 2006
Location: Palestine
Distribution: Red Hat Enterprise Linux V.4
Posts: 8

Rep: Reputation: 0
mod_perl


This is my first post.

I have a problem installing mod_perl-2.0.2

I did the following:-
1- "#tar xzvf mod_perl-2.0.2.tar.gz"
2- "#cd mod_perl-2.0.2"
3- "#perl Makefile.PL"

-> output:
Quote:
mod_perl/1.99_16 installation detected... not ok

Cannot install mod_perl/2.0.2 on top of mod_perl/1.99_16
due to a major API change between mod_perl 1.999_21 and 1.999_22.

Conflicting file: /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/Apach e2.pm
Conflicting dir: /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/Apache

Please nuke the prior mod_perl installation from your site_lib,
use a different perl to run the installation process, or use the
PREFIX option when creating your Makefile.
.....
aborting...
4- "#rpm --erase --nodeps mod_perl" to uninstall current version.
5- "#perl Makefile.PL"
-> output:
Quote:
no conflicting prior mod_perl version found - good.
************* WARNING *************
Your Perl is configured to link against libgdbm,
but libgdbm.so was not found.
You could just symlink it to /usr/lib/libgdbm.so.2.0.0
************* WARNING *************

Next we need to know where the 'apxs' script is located.
........
Please provide a full path to 'apxs' executable
(press Enter if you don't have it installed): <<Enter was pressed>>

Please provide the location of the Apache directory: /etc/httpd
[ error] Unable to open /etc/httpd/ap_release.h: No such file or directory
[ error] Unable to determine server version, aborting.
[ error] Please specify MP_APXS or MP_AP_PREFIX.
----------------------------------------
My apache version is: httpd-2.0.52-9.ent

Running RHEL V.4

Any advice?
 
Old 07-10-2006, 03:31 PM   #2
jeelliso
Member
 
Registered: Oct 2005
Location: Knoxville, Tn (USA)
Distribution: OpenSUSE, Ubuntu
Posts: 250

Rep: Reputation: 30
Welcome to LQ!

I'm not sure about the particular version you are using, but I can compare it to mine: 2.2.2. First off, the "Apache directory" it is looking for is probably not in /etc, or at least it shouldn't be. For example, my Apache directory (well, the one it is asking for) is /apps/http_dada/include, where the apachectl script is /apps/http_dada/bin/apachectl. Run
Code:
slocate ap_release.h
to find out where your apache directory is (its probably /usr/local or something). This should fix the problem, or at least I think it should.

You should have apxs installed though. It will be in the same directory as the apachectl script.

Good Luck,
~Justin
 
Old 07-11-2006, 12:09 AM   #3
contiguous
LQ Newbie
 
Registered: Jul 2006
Location: Palestine
Distribution: Red Hat Enterprise Linux V.4
Posts: 8

Original Poster
Rep: Reputation: 0
My apache version is: httpd-2.0.52-9.ent.

But I'll try to build and compile the latest one 2.2.2, then 'slocate' for 'ap_release.h'.

I'll try to inform you about the 'apxs' binary after the update.

Anyhow, is it recommended to 'rpm --erase' my httpd version and then install the latest apache version?

Please note that the new apache version comes in the form '.tar.gz' not '.rpm', so the command 'rpm -U' is not applicable at the moment.

Thanks for the 'unofficial' support.
 
Old 07-11-2006, 07:09 AM   #4
jeelliso
Member
 
Registered: Oct 2005
Location: Knoxville, Tn (USA)
Distribution: OpenSUSE, Ubuntu
Posts: 250

Rep: Reputation: 30
I've never had much luck with the distribution supplied versions of Apache as they get updated frequently by updates, so I always build mine from source. I tried installing that Perl mod on my Apache, and everything installed fine. And yes, I would use 'rpm --erase' to remove the rpm Apache version. I'm not sure if you've ever compiled Apache from source, but when I built my current 2.2.2, I made build notes, so I'll post them for you.

Code:
[root@dada /]# cd /apps/packages/apache
[root@dada apache]# md5sum -c httpd-2.2.2.tar.gz.md5 
  httpd-2.2.2.tar.gz: OK
[root@dada apache]# ls /apps/packages/apache
  cgiwrap-3.10.tar.gz  httpd-2.2.2.tar.gz  httpd-2.2.2.tar.gz.md5
[root@dada apache]# cd /apps/build/apache/
[root@dada apache]# tar -zxf /apps/packages/apache/httpd-2.2.2.tar.gz
[root@dada apache]# tar -zxf /apps/packages/apache/cgiwrap-3.10.tar.gz
[root@dada /]# cd /apps/build/apache/httpd-2.2.2
[root@dada httpd-2.2.2]# ./configure \
  > --prefix=/apps/http_dada \
  > --enable-headers \
  > --enable-info \
  > --enable-speling
[root@dada httpd-2.2.2]# make
[root@dada httpd-2.2.2]# make install
Edit httpd.conf to allow server to run as specified user
Code:
[root@dada /]# vi /apps/http_dada/conf/httpd.conf
  (change "User daemon" to "User X" at around line 64)
  (change "Group daemon" to "Group X" at around line 65)
  (save and exit)
[root@dada /]# rm -f /apps/http_dada/htdocs/*
  (Removes auto-installed Apache pages/images)
[root@dada /]# rm -f /apps/http_dada/cgi-bin/*
  (Removes auto-installed CGI scripts)
Keep in mind that I did not use the default installation directory for Apache, so some of the directories will be different for you.

Good Luck,
~Justin
 
Old 07-13-2006, 03:06 AM   #5
contiguous
LQ Newbie
 
Registered: Jul 2006
Location: Palestine
Distribution: Red Hat Enterprise Linux V.4
Posts: 8

Original Poster
Rep: Reputation: 0
I didn't succeed in the update. 'previous definition' errors just came up. Maybe because of my previous attempt of updating which failed.

I'll try your advice. But could you give me a hint of your directory structure you use for installing and updating programs?

I might mimic it.

Thanks a lot for your concern.
 
Old 07-13-2006, 12:48 PM   #6
jeelliso
Member
 
Registered: Oct 2005
Location: Knoxville, Tn (USA)
Distribution: OpenSUSE, Ubuntu
Posts: 250

Rep: Reputation: 30
I don't have a set directory structure. Just make sure that whatever directory you are going to install the "cutom built" programs in is not something that Red Hat will update. We use a directory call '/apps' most of the time. This way, Red Hat doesn't even know about it and never tries to modify it.

~Justin
 
  


Reply

Tags
apxs, modperl


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
testing mod_perl pmedes Suse/Novell 0 12-28-2004 07:58 AM
installing mod_perl 1.29 jpan Linux - Software 0 11-03-2004 05:13 PM
mod_perl config flaxius Linux - Newbie 0 03-16-2004 02:52 AM
Apache and mod_perl TheCreator Linux - Software 0 12-21-2003 01:18 PM
mod_perl? ziggie216 Linux - Software 0 12-15-2003 06:17 PM


All times are GMT -5. The time now is 04:11 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration