Readline causing grief in build - Mailing list pgsql-novice

From Dave Stewart
Subject Readline causing grief in build
Date
Msg-id 517535CA-147F-11D7-A6AD-0050E4904947@aquaflo.com
Whole thread Raw
Responses Re: Readline causing grief in build
Re: Readline causing grief in build
List pgsql-novice
Hi!


I'm very new with this list and postgresql databases and having major
trouble trying to build this thing. Every attempt I make gives ends
with the following message:



<<begin error>

...

checking for readline... no

configure: error: readline library not found

If you have readline already installed, see config.log for details on
the

failure.  It is possible the compiler isn't looking in the proper
directory.

Use --without-readline to disable readline support.

<<end error>



OK, look at the config.log file for details. I can handle that (or so
I thought). It looks like the configure script is trying to compile a
test program, but all it shows is:



<<begin config.log snip>

...

<fixed>configure:5786: result: no

configure:5800: checking for readline

configure:5837: gcc -traditional-cpp -o conftest -g -O2     conftest.c
-lreadline -lm  >&5

ld: can't locate file for: -lreadline

configure:5840: $? = 1

configure: failed program was:

#line 5811 "configure"

</fixed>

...

<fixed>configure:5837: gcc -traditional-cpp -o conftest -g -O2
conftest.c -ledit -lm  >&5

ld: Undefined symbols:

_readline

configure:5840: $? = 1

configure: failed program was:

#line 5811 "configure"


</fixed><fontfamily><param>Garamond</param>...</fontfamily><fixed>

configure:5837: gcc -traditional-cpp -o conftest -g -O2     conftest.c
-lreadline -ltermcap -lm  >&5

ld: can't locate file for: -lreadline

configure:5840: $? = 1

configure: failed program was:

#line 5811 "configure"


</fixed><fontfamily><param>Garamond</param>...</fontfamily><fixed>

configure:5837: gcc -traditional-cpp -o conftest -g -O2     conftest.c
-ledit -ltermcap -lm  >&5

ld: Undefined symbols:

_readline

configure:5840: $? = 1

configure: failed program was:

#line 5811 "configure"


...

configure:5837: gcc -traditional-cpp -o conftest -g -O2     conftest.c
-lreadline -lncurses -lm  >&5

ld: can't locate file for: -lreadline

configure:5840: $? = 1

configure: failed program was:

#line 5811 "configure"


...

configure:5837: gcc -traditional-cpp -o conftest -g -O2     conftest.c
-ledit -lncurses -lm  >&5

ld: Undefined symbols:

_readline

configure:5840: $? = 1

configure: failed program was:

#line 5811 "configure"


...

configure:5837: gcc -traditional-cpp -o conftest -g -O2     conftest.c
-lreadline -lcurses -lm  >&5

ld: can't locate file for: -lreadline

configure:5840: $? = 1

configure: failed program was:

#line 5811 "configure"


...

configure:5837: gcc -traditional-cpp -o conftest -g -O2     conftest.c
-ledit -lcurses -lm  >&5

ld: Undefined symbols:

_readline

configure:5840: $? = 1

configure: failed program was:

#line 5811 "configure"


...

configure:5883: result: no

configure:5890: error: readline library not found

If you have readline already installed, see config.log for details on
the

failure.  It is possible the compiler isn't looking in the proper
directory.

Use --without-readline to disable readline support.</fixed>


<<end config.log snip>



Hmmm. I don't get it. Here's the particulars:


OS: Mac OSX.2.3 (Latest Jaguar)

GCC: 3.1 {Thread model: posix

Apple Computer, Inc. GCC version 1161, based on gcc version 3.1
20020420 (prerelease)}

ANT: 1.5.1


I swear readline is there, located at
/System/Library/PrivateFrameworks/readline.framework/Version/A. Am I
just missing something very elementary? My head is bleeding from
smashing it against this problem and I'm hoping someone here has some
Excedrin (TM) to help.


