http://qs321.pair.com?node_id=770765

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?