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

From: Jov <zhao6014(at)gmail(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: 9.0.4 run configure failed with readline enable on susu linux x86-64
Date: 2011-08-16 09:16:50
Message-ID: CADyrUxN_f7TFeCh2XNvgZMc4EuVbZXO+Lf9Sc9sBNox+gs+RVQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Chetan Suttraway 2011-08-16 09:17:10 Re: join between a table and function.
Previous Message Torsten Zühlsdorff 2011-08-16 08:54:46 Re: PostgreSQL 'hosting'