언어/ㄴTheano

[pycuda error] Failed to compile cuda_ndarray.cu: libcublas.so.6.5: cannot open shared object file: No such file or directory

공대우냉이 2016. 1. 11. 17:54

If you get an error message that is 

Failed to compile cuda_ndarray.culibcublas.so.6.5: cannot open shared object file: No such file or directory

, follow this order.

So you need to locate and configure that path:
locate libcublas.so.6.5
Add the following library path to ~/.bashrc (Second path has libcublas.so.6.5)
sudo ldconfig /usr/local/cuda-6.5/lib64/
sudo ldconfig /usr/local/cuda-6.5/targets/x86_64-linux/lib/
export LD_LIBRARY_PATH=/usr/local/cuda-6.5/targets/x86_64-linux/lib:$LD_LIBRARY_PATH

export PATH=/usr/local/cuda-6.5/bin:$PATH
export PATH=/usr/local/cuda-6.5/targets/x86_64-linux/lib:$PATH

=====================================================================================================================================

Reference

http://dk-techlogic.blogspot.kr/2015/03/setting-up-theano-on-ubuntu-1404.html