Skip to content
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

Invalid MEX-file '/path/to/rcnn/external/caffe/matlab/caffe/caffe.mexa64': libcudart.so.6.0: cannot open shared object file: No such file or directory #824

Closed
zyzhong opened this issue Jul 30, 2014 · 5 comments

Comments

@zyzhong
Copy link

zyzhong commented Jul 30, 2014

I have CUDA 5.5 and CUDA 6.0 installed in /usr/local/, and the LD_LIBRARY_PATH to libcudart.so.6.0 is correct.
I run "make runtest" and it passed, but failed to run /caffe.mexa64.
Actually when I run sudo ldd ./caffe.mexa64, it said libcudart.so.6.0 not found.
Should I uninstall CUDA 5.5 first? Any suggestion?
FYI, after I mv /usr/local/cuda-5.5 away, I can't make caffe successfully because libopencv_core.so need the libcudart.so.5.5

@zyzhong zyzhong changed the title nvalid MEX-file '/path/to/rcnn/external/caffe/matlab/caffe/caffe.mexa64': libcudart.so.6.0: cannot open shared object file: No such file or directory Invalid MEX-file '/path/to/rcnn/external/caffe/matlab/caffe/caffe.mexa64': libcudart.so.6.0: cannot open shared object file: No such file or directory Jul 30, 2014
@wuqiangch
Copy link

/path/to/ means your own paht. You must replace it with your own path.

@tackgeun
Copy link

I've experienced similar situation, finally I found out that the setting of "LD_LIBRARY_PATH" didn't work in some case after I look up the value of "LD_LIBRARY_PATH".
I think the command
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/libcudart
might be working in this case.

@shelhamer
Copy link
Member

It's important to make sure your compilation and runtime paths are the same by properly setting your Makefile.config include and library paths along with your environments LD_LIBRARY_PATH.

Please ask any follow-up questions on the caffe-users mailing list. As of the latest release we prefer to keep issues reserved for Caffe development. Thanks!

@urumican
Copy link

Hi, I just have one question. Where can I find LD_LIBRARY_PATH and PATH variables?

@seanbell
Copy link

Please ask usage questions to the caffe-users mailing list.

That being said, here's a tutorial on linux variables like PATH: http://www.linfo.org/path_env_var.html

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

No branches or pull requests

6 participants