您的位置:首页 > 移动开发 > Objective-C

libcudnn.so.6.5:cannot open sharedobject file: No such file or directory

2016-04-10 20:47 686 查看
If you meet the problem like:

libcudnn.so.6.5:cannot open sharedobject file: No such file or directory

libcudnn.so.7.0:cannot open sharedobject file: No such file or directory

libcudart.so.7.0: cannot open shared object file


the all methods to solve this are adding them into ldconfig:

sudo cp cuDNN6.5/include/cudnn.h /usr/local/cuda/include/
sudo cp cuDNN6.5/lib* /usr/local/cuda/lib64/
#run following code to update
sudo ldconfig -v


or

export LD_LIBRARY_PATH=/where/you/install/lib:$LD_LIBRARY_PATH
sudo ldconfig


or

(edit/etc/ld.so.conf)
vim /etc/ld.so.conf
add /where/you/install/lib
sudo ldconfig


the usage of ldconfig

http://bbs.chinaunix.net/it/ldconfig.shtml
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: