![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
libedit-20060829-2.9 was installed to /usr/local. Configure was executed like: LDFLAGS=-L/usr/local/lib ./configure '--prefix=/opt/foo/postgresql' '--with-openssl' '--enable-thread-safety' '--with-pam' '--with-python' '--enable-integer-datetimes' configure: error: history header not found |
#3
| |||
| |||
|
|
Actually, it does. The current version of libedit (http://www.thrysoee.dk/editline/) does not provide a history.h header. |
|
The reason why I used this approach is that Apple's OS X provides a version of libedit which does not include the readline emulation |
#4
| |||
| |||
|
|
Really? Apple's version works just fine for me. I am using the "Panther" version of OS X and there there is only a /usr/include/histedit.h there are no readline-related headers supplied with the OS and the emulation function does not exist in /usr/lib/libedit.dylib: |
#5
| |||
| |||
|
|
"Bob Friesenhahn" <bfriesen (AT) simple (DOT) dallas.tx.us> writes: libedit-20060829-2.9 was installed to /usr/local. Configure was executed like: LDFLAGS=-L/usr/local/lib ./configure '--prefix=/opt/foo/postgresql' '--with-openssl' '--enable-thread-safety' '--with-pam' '--with-python' '--enable-integer-datetimes' configure: error: history header not found Apparently your compiler doesn't search /usr/local/include by default. |
|
The recommended way to do this is to configure --with-includes=/usr/local/include --with-libs=/usr/local/lib rather than fooling with LDFLAGS or CPPFLAGS directly. |
#6
| |||
| |||
|
|
Bob Friesenhahn <bfriesen (AT) simple (DOT) dallas.tx.us> writes: Actually, it does. The current version of libedit (http://www.thrysoee.dk/editline/) does not provide a history.h header. Well, that was a pretty silly decision on their part ... are they just trying to tick off people who are supporting both readline and libedit? |
|
The reason why I used this approach is that Apple's OS X provides a version of libedit which does not include the readline emulation Really? Apple's version works just fine for me. |
#7
| |||
| |||
|
|
On Wed, 4 Oct 2006, Tom Lane wrote: "Bob Friesenhahn" <bfriesen (AT) simple (DOT) dallas.tx.us> writes: libedit-20060829-2.9 was installed to /usr/local. Configure was executed like: LDFLAGS=-L/usr/local/lib ./configure '--prefix=/opt/foo/postgresql' '--with-openssl' '--enable-thread-safety' '--with-pam' '--with-python' '--enable-integer-datetimes' configure: error: history header not found Apparently your compiler doesn't search /usr/local/include by default. Actually, it does. The current version of libedit (http://www.thrysoee.dk/editline/) does not provide a history.h header. However, I created an empty history.h (/usr/local/include/editline/history.h) to fool configure and was able to get PostgreSQL working with libedit. When built with libedit, the PostgreSQL sources do not seem to actually use the history.h header. Due to the licensing issues, it would be very useful if the configure script provided a means to specify using libedit rather than libreadline. With the current approach, libreadline is automatically |
#8
| |||
| |||
|
|
Bob Friesenhahn wrote: Due to the licensing issues, it would be very useful if the configure script provided a means to specify using libedit rather than libreadline. With the current approach, libreadline is automatically 8.2 will have configure --with-libedit-preferred. |
![]() |
| Thread Tools | |
| Display Modes | |
| |