Re: compile error in libpq program

Поиск
Список
Период
Сортировка
От John R Pierce
Тема Re: compile error in libpq program
Дата
Msg-id 4CC0E3BE.5070002@hogranch.com
обсуждение исходный текст
Ответ на compile error in libpq program  (zab08 <zab08@126.com>)
Список 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 по дате отправления:

Предыдущее
От: "Daniel Verite"
Дата:
Сообщение: Re: Generate a dynamic sequence within a query
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: COPY question