Dlib: import dlib: importerror libcudnn.so.5 cannot open shared object file

Created on 16 Mar 2017  路  2Comments  路  Source: davisking/dlib

Hi,
I'm using ubuntu 16.04, anaconda with python 2.7, cuda 8.0 and cudnn 5.1 installed (in usr/local/cuda)

I was able to compile the python api without any errors. But when I try to import dlib, I get the following error:
Traceback (most recent call last):
File "", line 1, in
File "/home/z3pp/miniconda2/lib/python2.7/site-packages/dlib-19.4.99-py2.7-linux-x86-64.egg/dlib/__init__.py", line 1, in
from .dlib import *
ImportError: libcudnn.so.5: cannot open shared object file: No such file or director

The libcudnn.so.5 is present in /usr/local/cuda/lib64 and my LD_LIBRARY_PATH has /usr/local/cuda in it.

What am I missing here?
Ta

All 2 comments

Put /usr/local/cuda/lib64 in your path, since that's where the library is.

Sorry that didn't work either. But it worked fine now when I compiled the files directly using cmake without using setup.py

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alison-carrera-pegasus picture alison-carrera-pegasus  路  3Comments

srikanthreddybethi picture srikanthreddybethi  路  4Comments

mohsin512 picture mohsin512  路  5Comments

pliablepixels picture pliablepixels  路  4Comments

joeking11829 picture joeking11829  路  5Comments