New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libcudart.so.8.0: cannot open shared object file: No such file or directory #4944

Closed
fujihuang opened this Issue Nov 2, 2016 · 8 comments

Comments

Projects
None yet
8 participants
@fujihuang

fujihuang commented Nov 2, 2016

.......
[==========] 2081 tests from 277 test cases ran. (324463 ms total)
[ PASSED ] 2081 tests.

i have make runtest,as it is showed above,the runtest have passed.But when i try to run mnist example,the error happened as below:

``:~/caffe$ sudo sh ./examples/mnist/create_mnist.sh
Creating lmdb...
build/examples/mnist/convert_mnist_data.bin: error while loading shared libraries: libcudart.so.8.0: cannot open shared object file: No such file or directory

many people said i should add the path in the bashrc document,and i have added as below:

export LD_LIBRARY_PATH=/usr/local/cuda-8.0/lib64:$LD_LIBRARY_PATH
export PATH=/usr/local/cuda-8.0/bin:$PATH
export PATH

but i try again,the error happened again.i do not know what i did wrong,if anyone know,please tell me what i should do,thanks in advance.

@fujihuang fujihuang closed this Nov 3, 2016

@Shubhamcl

This comment has been minimized.

Shubhamcl commented Mar 10, 2017

Hard to understand why is this one closed ? the issue still exists.

.build_release/tools/caffe
.build_release/tools/caffe: error while loading shared libraries: libopenblas.so.0: cannot open shared object file: No such file or directory
Makefile:533: recipe for target 'runtest' failed
make: *** [runtest] Error 127
@Edwardmark

This comment has been minimized.

Edwardmark commented May 14, 2017

I met the same error, please help me

@zhenni

This comment has been minimized.

zhenni commented May 23, 2017

@Edwardmark

As @fujihuang mentioned, just add the path
export LD_LIBRARY_PATH=/usr/local/cuda-8.0/lib64:$LD_LIBRARY_PATH
export PATH=/usr/local/cuda-8.0/bin:$PATH

However, fujihuang adds the third comment which makes his PATH to be empty.

@Jeonguuz

This comment has been minimized.

Jeonguuz commented Aug 8, 2017

Thank you @zhenni . It helped

@Jeonguuz

This comment has been minimized.

Jeonguuz commented Sep 15, 2017

thank you @zhenni. You saved my day

@zimenglan-sysu-512

This comment has been minimized.

zimenglan-sysu-512 commented Dec 6, 2017

hi @zhenni,

your solution does not work. do you have other suggestion how to solve it?

@SelenaKong

This comment has been minimized.

SelenaKong commented Mar 14, 2018

sudo ldconfig /usr/local/cuda/lib64
Fine for me.
Please refer this link for more information.
tensorflow/tensorflow#5343

@calf1in1cup

This comment has been minimized.

calf1in1cup commented Apr 5, 2018

if the first method mentioned above can't help,maybe you can try this,
go into the dir /usr/local/cuda/include/host_config.h, then comments"#error-- unsupported GNU version! gcc versions later than 4.9 are not supported!"
like this "//#error-- unsupported GNU version! gcc versions later than 4.9 are not supported!"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment