DEV Community

loading...
Cover image for cuda-gdb error with libtinfo.so.5

cuda-gdb error with libtinfo.so.5

Bevan Stanely
An accidental biologist for the time being. I love to fantasize about duplicating the complex biological systems outside of biology.
Updated on ・1 min read

Originally Published on bevs.xyz

I had a fresh install of cuda-tools from the Manjaro software repository and I simply couldn’t run cuda-gdb. I was getting the following error

cuda-gdb: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
Enter fullscreen mode Exit fullscreen mode

A related error was as follows:

cuda-gdb: error while loading shared libraries: libncursesw.so.5: cannot open shared object file: No such file or directory
Enter fullscreen mode Exit fullscreen mode

I had to investigate the files libtinfo.so.5 and libncursesw.so.5. It was a simple version-conflict with ncurses. My distro had ncurses 6.2, whereas cuda-gdb was insisting on ncurses 5. A simple symlink was in order, actually two. The following two lines saved my day!

sudo ln -s /usr/lib/libncursesw.so.6.2  /usr/lib/libtinfo.so.5

sudo ln -s /usr/lib/libncursesw.so.6.2  /usr/lib/libncursesw.so.5
Enter fullscreen mode Exit fullscreen mode

I got the necessary pointers from this stackoverflow answer for an unrelated Android Studio question.

Discussion (0)