Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readline error lacks details #14

Closed
leto opened this issue Apr 14, 2013 · 5 comments
Closed

Readline error lacks details #14

leto opened this issue Apr 14, 2013 · 5 comments

Comments

@leto
Copy link

leto commented Apr 14, 2013

configure: error: CGDB requires GNU readline 5.1 or greater to link.
  If you used --with-readline instead of using the system readline library,
  make sure to set the correct readline library on the linker search path
  via LD_LIBRARY_PATH or some other facility.

It would be nice if this error included the version of readline detected (I think I have 6.2.4 installed), as well as some useful URLs or commands to install it.

@brasko
Copy link
Contributor

brasko commented Apr 14, 2013

On Sun, Apr 14, 2013 at 02:09:17AM -0700, leto wrote:

configure: error: CGDB requires GNU readline 5.1 or greater to link.
  If you used --with-readline instead of using the system readline library,
  make sure to set the correct readline library on the linker search path
  via LD_LIBRARY_PATH or some other facility.

It would be nice if this error included the version of readline detected (I think I have 6.2.4 installed), as well as some useful URLs or commands to install it.

You might need to install readline-dev.

Look in config.log for debug information, in particular,
configure:5660: checking version of installed readline library
...
configure:5761: result: 6.2

Bob Rossi

@mmueller
Copy link
Member

If you are on a Mac with homebrew, you might need to:

./configure --with-readline=/usr/local/Cellar/readline/6.2.4

or something along those lines. That's what I had to do to build cgdb on osx.

@mmueller
Copy link
Member

I don't think this really needs improvement. If you are a gdb user, you probably know how to check your readline version and install a new one.

@wujinggrt
Copy link

This problem occurs when I execute ./autogen.sh on Ubuntu 19.04, sovling it by:

$ sudo apt-get install libreadline-dev.

Then, do as http://cgdb.github.io suggests.

@owenstake
Copy link

In centos, do this

yum install readline-devel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants