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

can't configure #44

Open
Ala321 opened this issue Oct 23, 2019 · 2 comments
Open

can't configure #44

Ala321 opened this issue Oct 23, 2019 · 2 comments

Comments

@Ala321
Copy link

Ala321 commented Oct 23, 2019

Hi
On gentoo i cant pass configure

#./configure
...
checking for tgetstr in -lncurses... no
configure: error: Unable to find ncurses library

pkg-config show

pkg-config --libs ncurses

-lncurses -ltinfo

ldconfig -v | grep nc

    libncursesw.so.6 -> libncursesw.so.6.1
    libncurses.so.6 -> libncurses.so.6.1
    libncurses++.so.6 -> libncurses++.so.6.1
    libncurses++w.so.6 -> libncurses++w.so.6.1

ltinfo is the problem ?

@Ala321
Copy link
Author

Ala321 commented Oct 24, 2019

export LDFLAGS="$LDFLAGS -ltinfo" resovles my problem. Thx

@rascalDan
Copy link

On gentoo also, the follow patch works for me:

diff --git configure.in configure.in
index 031487f0..f405a27c 100644
--- configure.in
+++ configure.in
@@ -124,14 +124,14 @@ AC_CHECK_HEADER(libaio.h, :,
 AC_SUBST(AIO_LIBS)
 
 NCURSES_LIBS=
-AC_CHECK_LIB(ncurses, tgetstr, NCURSES_LIBS=-lncurses)
+AC_CHECK_LIB(tinfo, tgetstr, NCURSES_LIBS=-ltinfo)
 if test "x$NCURSES_LIBS" = "x"; then
   AC_MSG_ERROR([Unable to find ncurses library])
 fi
 AC_SUBST(NCURSES_LIBS)
 
 saved_LDFLAGS="$LDFLAGS"
-LDFLAGS="$LDFLAGS -lncurses"
+LDFLAGS="$LDFLAGS -ltinfo"
 READLINE_LIBS=
 AC_CHECK_LIB(readline, readline, READLINE_LIBS=-lreadline)
 if test "x$READLINE_LIBS" = "x"; then

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

2 participants