Symbolic linking confusion
Bruce Labitt
bruce.labitt at myfairpoint.net
Mon Apr 15 21:59:59 EDT 2013
Recently been playing with GPU computing. I'm running Ubuntu 12.10 and
installed the nvidia-cuda-toolkit package. It seems that the libs are
in odd places. Why does it matter? Because I'd like to build the GPU
Computing SDK. So I follow the instructions in
/usr/share/nvidia-cuda-toolkit, down load the SDK and type make.
So it gets part way through and barfs because it can't find libcuda.
make[1]: Entering directory
`/home/bruce/NVIDIA_GPU_Computing_SDK/C/src/deviceQuery'
/usr/bin/ld: error: cannot find -lcuda
No problem, just edit ld.so.conf.d/cuda.conf add the locations,
ldconfig, and should be good to go. Still can't find libcuda. Must be
a link issue...
$ locate libcuda
/usr/lib/nvidia-current-updates/libcuda.so
/usr/lib/nvidia-current-updates/libcuda.so.1
/usr/lib/nvidia-current-updates/libcuda.so.304.88
$ sudo ldconfig -v
...
/usr/lib/nvidia-current-updates:
libcuda.so.1 -> libcuda.so.304.88
libnvidia-tls.so.304.88 -> libnvidia-tls.so.304.88
libnvcuvid.so.1 -> libnvcuvid.so.304.88
libOpenCL.so.1 -> libOpenCL.so.1.0.0
libnvidia-cfg.so.1 -> libnvidia-cfg.so.304.88
libnvidia-ml.so.1 -> libnvidia-ml.so.304.88
libnvidia-opencl.so.1 -> libnvidia-opencl.so.304.88
libnvidia-glcore.so.304.88 -> libnvidia-glcore.so.304.88
libnvidia-wfb.so.1 -> libnvidia-wfb.so.304.88
libXvMCNVIDIA_dynamic.so.1 -> libXvMCNVIDIA.so.304.88
libGL.so.1 -> libGL.so.304.88
libnvidia-compiler.so.304.88 -> libnvidia-compiler.so.304.88
So do I just do
$ sudo ln -s libcuda.so.1 libcuda.so ? or the other way around ?
man ln is not very clear...
ln -s {target-filename} {symbolic-filename}
Which is really the target? libcuda.so.1 ? Did I get that right?
TIA,
Bruce
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.gnhlug.org/mailman/private/gnhlug-discuss/attachments/20130415/0c6e193f/attachment.html
More information about the gnhlug-discuss
mailing list