bug-bash
[Top][All Lists]
Advanced

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

Re: Bash 5.1 and Ncurses


From: Chet Ramey
Subject: Re: Bash 5.1 and Ncurses
Date: Fri, 15 Jan 2021 10:14:47 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.6.0

On 1/15/21 12:12 AM, Jeffrey Walton wrote:
Hi Everyone,

I configured Bash 5.1 with prefix=/usr/local, --with-curses and
--enable-multibyte.

The `prefix' option controls installation, not where the configure or
build processes look for anything.

The link failed with undefined references, like
tputs. I have the wide char Ncurses built and installed in /usr/local.
I found I needed to add -ltinfow to LIBS and LDLIBS for the build to
succeed.

What is TERMCAP_LIB set to in the Makefile? And what does

grep TERMCAP config.status

return?

Now that you have bash built, what does

ldd bash

display? You may find that you're not using the library you think
you are.

The answer in

https://lists.gnu.org/archive/html/help-bash/2021-01/msg00008.html

from last week still applies as well.


I'm pretty sure we are supposed to use the wide character version of
Ncurses nowadays. I believe the wide character version supplies both
multibyte and single byte functions, so it should just work with all
software nowadays.

That doesn't really matter for readline's purposes. It only needs the
termcap/terminfo portion of the library.

It seems like configure should be able to find the Ncurses library.
Maybe Ncurses needs one of those  --with-libncurses-prefix.

It can, if it is in a location that `cc' and `ld' search.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]