TIA for any suggestions anyone may have.




Dave Stewart

Aqua-flo (Goleta)

dstewart@aquaflo.com
Hi!

I'm very new with this list and postgresql databases and having major
trouble trying to build this thing. Every attempt I make gives ends
with the following message:


<begin error>
...
checking for readline... no
configure: error: readline library not found
If you have readline already installed, see config.log for details on
the
failure.  It is possible the compiler isn't looking in the proper
directory.
Use --without-readline to disable readline support.
<end error>


OK, look at the config.log file for details. I can handle that (or so I
thought). It looks like the configure script is trying to compile a
test program, but all it shows is:


<begin config.log snip>
...
configure:5786: result: no
configure:5800: checking for readline
configure:5837: gcc -traditional-cpp -o conftest -g -O2     conftest.c
-lreadline -lm  >&5
ld: can't locate file for: -lreadline
configure:5840: $? = 1
configure: failed program was:
#line 5811 "configure"

...
configure:5837: gcc -traditional-cpp -o conftest -g -O2     conftest.c
-ledit -lm  >&5
ld: Undefined symbols:
_readline
configure:5840: $? = 1
configure: failed program was:
#line 5811 "configure"

...
configure:5837: gcc -traditional-cpp -o conftest -g -O2     conftest.c
-lreadline -ltermcap -lm  >&5
ld: can't locate file for: -lreadline
configure:5840: $? = 1
configure: failed program was:
#line 5811 "configure"

...
configure:5837: gcc -traditional-cpp -o conftest -g -O2     conftest.c
-ledit -ltermcap -lm  >&5
ld: Undefined symbols:
_readline
configure:5840: $? = 1
configure: failed program was:
#line 5811 "configure"

...
configure:5837: gcc -traditional-cpp -o conftest -g -O2     conftest.c
-lreadline -lncurses -lm  >&5
ld: can't locate file for: -lreadline
configure:5840: $? = 1
configure: failed program was:
#line 5811 "configure"

...
configure:5837: gcc -traditional-cpp -o conftest -g -O2     conftest.c
-ledit -lncurses -lm  >&5
ld: Undefined symbols:
_readline
configure:5840: $? = 1
configure: failed program was:
#line 5811 "configure"

...
configure:5837: gcc -traditional-cpp -o conftest -g -O2     conftest.c
-lreadline -lcurses -lm  >&5
ld: can't locate file for: -lreadline
configure:5840: $? = 1
configure: failed program was:
#line 5811 "configure"

...
configure:5837: gcc -traditional-cpp -o conftest -g -O2     conftest.c
-ledit -lcurses -lm  >&5
ld: Undefined symbols:
_readline
configure:5840: $? = 1
configure: failed program was:
#line 5811 "configure"

...
configure:5883: result: no
configure:5890: error: readline library not found
If you have readline already installed, see config.log for details on
the
failure.  It is possible the compiler isn't looking in the proper
directory.
Use --without-readline to disable readline support.

<end config.log snip>


Hmmm. I don't get it. Here's the particulars:

OS: Mac OSX.2.3 (Latest Jaguar)
GCC: 3.1 {Thread model: posix
Apple Computer, Inc. GCC version 1161, based on gcc version 3.1
20020420 (prerelease)}
ANT: 1.5.1

I swear readline is there, located at
/System/Library/PrivateFrameworks/readline.framework/Version/A. Am I
just missing something very elementary? My head is bleeding from
smashing it against this problem and I'm hoping someone here has some
Excedrin (TM) to help.

TIA for any suggestions anyone may have.



Dave Stewart
Aqua-flo (Goleta)
dstewart@aquaflo.com

pgsql-novice by date:

Previous
From: Ron Johnson
Date:
Subject: Re: Table referenced by OID in a view?
Next
From: Tom Lane
Date:
Subject: Re: Readline causing grief in build