|
From: | Moritz Scham |
Subject: | Re: Installation crashes at tic terminal 'lpr': can't link l/lpr to p/printer [local installation/CentOS7/ncurses 6.2] |
Date: | Mon, 18 Jan 2021 14:23:57 +0100 |
(there's no "crash" here, but a problem to resolve)
On Mon, Jan 18, 2021 at 11:23:41AM +0100, Moritz Scham wrote:
> Dear Developers,
> I'm trying to locally install ncurses 6.2 (same result with 6.1) on a
> CentOS7 system, because I don't have root access on the system and I want
fwiw, CentOS 7 has ncurses 5.9:
ncurses-5.9-14.20130511.el7_4.x86_64
ncurses-base-5.9-14.20130511.el7_4.noarch
ncurses-devel-5.9-14.20130511.el7_4.x86_64
ncurses-libs-5.9-14.20130511.el7_4.i686
ncurses-libs-5.9-14.20130511.el7_4.x86_64
ncurses-term-5.9-14.20130511.el7_4.noarch
...which is binary-incompatible with ncurses 6.
> to use a recent version of tmux.
ok... that can be made to work
> Therefore the $PREFIX points to a folder in in my $HOME (and $PATH contains
> $PREFIX/bin, $LD_LIBRARY_PATH contains $PREFIX/lib).
>
> The following script runs the installation:
> ```
> wget
> https://ftp.gnu.org/pub/gnu/ncurses/ncurses-${NCURSES_VERSION}.tar.gz
> tar xvzf ncurses-${NCURSES_VERSION}.tar.gz
> cd ncurses-${NCURSES_VERSION}
> ./configure \
> --prefix=$PREFIX \
> --with-default-terminfo-dir=/usr/share/terminfo \
>
> --with-terminfo-dirs="/etc/terminfo:/lib/terminfo:/usr/share/terminfo:$PREFIX/share/terminfo"
> make -j$CORES
> make install
> ```
>
> During the make install step, the following error message appears:
>
> ```
> make[1]: Entering directory `$HOME/tmux_tmp/ncurses-6.2/misc'
> mkdir -p $PREFIX/share/tabset
> DESTDIR= \
> prefix=$PREFIX \
> exec_prefix=$PREFIX \
> bindir=$PREFIX/bin \
> top_srcdir=.. \
> srcdir=. \
> datadir=$PREFIX/share \
> ticdir=/usr/share/terminfo \
This is the problem. The makefile gets that from $TERMINFO:
--------------------------------------------------------------------------------
tabsetdir = $(datadir)/tabset
ticdir = @TERMINFO@
ticfile = $(ticdir).db
source = @TERMINFO_SRC@
...
@MAKE_DATABASE@ srcdir=${srcdir} \
@MAKE_DATABASE@ datadir=${datadir} \
@MAKE_DATABASE@ ticdir=${ticdir} \
@MAKE_DATABASE@ source=terminfo.tmp \
@MAKE_DATABASE@ cross_compiling=@cross_compiling@ \
--------------------------------------------------------------------------------
If you've not used the --with-default-terminfo-dir option, the configure
script will use $TERMINFO from your environment:
--------------------------------------------------------------------------------
AC_MSG_CHECKING(for default terminfo directory)
CF_WITH_PATH(default-terminfo-dir,
[ --with-default-terminfo-dir=DIR default terminfo directory],
TERMINFO,
DATADIR/terminfo,
${datadir}/terminfo)
AC_MSG_RESULT($TERMINFO)
AC_DEFINE_UNQUOTED(TERMINFO,"$TERMINFO",[Define to set the default terminal database path])
fi
AC_SUBST(TERMINFO)
AC_SUBST(MAKE_TERMINFO)
--------------------------------------------------------------------------------
which shows in the log:
--------------------------------------------------------------------------------
> checking if xterm backspace sends BS or DEL... BS
> checking for list of terminfo directories... /etc/terminfo:/lib/terminfo:/usr/share/terminfo:$PREFIX/share/terminfo
> checking for default terminfo directory... /usr/share/terminfo
> checking if big-core option selected... yes
--------------------------------------------------------------------------------
I'd add
--with-default-terminfo-dir=$PREFIX/share/terminfo
to the configure options.
> source=terminfo.tmp \
> cross_compiling=no \
> /bin/sh ./run_tic.sh
> ** Building terminfo database, please wait...
> Running tic to install /usr/share/terminfo ...
>
> You may see messages regarding extended capabilities, e.g., AX.
> These are extended terminal capabilities which are compiled
> using
> tic -x
> If you have ncurses 4.2 applications, you should read the INSTALL
> document, and install the terminfo without the -x option.
>
> "terminfo.tmp", line 1115, col 36, terminal 'fbterm': limiting value of
> `pairs' from 0x10000 to 0x7fff
> ......
> "terminfo.tmp", line 7641, col 36, terminal 'dvtm-256color': limiting value
> of `pairs' from 0x10000 to 0x7fff
> "terminfo.tmp", line 310, terminal 'lpr': can't link l/lpr to p/printer
> ? tic could not build /usr/share/terminfo
> make[1]: *** [install.data] Error 1
> make[1]: Leaving directory `$HOME/tmux_tmp/ncurses-6.2/misc'
> make: *** [install] Error 2
> ```
> Attached please find the full log.
>
> Cheers,
> Moritz
> [0;31m Installation Step: tmux [0m
> + TMUX_VERSION=2.9a
> + TMUX_VERSION=3.2-rc3
> + LIBEVENT_VERSION=2.1.12-stable
> + NCURSES_VERSION=6.2
> + mkdir -p $HOME/tmux_tmp
> + cd $HOME/tmux_tmp
--
Thomas E. Dickey <dickey@invisible-island.net>
https://invisible-island.net
ftp://ftp.invisible-island.net
[Prev in Thread] | Current Thread | [Next in Thread] |