X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id ADCE5D1C4EE; Thu, 7 Aug 2003 07:42:17 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 47231-02; Thu, 7 Aug 2003 04:40:54 -0300 (ADT) Received: from lucidindia.net (unknown [61.11.73.194]) by svr1.postgresql.org (Postfix) with ESMTP id 66B9DD1C4EC; Thu, 7 Aug 2003 04:41:27 -0300 (ADT) Received: from a4005 ([192.168.1.18]) by lucidindia.net (8.11.6/8.11.6) with SMTP id h777eOM08020; Thu, 7 Aug 2003 13:10:29 +0530 Message-ID: <000b01c35cb7$2f891770$1201a8c0@a4005> From: "shreedhar" To: "Gregory S. Williamson" , "Joe Conway" Cc: "Postgre Admin" , "Postgre General" References: <71E37EF6B7DCC1499CEA0316A25683280105701B@loki.globexplorer.com> Subject: Re: [GENERAL] Call to undefined function: pg_connect() Date: Thu, 7 Aug 2003 13:10:24 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/98 X-Sequence-Number: 9821 -rw-r--r-- 1 root root 99586 Aug 6 20:37 libpq.a lrwxrwxrwx 1 root root 12 Aug 6 20:37 libpq.so -> libpq.so.3.0 lrwxrwxrwx 1 root root 12 Aug 6 20:37 libpq.so.3 -> libpq.so.3.0 -rwxr-xr-x 1 root root 92088 Aug 6 20:37 libpq.so.3.0 I am very sorry for my last mail. The above are the libpq.so available in my RH7.3 + PHP 4.1.2+ Postgre 7.3.2. Is this libpq.so is right combination. Sreedhar ----- Original Message ----- From: "Gregory S. Williamson" To: "shreedhar" ; "Joe Conway" Cc: "Postgre Admin" ; "Postgre General" Sent: Thursday, August 07, 2003 1:03 PM Subject: RE: [GENERAL] [ADMIN] Call to undefined function: pg_connect() > I don't have a clue about which is which, but I bet providing some dates (ls -l) would help figuring out which is the most recent vs. oldest) ... might provide helpful information to people who know more about compiling this beast. > > Greg Williamson > > > -----Original Message----- > From: shreedhar [mailto:shreedhar@lucidindia.net] > Sent: Thu 8/7/2003 12:13 AM > To: Joe Conway > Cc: Postgre Admin; Postgre General > Subject: Re: [GENERAL] [ADMIN] Call to undefined function: pg_connect() > > /usr/lib/libpq.so.2 > /usr/lib/libpq.so.2.0 > /usr/lib/libpq.so.2.2 > /usr/lib/libpq.so > > I have the above versions of libpq.so in my system. Which I have to use. > Suppose it might have to chage any config files where I should change. > > Thanks alot, > With best regards, > Sreedhar > ----- Original Message ----- > From: "Joe Conway" > To: "shreedhar" > Cc: "Postgre Admin" ; "Postgre General" > > Sent: Thursday, August 07, 2003 10:24 AM > Subject: Re: [GENERAL] [ADMIN] Call to undefined function: pg_connect() > > > > shreedhar wrote: > > > Hi All, > > > > > > I Updated my Postgresql Server from 7.2.4 which came along with RH7.3 to > > > 7.3.2. After updating I could not able to connect database through PHP. > So I > > > recompiled PHP4.1.2 (same version which have earlier in my system), even > > > then I am not able to connect through PHP. Is there any other package > has to > > > be installed for this connection. > > > > If I remember correctly, this is because libpq.so changed from > > libpq.so.2 to libpq.so.3. Is there an old copy of libpq.so.2 hanging > > around that is getting linked with instead of libpq.so.3? Did you re-run > > configure and do a `make clean` on PHP before rebuilding it? If you are > > really desperate, try creating a libpq.so.2 symlink from libpq.so.3. > > > > HTH, > > > > Joe > > > > > > > > > > ---------------------------(end of broadcast)--------------------------- > > TIP 7: don't forget to increase your free space map settings > > > > > ---------------------------(end of broadcast)--------------------------- > TIP 7: don't forget to increase your free space map settings > > >