From: | "Tim Barnard" <tbarnard(at)povn(dot)com> |
---|---|
To: | <dsmclennan(at)spipowernet(dot)com(dot)au> |
Cc: | <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: C interface libpq.so.2 problem |
Date: | 2001-12-06 15:51:42 |
Message-ID: | 007f01c17e6d$eae07c40$a519af3f@hartcomm.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-interfaces |
If your running on a RedHat installation --
Add the line: /usr/local/pgsql/lib
to the bottom of the file: /etc/ld.so.conf
then run ldconfig.
Your app will now find the shared file.
Tim
----- Original Message -----
From: <dsmclennan(at)spipowernet(dot)com(dot)au>
To: <pgsql-interfaces(at)postgresql(dot)org>
Sent: Sunday, December 02, 2001 8:57 PM
Subject: C interface libpq.so.2 problem
> Hi ,
>
> as a new user I have followed the Momjian libpq sample program format
>
> #include "libpq-fe.h"
>
> and cc -I/usr/local/pgsql/include -o myapp myapp.c
> -L/usr/local/pgsql/lib -lpq
>
> my application compiles but on execution gives
>
> libpq.so.2: cannot open shared object file
>
> Similar problems have been listed before but none of the suggestions fixed
> my problem.
> Does anyone recognise this problem?
>
> Thanks
>
> David McLennan
>
>
>
> **********************************************************************
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
>
> This footnote also confirms that this email message has been swept by
> MIMEsweeper for the presence of computer viruses.
>
> www.mimesweeper.com
> **********************************************************************
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Stephan Szabo | 2001-12-06 16:08:02 | Re: duplicate templates, wrong users |
Previous Message | Ben-Nes Michael | 2001-12-06 15:25:52 | Type POINT and index |
From | Date | Subject | |
---|---|---|---|
Next Message | jtv | 2001-12-06 16:45:59 | Re: how can I use C++ interface in postgresql? |
Previous Message | TONY J.Y. | 2001-12-05 22:48:52 | Can not get large cursor for PGLIB ??? |