pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedlibpq problem
4+ messages / 3 participants
[nested] [flat]
* libpq problem
@ 2003-09-22 16:14 Kris Kiger <kris@musicrebellion.com>
2003-09-22 16:20 ` Re: libpq problem Jouneau Luc <Luc.Jouneau@diamant.jouy.inra.fr>
2003-09-22 16:35 ` Re: libpq problem Greg Spiegelberg <gspiegelberg@cranel.com>
0 siblings, 2 replies; 4+ messages in thread
From: Kris Kiger @ 2003-09-22 16:14 UTC (permalink / raw)
To: pgsql-admin
I have written a variation of one of the libpq C functions provided with
postgres. It compiles just fine, but when I try to execute the program
it reports the following error:
./a.out: error while loading shared libraries: libpq.so.3: cannot open
shared object file: No such file or directory
I have checked my system and the libpq.so.3 exists and all of its
dependancies are linked. Just curious if anyone has any ideas. Thanks
Kris
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: libpq problem
2003-09-22 16:14 libpq problem Kris Kiger <kris@musicrebellion.com>
@ 2003-09-22 16:20 ` Jouneau Luc <Luc.Jouneau@diamant.jouy.inra.fr>
2003-09-22 16:24 ` Re: libpq problem Kris Kiger <kris@musicrebellion.com>
1 sibling, 1 reply; 4+ messages in thread
From: Jouneau Luc @ 2003-09-22 16:20 UTC (permalink / raw)
To: Kris Kiger <kris@musicrebellion.com>; +Cc: pgsql-admin
Did you set LD_LIBRARY_PATH to locate directory where libpq.so.3 can be
found ?
(Something like LD_LIBRARY_PATH=$PGHOME/lib:$LD_LIBRARY_PATH)
Luc Jouneau
----- Original Message -----
From: "Kris Kiger" <kris@musicrebellion.com>
To: "Postgres Admin List" <pgsql-admin@postgresql.org>
Sent: Monday, September 22, 2003 6:14 PM
Subject: [ADMIN] libpq problem
> I have written a variation of one of the libpq C functions provided with
> postgres. It compiles just fine, but when I try to execute the program
> it reports the following error:
>
> ./a.out: error while loading shared libraries: libpq.so.3: cannot open
> shared object file: No such file or directory
>
> I have checked my system and the libpq.so.3 exists and all of its
> dependancies are linked. Just curious if anyone has any ideas. Thanks
>
> Kris
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: libpq problem
2003-09-22 16:14 libpq problem Kris Kiger <kris@musicrebellion.com>
2003-09-22 16:20 ` Re: libpq problem Jouneau Luc <Luc.Jouneau@diamant.jouy.inra.fr>
@ 2003-09-22 16:24 ` Kris Kiger <kris@musicrebellion.com>
0 siblings, 0 replies; 4+ messages in thread
From: Kris Kiger @ 2003-09-22 16:24 UTC (permalink / raw)
To: Jouneau Luc <Luc.Jouneau@jouy.inra.fr>; +Cc: pgsql-admin
I ended up setting the path in the ld.so.conf file and it seems to work
just fine, thanks for all of your help!
Kris
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: libpq problem
2003-09-22 16:14 libpq problem Kris Kiger <kris@musicrebellion.com>
@ 2003-09-22 16:35 ` Greg Spiegelberg <gspiegelberg@cranel.com>
1 sibling, 0 replies; 4+ messages in thread
From: Greg Spiegelberg @ 2003-09-22 16:35 UTC (permalink / raw)
To: Kris Kiger <kris@musicrebellion.com>; +Cc: pgsql-admin
Kris,
There are a variety of answers for a variety of operating systems.
On Linux add the PostgreSQL lib directory to /etc/ld.so.conf and run
"ldconfig" as root or add the lib directory to your LD_LIBRARY_PATH
environment variable. I prefer the 1st fix.
On Solaris 8 or later run as root "crle -u -l /path/to/pgsql/lib" which
is the same as the ldconfig option in Linux. Alternatively, use the
same LD_LIBRARY_PATH solution as above which, by the way, this will
work in HP-UX and AIX though using different environment variables
LIBPATH and SHLIB_PATH, respectively.
Greg
Kris Kiger wrote:
> I have written a variation of one of the libpq C functions provided with
> postgres. It compiles just fine, but when I try to execute the program
> it reports the following error:
>
> ./a.out: error while loading shared libraries: libpq.so.3: cannot open
> shared object file: No such file or directory
>
> I have checked my system and the libpq.so.3 exists and all of its
> dependancies are linked. Just curious if anyone has any ideas. Thanks
>
> Kris
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
--
Greg Spiegelberg
Sr. Product Development Engineer
Cranel, Incorporated.
Phone: 614.318.4314
Fax: 614.431.8388
Email: gspiegelberg@Cranel.com
Cranel. Technology. Integrity. Focus.
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2003-09-22 16:35 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-09-22 16:14 libpq problem Kris Kiger <kris@musicrebellion.com>
2003-09-22 16:20 ` Jouneau Luc <Luc.Jouneau@diamant.jouy.inra.fr>
2003-09-22 16:24 ` Kris Kiger <kris@musicrebellion.com>
2003-09-22 16:35 ` Greg Spiegelberg <gspiegelberg@cranel.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox