MacOSX, fink, missing readline/readline.h

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

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.


---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
       subscribe-nomail command to [hidden email] so that your
       message can get through to the mailing list cleanly
Reply | Threaded
Open this post in threaded view
|

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


---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend
Reply | Threaded
Open this post in threaded view
|

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

Sean Davis

----- Original Message -----
From: "John DeSoi" <[hidden email]>
To: "Teunis Peters" <[hidden email]>
Cc: "PostgreSQL general" <[hidden email]>
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



---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

               http://archives.postgresql.org
Reply | Threaded
Open this post in threaded view
|

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

zorchon
In reply to this post by Teunis Peters
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


---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to [hidden email])