LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-19-2003, 09:22 PM   #1
docbrazen
LQ Newbie
 
Registered: Nov 2003
Distribution: Slackware-current, Red Hat 9
Posts: 18

Rep: Reputation: 0
Question 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.
 
Old 01-08-2004, 07:36 AM   #2
himanshu79
LQ Newbie
 
Registered: Nov 2003
Location: New Delhi, India
Distribution: redhat
Posts: 9

Rep: Reputation: 0
install readline-devel package or install postgresql without readline support
 
Old 01-09-2004, 08:53 AM   #3
docbrazen
LQ Newbie
 
Registered: Nov 2003
Distribution: Slackware-current, Red Hat 9
Posts: 18

Original Poster
Rep: Reputation: 0
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
postgresql or ./configure options nukeu666 Linux - Software 0 11-12-2005 04:47 AM
Installing postgresql in a VPS server - cannot find 'createlang' command jbsarma Linux - Newbie 2 08-18-2005 08:11 AM
Postgresql 7.4.2 with Readline on Debian 3.0 jockster666 Linux - Software 1 03-07-2005 04:17 PM
How to configure PHP+Apache+PostgreSQL (already installed from RPM)on RH9 nehal_b_s Linux - Software 0 10-17-2003 01:22 AM
postgresql -odbc & postgresql-jdbc installation kjsubbu Linux - Software 0 06-19-2003 02:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration