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
If you use
yay you can install it with
yay -S ncurses5-compat-libs.
Chain of symlinks
If you are curious, this package fixes this issue by creating a symlink to
And that is also a symlink, which points to
And that one, is also a symlink, this time pointing to the regular file
This regular file is not present without the package we just installed.