9.0.4 run configure failed with readline enable on susu linux x86-64

Поиск
Список
Период
Сортировка
От Jov
Тема 9.0.4 run configure failed with readline enable on susu linux x86-64
Дата
Msg-id CADyrUxN_f7TFeCh2XNvgZMc4EuVbZXO+Lf9Sc9sBNox+gs+RVQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: 9.0.4 run configure failed with readline enable on susu linux x86-64
Re: 9.0.4 run configure failed with readline enable on susu linux x86-64
Список pgsql-general
./configure --prefix=/data/pgsql
--with-includes=/data/readline/include
--with-libraries=/data/readline/lib

failed with:
...
checking for the pthreads library -lpthread... yes
checking whether pthreads work with --thread-safe... no
checking whether pthreads work with -mt... no
checking for the pthreads library -lpthreadGC2... no
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for strerror_r... yes
checking for getpwuid_r... yes
checking for gethostbyname_r... yes
checking whether getpwuid_r takes a fifth argument... yes
checking whether strerror_r returns int... no
checking test program... failed
configure: error:
Could not execute a simple test program.  This may be a problem
related to locating shared libraries.  Check the file 'config.log'
for the exact reason.

and the config.log has not meanful message:

...
#define HAVE_SIGSETJMP 1
#define HAVE_DECL_SYS_SIGLIST 1
#define HAVE_SYSLOG 1
#define HAVE_INT_OPTERR 1
#define HAVE_STRTOLL 1
#define HAVE_STRTOULL 1
#define HAVE_ATEXIT 1
#define HAVE_STRERROR_R 1
#define HAVE_GETPWUID_R 1
#define HAVE_GETHOSTBYNAME_R 1
#define GETPWUID_R_5ARG /**/

configure: exit 1

but if run configure without any args,it error with:
...
checking for -lreadline... no
checking for -ledit... 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.

if --without-readline,configure runs OK

how can i configure pg with readline?

uname -a
Linux 2.6.16.60-0.21-xxx64-100515 #1 SMP Wed May 12 11:46:34 CST 2010
x86_64 x86_64 x86_64 GNU/Linux

В списке pgsql-general по дате отправления:

Предыдущее
От: Torsten Zühlsdorff
Дата:
Сообщение: Re: PostgreSQL 'hosting'
Следующее
От: Chetan Suttraway
Дата:
Сообщение: Re: join between a table and function.