postgresql/php/apache installation question.

Started by Wei Wangalmost 24 years ago3 messagesgeneral
Jump to latest
#1Wei Wang
Wei.Wang@cl.cam.ac.uk

hi,

I am installing php/apache/postgresql and got stuck in the stage of configuring php. The command is:
./configure --with-pgsql --with-apache=../apache-_1.3.12 --enable-track-vars

and got this error message:
configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path

From the error message, it seems that the system
doesn't know where the psql library is.

Since I am not root, I don't have access to /etc/ld.so.conf where I could put the pgsql/lib in.

Is there any other way that I could let the system know where the pgsl library is?

Great thanks.

Wei

#2scott.marlowe
scott.marlowe@ihs.com
In reply to: Wei Wang (#1)
Re: postgresql/php/apache installation question.

What versions are you running? Try this:

download pgsql 7.2.1, apache 1.3.24, and php 4.0.6 or 4.1.x and untar
them.

build postgresql first, with:

cd /srcdir/postgresql-7.2.1
./configure
make
make install

then apache with:

cd /srcdir/apache_1.3.24
./configure --enable-module=most --enable-shared=max
make
make install

then php with:
cd /srcdir/php-4.0.6
./configure --with-apxs --with-pgsql
make
make install

And see if that works.

On Thu, 30 May 2002, Wei Wang wrote:

Show quoted text

hi,

I am installing php/apache/postgresql and got stuck in the stage of configuring php. The command is:
./configure --with-pgsql --with-apache=../apache-_1.3.12 --enable-track-vars

and got this error message:
configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path

From the error message, it seems that the system

doesn't know where the psql library is.

Since I am not root, I don't have access to /etc/ld.so.conf where I could put the pgsql/lib in.

Is there any other way that I could let the system know where the pgsl library is?

Great thanks.

Wei

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/users-lounge/docs/faq.html

#3Cornelia Boenigk
poppcorn@cornelia-boenigk.de
In reply to: scott.marlowe (#2)
Re: postgresql/php/apache installation question.

Hi all

What versions are you running? Try this:

download pgsql 7.2.1, apache 1.3.24, and php 4.0.6 or 4.1.x and

untar

them.

<manual>
Warning
Using the PostgreSQL module with PHP 4.0.6 is not recommended due to a
bug in the notice message handling code. Use 4.1.0 or later.
</manual>

The current release of PHP is 4.2.1

Regards
Conni