Search Postgresql Archives

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



./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

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux