Fedora 30 x64 Missing libtinfo.so.5

Linux specific questions.
Post Reply
robert
Posts: 169
Joined: Aug 06, 2019 18:45

Fedora 30 x64 Missing libtinfo.so.5

Post by robert »

Trying to compile hello.bas from an install of FreeBASIC-1.07.1-ubuntu-18.04-x86_64 on Fedora 30 x64 threw this

fbc: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory

The solution is a symlink as follows

sudo ln -s /usr/lib64/libncurses.so.6.1 /usr/lib64/libtinfo.so.5
robert
Posts: 169
Joined: Aug 06, 2019 18:45

Re: Fedora 30 x64 Missing libtinfo.so.5

Post by robert »

robert wrote:Trying to compile hello.bas from an install of FreeBASIC-1.07.1-ubuntu-18.04-x86_64 on Fedora 30 x64 threw this

fbc: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory

The solution is a symlink as follows

sudo ln -s /usr/lib64/libncurses.so.6.1 /usr/lib64/libtinfo.so.5
On Fedora 30 x64, instead of the symlink the following installs the needed libraries

sudo dnf install ncurses-compat-libs.x86_64
Helium5793
Posts: 42
Joined: Jun 21, 2016 13:06

Re: Fedora 30 x64 Missing libtinfo.so.5

Post by Helium5793 »

Unfortunately neither of these solutions seems to work on Fedora 31. I tried to install the compat-libs, but they were already installed. I tried the symbolic link and got a file exists error. And yet my system still cannot find libtinfo.so.5
John
caseih
Posts: 2157
Joined: Feb 26, 2007 5:32

Re: Fedora 30 x64 Missing libtinfo.so.5

Post by caseih »

On my Centos 8 box, which is based on Fedora 28, I can install ncurses-compat-libs and it definitely does provides libtinfo.so.5. I verified that by doing rpm -ql ncurses-compat-libs.

If you're trying to use the 32-bit version of FBC, you'll need to install ncurses-compat-libs.i686

On Fedora 31, what does "rpm -ql ncurses-compat-libs" say?

Also what does "ldd /path/to/binary" say where binary is your compiled FB program, or fbc itself? that should list all libraries it needs and whether the system can find them.

I just checked Fedora 31's ncurses-compat-libs rpm and it definitely also has libtinfo.so.5. I wonder if there's some other dependency you're missing.
Helium5793
Posts: 42
Joined: Jun 21, 2016 13:06

Re: Fedora 30 x64 Missing libtinfo.so.5

Post by Helium5793 »

That command gives the following list on Fed 31 64 bit
[jduchek@localhost ~]$ rpm -ql ncurses-compat-libs
/usr/lib/.build-id
/usr/lib/.build-id/0e
/usr/lib/.build-id/0e/86ec14915544ca1b68e1b53014a98979aeb5ec
/usr/lib/.build-id/1b
/usr/lib/.build-id/1b/b389181eeefa9a55b764eabd2aacd909dd5b99
/usr/lib/.build-id/1c
/usr/lib/.build-id/1c/5eec505807d9072b037ddd1e929a372d44a9ad
/usr/lib/.build-id/84
/usr/lib/.build-id/84/59323651199a26e7789b0f85378ea1f3e6dbb1
/usr/lib/.build-id/85
/usr/lib/.build-id/85/5fb3c11d06f3b47f17cf9b1964a59357aadd05
/usr/lib/.build-id/95
/usr/lib/.build-id/95/44c3db9eacb8ac6f960d549d034cd9d6de63ea
/usr/lib/.build-id/97
/usr/lib/.build-id/97/37bfa479c1b450af909e7d858c2cda06e92c17
/usr/lib/.build-id/ba
/usr/lib/.build-id/ba/6570b0d3529319bbdb18decfeb9d0ac028a221
/usr/lib/.build-id/c1
/usr/lib/.build-id/c1/f113c3ac99f9294ec69f2e063efd9d762c853d
/usr/lib/.build-id/c6
/usr/lib/.build-id/c6/8abf6f4dc3d88124b961f6c59f480333078584
/usr/lib/.build-id/e6
/usr/lib/.build-id/e6/26a867df5611cda92cc26b370be57e4c97ac4d
/usr/lib/.build-id/f9
/usr/lib/.build-id/f9/6e92c04e7d75de87123297b5998f1bfa416762
/usr/lib64/libform.so.5
/usr/lib64/libform.so.5.9
/usr/lib64/libformw.so.5
/usr/lib64/libformw.so.5.9
/usr/lib64/libmenu.so.5
/usr/lib64/libmenu.so.5.9
/usr/lib64/libmenuw.so.5
/usr/lib64/libmenuw.so.5.9
/usr/lib64/libncurses++.so.5
/usr/lib64/libncurses++.so.5.9
/usr/lib64/libncurses++w.so.5
/usr/lib64/libncurses++w.so.5.9
/usr/lib64/libncurses.so.5
/usr/lib64/libncurses.so.5.9
/usr/lib64/libncursesw.so.5
/usr/lib64/libncursesw.so.5.9
/usr/lib64/libpanel.so.5
/usr/lib64/libpanel.so.5.9
/usr/lib64/libpanelw.so.5
/usr/lib64/libpanelw.so.5.9
/usr/lib64/libtic.so.5
/usr/lib64/libtic.so.5.9
/usr/lib64/libtinfo.so.5
/usr/lib64/libtinfo.so.5.9
[jduchek@localhost ~]$
badidea
Posts: 2591
Joined: May 24, 2007 22:10
Location: The Netherlands

Re: Fedora 30 x64 Missing libtinfo.so.5

Post by badidea »

And the second question from caseih?
ldd hello_world where hello_world is the compiled version of hello_world.bas
Output here (Ubuntu):

Code: Select all

ldd hello_world
	linux-vdso.so.1 (0x00007ffeea99e000)
	libgtk3-nocsd.so.0 => /usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0 (0x00007f56d9ed2000)
	libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007f56d9ca8000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f56d990a000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f56d9706000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f56d94e7000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f56d90f6000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f56da0d9000)
And if I check where libtinfo details where it is located here, it looks like this:

Code: Select all

ls -l /lib/x86_64-linux-gnu/libtinfo.*
lrwxrwxrwx 1 root root     15 May 23  2018 /lib/x86_64-linux-gnu/libtinfo.so.5 -> libtinfo.so.5.9
-rw-r--r-- 1 root root 170784 May 23  2018 /lib/x86_64-linux-gnu/libtinfo.so.5.9
Helium5793
Posts: 42
Joined: Jun 21, 2016 13:06

Re: Fedora 30 x64 Missing libtinfo.so.5

Post by Helium5793 »

I did find the answer for this but it looks like I didn't post it. Somebody suggested replacing the fbc file in the linux installation (apparently compiled under Ubuntu) with one compiled under your flavor of linux. I did compile fbc from source and copied it over the given fbc file and the errors disappeared.
John
Landeel
Posts: 777
Joined: Jan 25, 2007 10:32
Location: Brazil
Contact:

Re: Fedora 30 x64 Missing libtinfo.so.5

Post by Landeel »

Same problem on Ubuntu 20.04.
But it can be solved by installing 'libtinfo5'.
viewtopic.php?f=5&t=28443
Post Reply