Re: compile error in libpq program - Mailing list pgsql-general

From John R Pierce
Subject Re: compile error in libpq program
Date
Msg-id 4CC0E3BE.5070002@hogranch.com
Whole thread Raw
In response to compile error in libpq program  (zab08 <zab08@126.com>)
List pgsql-general
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.



pgsql-general by date:

Previous
From: "Daniel Verite"
Date:
Subject: Re: Generate a dynamic sequence within a query
Next
From: Craig Ringer
Date:
Subject: Re: COPY question