Actually, I have two questions, but the second is very secondary, an
unrelated to the first.

All work is on a RedHat Linux box, as a non-root user.

Perl is 5.6.1, and I already have two copies of apache 2 installed.

I am now trying to set up a mod-perl enabled server. (oh, and yes.. I
*do* do a 'make clean' before I configure :)

I have installed a new server using the following configure command
(line-wrapped by the mail-client):

TARGET=httpd2.mod_perl ./configure --build=i686
--enable-layout=Lucas.mod_perl --enable-mime-magic --enable-expires
--enable-info --enable-cgi --enable-include --enable-negotiation
--disable-userdir --with-program-name=httpd2_mod_perl --with-mpm=prefork

This works fine, and I have no problems here: I can start'n'stop the
server, and see known-correct pages in my browser.

I then prepare mod_perl (version 1.99, 'cos I'm using apache 2) with the
following line:

 perl Makefile.PL MP_INST_APACHE2=1 MP_DEBUG=1 MP_INST_APACHE2=1
MP_AP_PREFIX=/home/cpan/httpd-2.0.39 MP_USE_STATIC=1 MP_USE_DSO=0

This appears to configure OK, and the 'make' completes with no errors.

I know that I can't simply run 'make test' due to (a) a non-standard
location & (b) a non-standard name, so I have tried the line:

t/TEST -httpd /home/cpan/sbin/httpd2_mod_perl

This fails, unable to find "Apache/Const.pm":

------- start screen dump ------------
[cpan@lucas mod_perl-1.99_07]$ t/TEST -httpd
/home/cpan/sbin/httpd2_mod_perl 
*** setting ulimit to allow core files
ulimit -c unlimited; t/TEST -httpd '/home/cpan/sbin/httpd2_mod_perl'
Can't locate Apache/Const.pm in @INC (@INC contains: Apache-Test/lib
/home/cpan/mod_perl-1.99_07/Apache-Test/lib
/home/cpan/mod_perl-1.99_07/lib /home/cpan/mod_perl-1.99_07/blib/lib
/home/cpan/mod_perl-1.99_07/blib/arch
/home/cpan/mod_perl-1.99_07/t/../Apache-Test/lib
/home/cpan/mod_perl-1.99_07/t/../lib
/home/cpan/mod_perl-1.99_07/t/../../lib
/home/cpan/lib/perl5/5.6.1/i686-linux /home/cpan/lib/perl5/5.6.1
/home/cpan/lib/perl5/site_perl/5.6.1/i686-linux
/home/cpan/lib/perl5/site_perl/5.6.1 /home/cpan/lib/perl5/site_perl .)
at /home/cpan/mod_perl-1.99_07/t/response/TestApache/subprocess.pm line
12.
BEGIN failed--compilation aborted at
/home/cpan/mod_perl-1.99_07/t/response/TestApache/subprocess.pm line 12.
Compilation failed in require at
/home/cpan/mod_perl-1.99_07/t/../Apache-Test/lib/Apache/TestConfigPerl.pm line 382.
/home/cpan/sbin/httpd2_mod_perl  -d /home/cpan/mod_perl-1.99_07/t -f
/home/cpan/mod_perl-1.99_07/t/conf/httpd.conf -DAPACHE2 
using Apache/2.0.39 (prefork MPM)

waiting for server to start: .Syntax error on line 598 of
/home/cpan/mod_perl-1.99_07/t/conf/httpd.conf:
LoadModule takes two arguments, a module name and the name of a shared
object file to load it from
!!! 
server has died with status 1 (t/logs/error_log wasn't created, start
the server in the debug mode)
[cpan@lucas mod_perl-1.99_07]$ 
------- end screen dump ------------

I have had a look for the file Const.pm in the user's directory tree,
and it does exist, however it's full path is: 

/home/cpan/mod_perl-1.99_07/blib/lib/Apache2/Apache/Const.pm

(there is an extra /Apache2 in there)

How to I get the test program to use (build?) the correct @INC array?

Many thanks.

Oh, the second question.... sorry.
I want to include the MP_USE_GTOP option, however the make barfs, unable
to locate the glibtop header files (even though I have set the
environment variable LD_LIBRARY_PATH to refer to the correct directory.

Any thoughts here?

(As I said, not really as important :-)

Ta.
-- 
--==++
Ian Stuart: Edinburgh University Data Library.

Information is not knowledge
Knowledge is not wisdom
Wisdom is not truth
Truth is not beauty
Beauty is not love
Love is not music
              -- Mary.

 Personal web site: http://lucas.ucs.ed.ac.uk/ 


Reply via email to