Hi,
I tried to build PHP with Postgresql and apache.
Steps followed :
1) Apache Build
cd httpd-2.0.46
./configure '--prefix=PATH TO INSTALL' --enable-so
make
make install
2) PHP Build
cd php-5.0.2
./configure --with-apxs2=<apache install path >/bin/apxs --with-pgsql --enable-track-vars --with-xml --prefix=<php_install_path>
error While configuring :
Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... no
checking for Apache 1.x module support... no
checking for member fd in BUFF *... (cached) no
checking for mod_charset compatibility option... no
checking for Apache 2.0 filter-module support via DSO through APXS... no
checking for Apache 2.0 handler-module support via DSO through APXS...
Sorry, I cannot run apxs. Possible reasons follow:
- Perl is not installed
- apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs
- Apache was not built using --enable-so (the apxs usage page is displayed)
The output of /disk1/kathir/PostgreSQL_Testing/ins_apache/bin/apxs follows:
/disk1/kathir/PostgreSQL_Testing/ins_apache/bin/httpd: error: /disk1/kathir/PostgreSQL_Testing/ins_apache/bin/.libs/httpd does not exist
This script is just a wrapper for httpd.
See the libtool documentation for more information.
apxs:Error: Sorry, no shared object support for Apache.
apxs:Error: available under your platform. Make sure.
apxs:Error: the Apache module mod_so is compiled into.
apxs:Error: your server binary `/disk1/kathir/PostgreSQL_Testing/ins_apache/bin/httpd'..
configure: error: Aborting
#
How to solve this error ?
Thanks
Saravanan