LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   PostgreSQL 7.4 can't find readline durring ./configure (https://www.linuxquestions.org/questions/linux-software-2/postgresql-7-4-cant-find-readline-durring-configure-127430/)

docbrazen 12-19-2003 09:22 PM

PostgreSQL 7.4 can't find readline durring ./configure
 
Hello,

I'm trying to compile postgresql 7.4 and it says I am missing the readline library. I tried installing readline 4.3 but it still doesn't work. I checked my /etc/ld.so.conf and it lists the correct paths, and I re-ran ldconfig. I'm running redhat 9.

Here is the error message I got from ./configure:
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.


Here is part of the config.log that mentions readline:
configure:5999: checking for readline
configure:6036: gcc -o conftest -O2 -fno-strict-aliasing -D_GNU_SOURCE conftest.c -lreadline -lcrypt -lresolv -lnsl -ldl -lm -lbsd >&5
/usr/local/lib/libreadline.so: undefined reference to `tgetnum'
/usr/local/lib/libreadline.so: undefined reference to `tgoto'
/usr/local/lib/libreadline.so: undefined reference to `tgetflag'
/usr/local/lib/libreadline.so: undefined reference to `BC'
/usr/local/lib/libreadline.so: undefined reference to `tputs'
/usr/local/lib/libreadline.so: undefined reference to `PC'
/usr/local/lib/libreadline.so: undefined reference to `tgetent'
/usr/local/lib/libreadline.so: undefined reference to `UP'
/usr/local/lib/libreadline.so: undefined reference to `tgetstr'
collect2: ld returned 1 exit status
configure:6039: $? = 1
configure: failed program was:
#line 6010 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char readline ();
#ifdef F77_DUMMY_MAIN
# ifdef __cplusplus
extern "C"
# endif
int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
readline ();
;
return 0;
}
configure:6036: gcc -o conftest -O2 -fno-strict-aliasing -D_GNU_SOURCE conftest.c -ledit -lcrypt -lresolv -lnsl -ldl -lm -lbsd >&5
/usr/bin/ld: cannot find -ledit
collect2: ld returned 1 exit status
configure:6039: $? = 1
configure: failed program was:
#line 6010 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char readline ();
#ifdef F77_DUMMY_MAIN
# ifdef __cplusplus
extern "C"
# endif
int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
readline ();
;
return 0;
}
configure:6036: gcc -o conftest -O2 -fno-strict-aliasing -D_GNU_SOURCE conftest.c -lreadline -ltermcap -lcrypt -lresolv -lnsl -ldl -lm -lbsd >&5
/usr/bin/ld: cannot find -ltermcap
collect2: ld returned 1 exit status
configure:6039: $? = 1
configure: failed program was:
#line 6010 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char readline ();
#ifdef F77_DUMMY_MAIN
# ifdef __cplusplus
extern "C"
# endif
int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
readline ();
;
return 0;
}
configure:6036: gcc -o conftest -O2 -fno-strict-aliasing -D_GNU_SOURCE conftest.c -ledit -ltermcap -lcrypt -lresolv -lnsl -ldl -lm -lbsd >&5
/usr/bin/ld: cannot find -ledit
collect2: ld returned 1 exit status
configure:6039: $? = 1
configure: failed program was:
#line 6010 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char readline ();
#ifdef F77_DUMMY_MAIN
# ifdef __cplusplus
extern "C"
# endif
int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
readline ();
;
return 0;
}
configure:6036: gcc -o conftest -O2 -fno-strict-aliasing -D_GNU_SOURCE conftest.c -lreadline -lncurses -lcrypt -lresolv -lnsl -ldl -lm -lbsd >&5
/usr/bin/ld: cannot find -lncurses
collect2: ld returned 1 exit status
configure:6039: $? = 1
configure: failed program was:
#line 6010 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char readline ();
#ifdef F77_DUMMY_MAIN
# ifdef __cplusplus
extern "C"
# endif
int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
readline ();
;
return 0;
}
configure:6036: gcc -o conftest -O2 -fno-strict-aliasing -D_GNU_SOURCE conftest.c -ledit -lncurses -lcrypt -lresolv -lnsl -ldl -lm -lbsd >&5
/usr/bin/ld: cannot find -ledit
collect2: ld returned 1 exit status
configure:6039: $? = 1
configure: failed program was:
#line 6010 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char readline ();
#ifdef F77_DUMMY_MAIN
# ifdef __cplusplus
extern "C"
# endif
int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
readline ();
;
return 0;
}
configure:6036: gcc -o conftest -O2 -fno-strict-aliasing -D_GNU_SOURCE conftest.c -lreadline -lcurses -lcrypt -lresolv -lnsl -ldl -lm -lbsd >&5
/usr/bin/ld: cannot find -lcurses
collect2: ld returned 1 exit status
configure:6039: $? = 1
configure: failed program was:
#line 6010 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char readline ();
#ifdef F77_DUMMY_MAIN
# ifdef __cplusplus
extern "C"
# endif
int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
readline ();
;
return 0;
}
configure:6036: gcc -o conftest -O2 -fno-strict-aliasing -D_GNU_SOURCE conftest.c -ledit -lcurses -lcrypt -lresolv -lnsl -ldl -lm -lbsd >&5
/usr/bin/ld: cannot find -ledit
collect2: ld returned 1 exit status
configure:6039: $? = 1
configure: failed program was:
#line 6010 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char readline ();
#ifdef F77_DUMMY_MAIN
# ifdef __cplusplus
extern "C"
# endif
int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
readline ();
;
return 0;
}
configure:6082: result: no
configure:6089: 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.

himanshu79 01-08-2004 07:36 AM

install readline-devel package or install postgresql without readline support

docbrazen 01-09-2004 08:53 AM

I tried installing readline-devel-4.3-5.i386.rpm but PostgreSQL still can't find readline.

I'm trying to avoid not compiling without readline.


All times are GMT -5. The time now is 08:11 PM.