Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.