libpq problem - kdevelop

Поиск
Список
Период
Сортировка
Искать

libpq problem - kdevelop

От:
"Gary S. Brace" <gbrace@cais.com>
Дата:
Hi, 

I cannot seem to be able to use libpq in a kdevelop c program- I get the error
message upon execution: ./testpg: error loading shared libraries:
libpq.so.2: cannot load shared object file: No such file or directory

include:

#include "libpq-fe.h"

compiler options -> additional options: -I/usr/local/pgsql/include

linker options-> additional libraries: -lpq -L/usr/local/pgsql/include

(/usr/local/pgsql) is the correct path. Anybody know what I'm doing wrong? 

Thanks

Re: libpq problem - kdevelop

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
"Gary S. Brace"  writes:
> Anybody know what I'm doing wrong? 

The runtime loader isn't finding libpq.so.  This is pretty
platform-dependent, but most likely you need to set LD_LIBRARY_PATH
in your environment or tell ldconfig where to find the library.
		regards, tom lane

RE: libpq problem - kdevelop

От:
"Michael Ansley (UK)" <Michael.Ansley@intec-telecom-systems.com>
Дата:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In your linker options you are using the include directory, not the
lib directory.  It should probably read:

linker options-> additional libraries: -lpq -L/usr/local/pgsql/lib

Cheers...

MikeA

>> -----Original Message-----
>> From: Gary S. Brace [mailto:gbrace@cais.com]
>> Sent: 31 July 2001 14:44
>> To: pgsql-interfaces@postgresql.org
>> Subject: [INTERFACES] libpq problem - kdevelop
>>
>>
>> Hi,
>>
>> I cannot seem to be able to use libpq in a kdevelop c
>> program- I get the error
>> message upon execution: ./testpg: error loading shared libraries:
>> libpq.so.2: cannot load shared object file: No such file or
>> directory 
>>
>> include:
>>
>> #include "libpq-fe.h"
>>
>> compiler options -> additional options: -I/usr/local/pgsql/include
>>
>> linker options-> additional libraries: -lpq
>> -L/usr/local/pgsql/include
>>
>> (/usr/local/pgsql) is the correct path. Anybody know what
>> I'm doing wrong?
>>
>> Thanks
>>
>> ---------------------------(end of
>> broadcast)---------------------------
>> TIP 4: Don't 'kill -9' the postmaster
>>

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBO2lJP3ympNV/C086EQLZZgCg8z/nR+rIuA7rTsNfmuRHGx6SLx0AoIEP
l4OzEXziS+dhyk15+yVB/87A
=pA9J
-----END PGP SIGNATURE-----

_________________________________________________________________________
This e-mail and any attachments are confidential and may also be privileged and/or copyright
material of Intec Telecom Systems PLC (or its affiliated companies). If you are not an
intended or authorised recipient of this e-mail or have received it in error, please delete
it immediately and notify the sender by e-mail. In such a case, reading, reproducing,
printing or further dissemination of this e-mail is strictly prohibited and may be unlawful.
Intec Telecom Systems PLC. does not represent or warrant that an attachment hereto is free
from computer viruses or other defects. The opinions expressed in this e-mail and any
attachments may be those of the author and are not necessarily those of Intec Telecom
Systems PLC.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
__________________________________________________________________________

FAQ