天天看点

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

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./include/cudnn.h /usr/local/cuda/include/
sudo cp cuDNN6./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