Problems while compiling php_4-2.1 with PostgreSQL

Started by Devrim GUNDUZalmost 24 years ago5 messagesgeneral
Jump to latest
#1Devrim GUNDUZ
devrim@oper.metu.edu.tr

Hi all,

I'm trying to compile PHP 4.2.1 with PostgreSQL 7.2.1 on a RedHat 7.3 .
Have the following rpms:

postgresql-server-7.2.1-5
postgresql-devel-7.2.1-5
postgresql-7.2.1-5
postgresql-contrib-7.2.1-5
postgresql-docs-7.2.1-5
postgresql-libs-7.2.1-5

I get the following error when I use --with-pgsql=/var/lib/pgsql or
--with-pgsql=/usr/include :

<snip>
checking for PostgreSQL support... yes
configure: error: Cannot find libpq.so. Please specify correct PostgreSQL installation path.

libpq.so comes with postgresql-devel and that package is installed...

What should I do to solve it?

Regards,

--

Devrim GUNDUZ

devrim@oper.metu.edu.tr
devrim.gunduz@linux.org.tr

Web : http://devrim.oper.metu.edu.tr
-------------------------------------

#2Matteo Beccati
m.beccati@crpsoftware.it
In reply to: Devrim GUNDUZ (#1)
Re: [PHP] Problems while compiling php_4-2.1 with PostgreSQL

Hi,

Just try with: --with-pgsql=/usr

Regards
--
Matteo Beccati
http://www.phpadsnew.com
http://phppgads.sourceforge.net

-----Original Message-----
From: pgsql-php-owner@postgresql.org
[mailto:pgsql-php-owner@postgresql.org] On Behalf Of Devrim GUNDUZ
Sent: Monday, June 03, 2002 5:12 PM
To: pgsql-php@postgresql.org
Cc: PostgreSQL Mailing Lists-General
Subject: [PHP] Problems while compiling php_4-2.1 with PostgreSQL

Hi all,

I'm trying to compile PHP 4.2.1 with PostgreSQL 7.2.1 on a
RedHat 7.3 .
Have the following rpms:

postgresql-server-7.2.1-5
postgresql-devel-7.2.1-5
postgresql-7.2.1-5
postgresql-contrib-7.2.1-5
postgresql-docs-7.2.1-5
postgresql-libs-7.2.1-5

I get the following error when I use --with-pgsql=/var/lib/pgsql or
--with-pgsql=/usr/include :

<snip>
checking for PostgreSQL support... yes
configure: error: Cannot find libpq.so. Please specify
correct PostgreSQL installation path.

libpq.so comes with postgresql-devel and that package is installed...

What should I do to solve it?

Regards,

--

Devrim GUNDUZ

devrim@oper.metu.edu.tr
devrim.gunduz@linux.org.tr

Web : http://devrim.oper.metu.edu.tr
-------------------------------------

---------------------------(end of
broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

#3Keary Suska
hierophant@pcisys.net
In reply to: Devrim GUNDUZ (#1)
Re: [PHP] Problems while compiling php_4-2.1 with PostgreSQL

on 6/3/02 9:11 AM, devrim@oper.metu.edu.tr purportedly said:

Hi all,

I'm trying to compile PHP 4.2.1 with PostgreSQL 7.2.1 on a RedHat 7.3 .
Have the following rpms:

postgresql-server-7.2.1-5
postgresql-devel-7.2.1-5
postgresql-7.2.1-5
postgresql-contrib-7.2.1-5
postgresql-docs-7.2.1-5
postgresql-libs-7.2.1-5

I get the following error when I use --with-pgsql=/var/lib/pgsql or
--with-pgsql=/usr/include :

<snip>
checking for PostgreSQL support... yes
configure: error: Cannot find libpq.so. Please specify correct PostgreSQL
installation path.

libpq.so comes with postgresql-devel and that package is installed...

What should I do to solve it?

Try --with-pgsql=/usr instead. The configure script should automatically
know header files are in include/ and dso files in lib/. As it stands, the
script is probably looking in /usr/include for libpq.so.

Keary Suska
Esoteritech, Inc.
"Leveraging Open Source for a better Internet"

#4Devrim GUNDUZ
devrim@oper.metu.edu.tr
In reply to: Matteo Beccati (#2)
Re: [PHP] Problems while compiling php_4-2.1 with PostgreSQL

Hi,

On Mon, 3 Jun 2002, Matteo Beccati wrote:

Hi,

Just try with: --with-pgsql=/usr

Thanks a lot. That solved my problem.

Regards and best wishes,

--

Devrim GUNDUZ

devrim@oper.metu.edu.tr
devrim.gunduz@linux.org.tr

Web : http://devrim.oper.metu.edu.tr
-------------------------------------

#5N4sir Simbolon
nasir@3wsi.com
In reply to: Devrim GUNDUZ (#1)
Re: Problems while compiling php_4-2.1 with PostgreSQL

I get the following error when I use --with-pgsql=/var/lib/pgsql or
--with-pgsql=/usr/include :

<snip>
checking for PostgreSQL support... yes
configure: error: Cannot find libpq.so. Please specify correct PostgreSQL
installation path.

configure cannot find libpq.so in the directory /var/lib/pgsql or
/usr/include.

libpq.so comes with postgresql-devel and that package is installed...

What should I do to solve it?

find out where is the location of libpq.so and specify the location in
--with-pgsql option while configure

Regards,

--
Nasir Simbolon