Compiling VIM on Ubuntu 18.04 with libtinfo.so.5 results in an errorless compilation, but the built executable does not work and crashes with error while loading shared libraries: libtinfo.so.6: cannot open shared object file: No such file or directory. Either VIM does not realize the incorrect version of libtinfo.so, or it should be compatible but it doesn't find it and looks for libtinfo.so.6 only.
mkdir ~/vim-complie; cd ~/vim-complie
git clone https://github.com/vim/vim.git
sudo apt update
sudo apt install make clang libtool-bin libxt-dev libgtk-3-dev libpython3-dev
cd vim
./configure --prefix=$HOME/Software/vim --enable-python3interp --enable-perlinterp --enable-rubyinterp --enable-luainterp --enable-tclinterp --enable-terminal --enable-gui
make
make install
This will successfully build and install the executable. The only place with an error is make install, but it will go on nonetheless. Log: https://pastebin.com/N1eBZvvA
$ $HOME/Software/vim/bin/vim
/home/nagyg/Software/vim/bin/vim: error while loading shared libraries: libtinfo.so.6: cannot open shared object file: No such file or directory
VIM should launch without issue, or an error should happen in the configuration/compilation phase, not after the executable was seemingly successfully built.
github/master
Operating system: Ubuntu 18.04
terminal: Konsole 17.12.3
$TERM=xterm-256color
(base) nagyg -> ldconfig -p | grep libtinfo
libtinfo.so.5 (libc6,x86-64) => /lib/x86_64-linux-gnu/libtinfo.so.5
libtinfo.so.5 (libc6) => /lib/i386-linux-gnu/libtinfo.so.5
libtinfo.so.5 (libc6) => /lib32/libtinfo.so.5
libtinfo.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libtinfo.so
./configure, make and make install logs: https://pastebin.com/N1eBZvvA
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Ubuntu 18.04 is old, you should at least upgrade to 20.04.
It's probably some weird configuration that configure isn't able to handle. I could not open the build logs.
Please check src/auto/config.log for any hints.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
FWIW:
I checked the dependencies on Debian, and this seems to be dragged in from some other dependencies:
% apt-rdepends --build-depends vim |grep -B20 "^\s*Build-Depends: libtinfo" Reading package lists... Done Building dependency tree... Done Reading state information... Done Deep recursion on subroutine "main::show_rdepends" at /usr/bin/apt-rdepends line 382. [...] libedit-dev Build-Depends: libtinfo-dev python2.7 [...] Build-Depends: libtinfo-dev ldc [...] Build-Depends: libtinfo-dev python2.7-dev [...] Build-Depends: libtinfo-dev
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Just tried to reproduce this using ubuntu:18.04 docker image and the error was not present:
# Enter into docker
docker run -it ubuntu:18.04 bash
# Within the container
mkdir ~/vim-complie; cd ~/vim-complie
git clone https://github.com/vim/vim.git
apt update && apt install git
git clone https://github.com/vim/vim.git
cd vim
./configure --prefix=$HOME/Software/vim --enable-python3interp --enable-perlinterp --enable-rubyinterp --enable-luainterp --enable-tclinterp --enable-terminal --enable-gui
make install
# Running VIM works without issues
root@81a41e693e5c:~/vim-complie/vim# /root/Software/vim/bin/vim --version >/dev/null && echo $?
0
LDD shows that libtinfo.so.5 is available
root@81a41e693e5c:~/vim-complie/vim# ldd /root/Software/vim/bin/vim | grep info
libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007f3d307e6000)
In the failure case, do an ldd of the binary and see what libraries are not found.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()