From: Tom Lane <tgl@sss.pgh.pa.us>
To: radha.manohar@ndsu.nodak.edu
Cc: pgsql-novice@postgresql.org
Cc: pgsql-performance@postgresql.org
Subject: Re: error while executing a c program with embedded sql
Date: Sun, 09 Nov 2003 10:34:06 -0500
Message-ID: <3363.1068392046@sss.pgh.pa.us> (raw)
In-Reply-To: <3324.134.129.110.96.1068390374.squirrel@webmail.ndsu.nodak.edu>
References: <3324.134.129.110.96.1068390374.squirrel@webmail.ndsu.nodak.edu>
<radha.manohar@ndsu.nodak.edu> writes:
> ./test1: error while loading shared libraries: libecpg.so.3: cannot open
> shared object file: No such file or directory
The dynamic linker is failing to find either libecpg.so itself, or one
of the shared libraries it depends on (perhaps libpq.so).
If you are on a Linux system you probably want to fix your ldconfig
configuration so that all these libraries are found automatically.
You can run ldd on a particular executable or shared library to see what
libraries it references and whether those libraries are getting found
in the proper places.
Note that it is entirely possible for the program linking stage to
succeed but dynamic linking to fail at runtime. For various reasons the
search rules are not quite the same in the two contexts ...
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: tgl@sss.pgh.pa.us, radha.manohar@ndsu.nodak.edu, pgsql-novice@postgresql.org
Subject: Re: error while executing a c program with embedded sql
In-Reply-To: <3363.1068392046@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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