Unable to locate package libtinfo6

I’m trying to install ROOT on a linux server 18.04.5 LTS (Bionic Beaver).
After installing both the dependencies and the pre-compiled binaries (I have followed the official link), as I try to launch ROOT by the terminal the following message appears:

Fatal in <TROOT::InitInterpreter>: cannot load library libtinfo.so.6: cannot open shared object file: No such file or directory

Then I tried to do

sudo apt-get install libtinfo6

but this error message appeared:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libtinfo6

Any suggestions on what should I do now?
ROOT Version: 6.22/00
Platform: bionic-server-amd64

1 Like

packages.ubuntu.com suggests libtinfo.so comes with libncurses-dev. Does installing that package help?


Thanks for the suggestion!
This is the record of the terminal feedback:

sudo apt-get install libncurses-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libncurses5-dev' instead of 'libncurses-dev'
The following package was automatically installed and is no longer required:
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
Suggested packages:
The following NEW packages will be installed:
  libncurses5-dev libtinfo-dev
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 256 kB of archives.
After this operation, 1,422 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://cern-geneva-b.clouds.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libtinfo-dev amd64 6.1-1ubuntu1.18.04 [81.3 kB]
Get:2 http://cern-geneva-b.clouds.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libncurses5-dev amd64 6.1-1ubuntu1.18.04 [174 kB]
Fetched 256 kB in 0s (963 kB/s)      
Selecting previously unselected package libtinfo-dev:amd64.
(Reading database ... 77016 files and directories currently installed.)
Preparing to unpack .../libtinfo-dev_6.1-1ubuntu1.18.04_amd64.deb ...
Unpacking libtinfo-dev:amd64 (6.1-1ubuntu1.18.04) ...
Selecting previously unselected package libncurses5-dev:amd64.
Preparing to unpack .../libncurses5-dev_6.1-1ubuntu1.18.04_amd64.deb ...
Unpacking libncurses5-dev:amd64 (6.1-1ubuntu1.18.04) ...
Setting up libtinfo-dev:amd64 (6.1-1ubuntu1.18.04) ...
Setting up libncurses5-dev:amd64 (6.1-1ubuntu1.18.04) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...

Unfortuately, the error remain the same as before…



Uhm ok, which binaries did you download exactly? root_v6.22.02.Linux-ubuntu18-x86_64-gcc7.5.tar.gz ?

No, I took this one: root_v6.22.00.Linux-ubuntu19-x86_64-gcc9.2.tar.gz

Should I try with the 6.22.02 version?

You should try the ubuntu18 version :smiley:


Oh I see. I didn’t notice the 19 at all. I’ll try right now thanks


It was the wrong tar.gz file. Thank you a lot for the help!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.