Обсуждение: MacOSX, fink, missing readline/readline.h

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

MacOSX, fink, missing readline/readline.h

От
Teunis Peters
Дата:
This has to do with building postgresql-8.0.3

I'm installing on a MacOSX system (10.3) and configure's failing to
find the readline installation.

output:
checking readline/readline.h usability... yes
checking readline/readline.h presence... no
configure: WARNING: readline/readline.h: accepted by the compiler,
rejected by the preprocessor!
configure: WARNING: readline/readline.h: proceeding with the
preprocessor's result
checking for readline/readline.h... no
checking readline.h usability... no
checking readline.h presence... no
checking for readline.h... no
configure: error: readline header not found

and the config.log extract itself:
configure:7699: gcc -no-cpp-precomp -c -I/sw/include
-I/Library/PostgreSQL8/include -Wall -Wmissing-prototypes
-Wpointer-arith -Wend
if-labels -fno-strict-aliasing   conftest.c >&5
configure:7702: $? = 0
configure:7705: test -s conftest.o
configure:7708: $? = 0
configure:7717: result: yes
configure:7721: checking readline/readline.h presence
configure:7728: gcc -no-cpp-precomp -E   conftest.c
configure:7724:31: readline/readline.h: No such file or directory
configure:7734: $? = 1
configure: failed program was:
#line 7723 "configure"
#include "confdefs.h"
#include <readline/readline.h>
configure:7752: result: no
configure:7758: WARNING: readline/readline.h: accepted by the compiler,
rejected by the preprocessor!
configure:7760: WARNING: readline/readline.h: proceeding with the
preprocessor's result

This should have worked.   The problem is 'gcc -no-cpp-precomp -E'
Is there a solution?
Anything I've tried has failed.

I hope this is an acceptable question to this list - I'm already
inundated with email and more lists will overload me completely.


Re: MacOSX, fink, missing readline/readline.h

От
John DeSoi
Дата:
On Jun 26, 2005, at 4:29 PM, Teunis Peters wrote:

> This has to do with building postgresql-8.0.3
>
> I'm installing on a MacOSX system (10.3) and configure's failing to
> find the readline installation.


What does your configure command look like? I have not tried it in a
while, but this used to work for me:

./configure --with-includes=/sw/include --with-libraries=/sw/lib


Or if you don't need readline:

./configure --without-readline


John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL


Re: MacOSX, fink, missing readline/readline.h

От
"Sean Davis"
Дата:
----- Original Message -----
From: "John DeSoi" <desoi@pgedit.com>
To: "Teunis Peters" <teunis@wintersgift.com>
Cc: "PostgreSQL general" <pgsql-general@postgresql.org>
Sent: Sunday, June 26, 2005 6:13 PM
Subject: Re: [GENERAL] MacOSX, fink, missing readline/readline.h


>
> On Jun 26, 2005, at 4:29 PM, Teunis Peters wrote:
>
>> This has to do with building postgresql-8.0.3
>>
>> I'm installing on a MacOSX system (10.3) and configure's failing to  find
>> the readline installation.
>
>
> What does your configure command look like? I have not tried it in a
> while, but this used to work for me:
>
> ./configure --with-includes=/sw/include --with-libraries=/sw/lib

This makes the assumption that readline was installed via fink, I think.  A
likely assumption, probably.  If you haven't done that, it is pretty easy to
do....

Sean



Re: MacOSX, fink, missing readline/readline.h

От
Kevin Murphy
Дата:
Teunis Peters wrote:

> This has to do with building postgresql-8.0.3
>
> I'm installing on a MacOSX system (10.3) and configure's failing to
> find the readline installation.
>
Installing the vanilla readline library from source now works great on 10.3.

If you first install this using the standard ./configure && make && sudo
make install :

ftp://ftp.gnu.org/gnu/readline/readline-5.0.tar.gz

then your postgresql compile should work fine.

-Kevin murphy