You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Khan Farhan Zahidi <"f...@yahoo.com, fa...@indiamart.com> on 2006/08/31 10:07:33 UTC

Mod perl compilation error

Hello.

I Ran following command on Linux 2.4.21-4.EL i386 GNU/Linux.

perl Makefile.PL MP_APXS2=/usr/local/apache/bin/apxs
It is giving me ..
result..
[warning] You'll need to add the following to httpd.conf:
[warning]
[warning]   LoadModule perl_module modules/mod_perl.so
[warning]
[warning] depending on your build, mod_perl might not live in
[warning] the modules/ directory.

[warning] Check the results of
[warning]
[warning]   $ /usr/local/apache/bin/apxs -q LIBEXECDIR
[warning]
[warning] and adjust the LoadModule directive accordingly.

Then i ran make test
gave results..

[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/bin/perl 
/usr/local/src/mod_perl-2.0.2/t/
TEST 
-clean APACHE_TEST_GROUP= APACHE_TEST_HTTPD= 
APACHE_TEST_PORT= 
APACHE_TEST_USER= 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 
/usr/local/src/mod_perl-2.0.2/t/
TEST
-bugreport -verbose=0
[warning] root mode: changing the files ownership to
 'nobody' (99:99)
[warning] testing whether 'nobody' is able to -rwx 
/usr/local/src/mod_perl-2.0.2/t
"/usr/bin/perl" -Mlib=/usr/local/src/mod_perl-2.0.2/
Apache-Test/lib
-MApache::TestRun -e 'eval { Apache::TestRun::
run_root_fs_test(99, 99,
q[/usr/local/src/mod_perl-2.0.2/t]) }';


[warning] result: OK
[warning] the client side drops 'root' permissions and 
becomes 'nobody'
/usr/local/apache/bin/httpd  -d 
/usr/local/src/mod_perl-2.0.2/t -f
/usr/local/src/mod_perl-2.0.2/t/conf/httpd.conf -D 
APACHE2 -D 
PERL_USEITHREADS using Apache/2.0.48 (prefork MPM)

waiting 120 seconds for server to start: .[  error]
server has died with status 255 
(t/logs/error_log wasn't created, 
start the
server in the debug mode)
make: *** [run_tests] Error 143
...

Can you get me out of this trouble..

Prior i have installed Apache, PHP, Mysql..With ,
Apache..
Server version: Apache/2.0.48
Server built:   Aug 27 2006 11:14:32
Server's Module Magic Number: 20020903:4
Architecture:   32-bit
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_PROC_PTHREAD_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D HTTPD_ROOT="/usr/local/apache"
 -D SUEXEC_BIN="/usr/local/apache/bin/suexec"
 -D DEFAULT_PIDLOG="logs/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_LOCKFILE="logs/accept.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"
PHP with
./configure \
--with-apxs2=/usr/local/apache/bin/apxs \
--disable-debug \
--enable-ftp \
--enable-inline-optimization \
--enable-magic-quotes \
--enable-mbstring \
--enable-mm=shared \
--enable-safe-mode \
--enable-track-vars \
--enable-trans-sid \
--enable-wddx=shared \
--enable-xml \
--with-dom \
--with-gd \
--with-gettext \
--with-mysql-dir=/usr/local/mysql \
--with-regex=system \
--with-xml \
--with-zlib-dir=/usr/lib


Now when i try to run  /usr/local/apache/bin/apachectl --help
It gives me error i.e.

(98)Address already in use: make_sock: could not bind to address 
0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
...
One more thing i.e after installing php-5.1.6 i uninstalled perl then 
installed upgraded one i.e perl-5.8.8

Can you help me???


Thanx in advance..
Khan Farhan Zahidi