I configured, compiled and installed PHP4.0.2 on Solaris 2.7 successfully. This was done as follows:
env CPPFLAGS=-I/usr/local/include \
LDFLAGS=-L/usr/local/lib \
LD_LIBRARY_PATH=/usr/local/lib \
./configure --with-pgsql=/usr/local/pgsql \
--with-apxs=/usr/local/apache/bin/apxs
env CPPFLAGS=-I/usr/local/include \
LDFLAGS=-L/usr/local/lib \
LD_LIBRARY_PATH=/usr/local/lib \
make
make install
In the Apache httpd.conf file, I added:
AddType application/x-httpd-php .phtml .php4 .php
AddType application/x-httpd-php-source.phps
Now when I try to start Apache with:
apachectl start
I get the following error:
Syntax error on line 240 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server: ld.so.1: /usr/local/apache/bin/httpd: fatal: libpq.so: open failed: No such file or directory
/usr/local/apache/bin/apachectl start: httpd could not be started
Tried to set env LD_LIBRARY_PATH in the command line, and everywhere I could think of, with the path to libpq.so but it does not help.
Help! Please. Thanks.
S.