Actually, I ran into this problem when I did make. I installed Cuda 8.0 under my Ubuntu 16.04. This issue baffled me for several weeks, and I almost tried to reinstall ubuntu for this after considering many suggestions via google, but finally I recently contacted it.
First of all, you must replace all UBUNTU_PKG_NAME = ## nvidia-3xx ## with one of the actually installed versions of the nvidia driver, as described above. Then you will probably get a compilation of the error after you make a new make. In my case, I have link errors like
/usr/bin/ld: warning: libGLX.so.0, needed by /usr/lib/nvidia- 375/libGL.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libGLdispatch.so.0, needed by /usr/lib/nvidia- 375/libGL.so, not found (try using -rpath or -rpath-link) ....
or anything that contains missing link errors. Find the files you skip, for example
$ locate libGLX.so. /usr/lib/nvidia-375/libGLX.so.0 /usr/lib32/nvidia-375/libGLX.so.0 $ locate libGLdispatch.so.0 /usr/lib/nvidia-375/libGLdispatch.so.0 /usr/lib32/nvidia-375/libGLdispatch.so.0
There is probably an error related to the fact that compilation files cannot be found in the default cuda libraries, so you just need to copy the missing files to / usr / lib / nvidia-3xx / (the actual path in your case), and this should to work (it works in my case), if not, maybe you could try linking the new add-ons to the one you need using
$ sudo ln -s (requested file) (requesting file).
Hope this helps.
source share