autumnai / leaf-examples

Examples for the Hacker's Machine Learning Framework Leaf
78 stars 17 forks source link

libcudnn missing #7

Open randomm opened 8 years ago

randomm commented 8 years ago

Following install instructions and resulting with libcudnn missing on el capitan.

hobofan commented 8 years ago

Could you show me the error? Do you have libcudnn installed and which instructions did you follow?

Marviel commented 8 years ago

Having same issue on Yosimite. Can't report full error at this time, but will if it persists.

hobofan commented 8 years ago

I spent some time learning more about dynamic linking and am now working on writing a small guide on how to correctly install cudnn so it can be found by the linker at build time.

If you have cudnn installed you should be able to compile it with

CUDNN_LIB_DIR=/path/to/cudnn/lib cargo build

alternatively you can also create a symlink in your default lib path:

sudo ln -s /path/to/cudnn/libcudnn.so /usr/lib/libcudnn.so
jakelee8 commented 8 years ago

Cross-post from https://github.com/autumnai/leaf/issues/105

This Stack Overflow answer fixed that problem for me.

export LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/