DEV Community

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

Posted on • Edited on

2 1

cuda-gdb error with libtinfo.so.5

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.

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay