Click to See Complete Forum and Search --> : PHP4+Postgresql


Anon
06-27-2000, 05:25 AM
I have tried to compile php4.0.0 on Debian GNU 2.1
but apache returns this message:

Syntax error on line 227 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server: libpq.so.2.1: cannot open shared object file: No such file or directory

here is my compiling configuration
]#!/bin/sh
./configure \
--with-apxs=/usr/local/apache/bin/apxs \
--with-mysql=/usr/local/pgsql \
--with-pgsql \
--disable-debug \
--with-dbm \
--with-gdbm \
--enable-trans-sid \
--enable-ftp \
--enable-calendar

i have pgsql in /usr/local/pgsql
the library 'libpq.so.2.1' is in dir /usr/local/pgsql/lib
i have tried to compile it only with '--with-pgsql', but it returns the same message

any ideas how to correct it, is it some bug ?
Thanx Guli

Anon
06-27-2000, 11:09 AM
--with-mysql=/usr/local/pgsql \

This looks to be your problem. Shouldn't it look like:

--with-mysql\
--with-pgsql=/usr/local/pgsql \

I hope that it is a simple as this.

Anon
06-27-2000, 12:44 PM
Sorry my mistake with writing,
i tried to cinfigure with

--with-pgsql

but it returns the same message

Anon
08-21-2000, 08:35 AM
Hi,
I have the same problem and no ideal how to solve it.

Have you solved it...
Thanks in advance
Billy

Anon
08-21-2000, 10:44 AM
You have to provide the path to pgsql:

--with-pgsql=/usr/local/pgsql

for example.

Anon
08-22-2000, 12:29 AM
my installation line look like is this..

./configure --with-apex=/usr/local/apache/bin/apex \
--with-mysql \
--with-pgsql=/usr/local/pgsql \
--prefix=/usr/local/php \
--with-track-vars \

when i start the /usr/local/apache/bin/httpd and it display this message;

Cannot load /usr/local/apache/libexec/libphp4.so into server: libpg.so.2.1: cannot open shared object file: No such file or directory.

Thanks

Anon
08-25-2000, 03:01 AM
please fix first the directory entry of your libphp4.so in your httpd.conf file. The entry should match the directory where your libphp4.so is located.