Re: libpq++ compiling errors...
От | Andreas Kretzer |
---|---|
Тема | Re: libpq++ compiling errors... |
Дата | |
Msg-id | 3C57CD83.8EAFA1E9@kretzer-berlin.de обсуждение исходный текст |
Ответ на | Re: libpq++ compiling errors... ("isaac flemmin" <isaac@knox.net>) |
Список | 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 по дате отправления: