Re: libpq++ compiling errors... - Mailing list pgsql-interfaces

From Andreas Kretzer
Subject Re: libpq++ compiling errors...
Date
Msg-id 3C57CD83.8EAFA1E9@kretzer-berlin.de
Whole thread Raw
In response to Re: libpq++ compiling errors...  ("isaac flemmin" <isaac@knox.net>)
List pgsql-interfaces
isaac flemmin wrote:

> ...
> When I try to add -lpq to the link options I get libpq.so.2 not found.
> Is there a something special I need to do to add that? Here is the
> command's I have tried.

So have a look at where the libpq is installed and add that path to your
/etc/ld.so.conf and call 'ldconfig'. You should also check that you have
the libpq.so.2 beeing a symbolic link to the real library called 'libpq.so.2.xx'
where 'xx' is the real minor version number. There should also be symbolic
link called libpq.so pointing to your libpq.so.2!

Maybe you forgot to 'make install' all that stuff and have therefor all these
problems ???? Remember: There are some include files installed too.
Usually all this stuff goes to /usr/local/pgsql/lib and /usr/local/pgsql/include
respectively. So you should have an include-path for compilation pointing
to the mentioned include directory and the libpath added to /etc/ld.so.conf.

Hope this helps

Andreas



pgsql-interfaces by date:

Previous
From: "isaac flemmin"
Date:
Subject: Re: libpq++ compiling errors...
Next
From: "Rommel de Sene Trindade"
Date:
Subject: pgAdmin II's error message