Re: compile error in libpq program

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: compile error in libpq program
Date: 2010-10-22 01:07:10
Message-ID: 4CC0E3BE.5070002@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Craig Ringer 2010-10-22 04:36:01 Re: COPY question
Previous Message Daniel Verite 2010-10-22 00:35:59 Re: Generate a dynamic sequence within a query