FS#27841 - cuda-dbg in cuda-toolkit needs symlink to libtinfo.so.5 (ncurses)

Attached to Project: Arch Linux
Opened by Martin Schmidt (Blind) - Thursday, 05 January 2012, 18:00 GMT
Last edited by Ionut Biru (wonder) - Saturday, 07 January 2012, 13:22 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
The cuda-dbg binary is non functional at this point because of a missing symlink to libtinfo.so.5
I guess one could debate whether this symlink should be provided by ncurses, but probably not because it is deprecated and programs should be linked to libncurses. However, cuda-dbg is (I believe) binary blob provided by NVidia.

Additional info:
* package version(s)
cuda-toolkit 4.1.21-1 (x64)

Steps to reproduce:
# ldd `which cuda-gdb`
linux-vdso.so.1 => (0x00007fffdddff000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00007fb7f0199000)
libncurses.so.5 => /usr/lib/libncurses.so.5 (0x00007fb7eff47000)
libtinfo.so.5 => not found
libz.so.1 => /opt/dropbox/libz.so.1 (0x00007fb7efd30000)
libm.so.6 => /lib/libm.so.6 (0x00007fb7efa3c000)
libdl.so.2 => /lib/libdl.so.2 (0x00007fb7ef838000)
libutil.so.1 => /lib/libutil.so.1 (0x00007fb7ef635000)
libpython2.7.so.1.0 => /usr/lib/libpython2.7.so.1.0 (0x00007fb7ef276000)
libexpat.so.1 => /usr/lib/libexpat.so.1 (0x00007fb7ef04c000)
libc.so.6 => /lib/libc.so.6 (0x00007fb7eeca9000)
/lib64/ld-linux-x86-64.so.2 (0x00007fb7f03b6000)

Suggested remedy:
cd /opt/cuda-toolkit/{lib,lib64}
ln -s /usr/lib/libncurses.so.5.9 libtinfo.so.5

or whatever... :)

This task depends upon

Closed by  Ionut Biru (wonder)
Saturday, 07 January 2012, 13:22 GMT
Reason for closing:  Fixed
Additional comments about closing:  cuda-toolkit 4.1.21-3
Comment by Martin Schmidt (Blind) - Friday, 06 January 2012, 16:50 GMT
Yeah, once one then puts /opt/cuda-toolkit/lib|lib64 into LD_LIBRARY_PATH, it works correctly.
For some reason, the conf file in /etc/ld.so.conf.d/cuda-toolkit.conf is NOT enough.
Thanks for the help.

Loading...