On 10/21/10 5:24 PM, zab08 wrote:
> I use this command to compile the libpq.c.
> *cc -I /opt/PostgreSQL/8.4/include -o libpq libpq.c -L
> /opt/PostgreSQL/8.4/lib -lpq*
> *
> *
> but I get these error:
> /usr/bin/ld: warning: libssl.so.4, needed by
> /opt/PostgreSQL/8.4/lib/libpq.so, not found (try using -rpath or
> -rpath-link)
> /usr/bin/ld: warning: libcrypto.so.4, needed by
> /opt/PostgreSQL/8.4/lib/libpq.so, not found (try using -rpath or
> -rpath-link)
>
if you don't want SSL support, you need to run ./configure --without-openssl
if you DO want SSL support, you'll need those libraries in a standard
place, or specify --with-openssl=/path/to/ssl
you should use make and the Makefile generated by ./configure to get all
the settings correct.... I believe you can use
make libpq.so
to just build the runtime rather than the full system.