Navigate back to the homepage

Fix missing libtinfo.so.5 library in Arch Linux

Jaime Martínez Rincón
May 16th, 2020 · 1 min read

If you try to use clang-format in Arch Linux you might find yourself with an error saying that the library libtinfo.so.5 couldn’t be found.

There are plenty of proposed solutions, some involve symlinking other libraries, but in my experience that didn’t work and the solution ended up being installing just one package from the AUR.

That package is ncurses5-compat-libs. If you use yay you can install it with yay -S ncurses5-compat-libs.

If you are curious, this package fixes this issue by creating a symlink to /usr/lib/libncurses.so.5.

And that is also a symlink, which points to /usr/lib/libncursesw.so.5.

And that one, is also a symlink, this time pointing to the regular file /usr/lib/libncursesw.so.5.9.

This regular file is not present without the package we just installed.

More articles from Jaime Martínez Rincón

My perfect SSH Agent configuration

I have tried a lot of SSH agents and I've come to the conclusion that gnome-keyring is the one that provides the best experience, similar…

May 16th, 2020 · 2 min read

Replace nvm, rvm, and others with asdf-vm, the best version manager

Today trying to improve my nvm and rvm installations I stumbled upon asdf-vm. This tool is all the version managers you can think of…

June 27th, 2020 · 2 min read
© 2020 Jaime Martínez Rincón
Link to $https://github.com/jamezrinLink to $https://twitter.com/jamezrinLink to $https://stackoverflow.com/users/4673065/jamezrinLink to $https://www.linkedin.com/in/jamezrin/