Need help compiling mod perl with apache2
Hi, I have apache2 php5 and mysql all working, however I then want to have mod_perl compiled and installed with apache so i did perl Makefile.PL MP_APXS=/usr/local/apache/bin/apxs MP_APR_CONFIG=/usr/local/apache/bin/apr-config
after doing make it errors near the end with
/usr/bin/ld: /usr/local/apache/lib/libapr-0.a(apr_snprintf.o): relocation R_X86_64_32S can not be used when making a shared object; recompile with -fPIC
/usr/local/apache/lib/libapr-0.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
How would I go about fixing this?
Also I compiled apache2 with
CFLAGS='-DEAPI' \
SSL_BASE=../openssl-0.9.7d \
./configure \
--with-mpm=worker \
--prefix=/usr/local/apache \
--enable-module=ssl \
--enable-shared=ssl \
--enable-module=rewrite \
--enable-shared=max \
--enable-module=so
here are the versions I used
httpd-2.0.50
mod_perl-1.99_16
mysql-4.0.20
openssl-0.9.7d
PHP-5.0.1
Im am new and have limited understanding of this but I have followed the docs to the best of my ability and still keep getting this problem any help would be greatly appreciated
Regards
David
|