Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

mod_perl install with IBM HTTP server issues

by ARiccela (Novice)
on Jun 11, 2009 at 21:07 UTC ( #770765=perlquestion: print w/replies, xml ) Need Help??

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

I am working with a Linux box which has the latest IBM HTTP Server (v7.0) installed on it which is based off Apache 2.x. When I attempted to load mod_perl-2.0.4 via CPAN I got the following errors:
/usr/IBM/HTTPServer/bin/httpd: error while loading shared libraries: l +ibaprutil-1.so.0: cannot open shared object file: No such file or dir +ectory /usr/IBM/HTTPServer/bin/httpd: error while loading shared libraries: l +ibaprutil-1.so.0: cannot open shared object file: No such file or dir +ectory /usr/IBM/HTTPServer/bin/httpd: error while loading shared libraries: l +ibaprutil-1.so.0: cannot open shared object file: No such file or dir +ectory [ error] You are using mod_perl response handlers [ error] but do not have a mod_perl capable Apache. +--------------------------------------------------------+ | Please file a bug report: http://perl.apache.org/bugs/ | +--------------------------------------------------------+ make: *** [run_tests] Error 1 GOZER/mod_perl-2.0.4.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, t +ry: reports GOZER/mod_perl-2.0.4.tar.gz Running make install make test had returned bad status, won't install without force Failed during this command: GOZER/mod_perl-2.0.4.tar.gz : make_test NO
I did a quick search on the missing libraries and got
# find . -name httpd ./usr/lib64/httpd ./usr/IBM/HTTPServer/bin/httpd ./usr/lib/httpd ./etc/httpd ./var/log/httpd # pwd / [root@racmqa /]# find . -name 'libaprutil-1.*' ./usr/lib64/libaprutil-1.so.0 ./usr/lib64/libaprutil-1.so.0.2.7 ./usr/lib64/libaprutil-1.la ./usr/lib64/libaprutil-1.so ./usr/IBM/HTTPServer/lib/libaprutil-1.so.0.2.12 ./usr/IBM/HTTPServer/lib/libaprutil-1.so.0 ./usr/IBM/HTTPServer/lib/libaprutil-1.la ./usr/IBM/HTTPServer/lib/libaprutil-1.so #
So, I know the libraries are there, just not where mod_perl is looking for them. How do I direct the install towards those directories?

Replies are listed 'Best First'.
Re: mod_perl install with IBM HTTP server issues
by Corion (Patriarch) on Jun 11, 2009 at 21:11 UTC
      Also, likely, LD_LIBRARY_PATH must be set by the user that starts Apache.

      Apache (and I suppose the IBM variant, too) normally comes with a file envvars, that you can use to set variables like LD_LIBRARY_PATH. The file is located in the .../bin directory of the Apache installation, and is being sourced from the apachectl start script.

        @almut-I did find the envvars file and it did have the LD_LIBRARY_PATH defined. But, upon reinstall I did export the path found in envvars after starting the server just to make sure:
        export LD_LIBRARY_PATH="/usr/IBM/HTTPServer/lib:/usr/IBM/HTTPServer/gs +k7/lib:$LD_LIBRARY_PATH"
        Install of mod_perl2 seemed to run fine, then got this prompt:
        CPAN: YAML loaded ok (v0.68) CPAN.pm: Going to build G/GO/GOZER/mod_perl-2.0.4.tar.gz no conflicting prior mod_perl version found - good. 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): /usr/IBM/HTTPServer/bin +/apxs
        Install continues, a whole boatload of script runs past my eyes but I catch the following:
        LD_RUN_PATH="/usr/IBM/HTTPServer/lib:/lib64" gcc -shared -O2 -g -pipe + -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param +=ssp-buffer-size=4 -m64 -mtune=generic APR.o modperl_error.o modperl_ +bucket.o modperl_common_util.o modperl_common_log.o -o ../../../blib +/arch/auto/APR/APR.so \ -L/usr/IBM/HTTPServer/lib -laprutil-1 -ldl -lpthread -lexpa +t -L/usr/IBM/HTTPServer/lib -L/usr/IBM/HTTPServer/lib -lapr-1 -lrt -l +crypt -lpthread -ldl \ /usr/bin/ld: skipping incompatible /usr/IBM/HTTPServer/lib/libaprutil- +1.so when searching for -laprutil-1 /usr/bin/ld: skipping incompatible /usr/IBM/HTTPServer/lib/libaprutil- +1.so when searching for -laprutil-1 /usr/bin/ld: skipping incompatible /usr/IBM/HTTPServer/lib/libaprutil- +1.so when searching for -laprutil-1 /usr/bin/ld: skipping incompatible /usr/IBM/HTTPServer/lib/libexpat.so + when searching for -lexpat /usr/bin/ld: skipping incompatible /usr/IBM/HTTPServer/lib/libexpat.so + when searching for -lexpat /usr/bin/ld: skipping incompatible /usr/IBM/HTTPServer/lib/libexpat.so + when searching for -lexpat /usr/bin/ld: skipping incompatible /usr/IBM/HTTPServer/lib/libapr-1.so + when searching for -lapr-1 /usr/bin/ld: skipping incompatible /usr/IBM/HTTPServer/lib/libapr-1.so + when searching for -lapr-1 /usr/bin/ld: skipping incompatible /usr/IBM/HTTPServer/lib/libapr-1.so + when searching for -lapr-1 chmod 755 ../../../blib/arch/auto/APR/APR.so cp APR.bs ../../../blib/arch/auto/APR/APR.bs ...
        And then of course at the end, install abends:
        /usr/bin/perl -Iblib/arch -Iblib/lib \ t/TEST -clean [warning] setting ulimit to allow core files ulimit -c unlimited; /usr/bin/perl /root/.cpan/build/mod_perl-2.0.4-mN +k2wE/t/TEST -clean APACHE_TEST_GROUP= APACHE_TEST_HTTPD= APACHE_TEST_PORT= APACHE_TEST_US +ER= APACHE_TEST_APXS= \ /usr/bin/perl -Iblib/arch -Iblib/lib \ t/TEST -bugreport -verbose=0 [warning] setting ulimit to allow core files ulimit -c unlimited; /usr/bin/perl /root/.cpan/build/mod_perl-2.0.4-mN +k2wE/t/TEST -bugreport -verbose=0 [ error] You are using mod_perl response handlers [ error] but do not have a mod_perl capable Apache.
        Did you give it the correct source code that this server was built from? I believe I did point to the correct IBM directory for this. Looking at this problem I'm having, I have to ask is this an issue with Perl and the mod_perl2 install, or an IBM/Apached issue? Am I seeking help in the right forum? If not, I apologize, but do appreciate the help I've gotten here.
Re: mod_perl install with IBM HTTP server issues
by perrin (Chancellor) on Jun 12, 2009 at 02:56 UTC
    Did you give it the correct source code that this server was built from?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2023-03-22 16:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (60 votes). Check out past polls.

    Notices?