Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id A8D29475F62 for ; Mon, 3 Jun 2002 13:34:10 -0400 (EDT) Received: from leo.pcisys.net (leo.pcisys.net [207.76.102.240]) by postgresql.org (Postfix) with ESMTP id 93434475E70 for ; Mon, 3 Jun 2002 13:33:07 -0400 (EDT) Received: from [208.202.106.189] (moe1.meg106-189.cos.pcisys.net [208.202.106.189]) by leo.pcisys.net (8.12.1/8.12.1) via ESMTP id g53HX6KK017969 for ; Mon, 3 Jun 2002 11:33:06 -0600 (MDT) env-from (hierophant@pcisys.net) User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.0.4 Date: Mon, 03 Jun 2002 11:33:05 -0600 Subject: Re: [PHP] Problems while compiling php_4-2.1 with PostgreSQL From: Keary Suska To: PostgreSQL Message-ID: In-Reply-To: Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Archive-Number: 200206/50 X-Sequence-Number: 25202 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 : > > > 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"