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

libmatio.so.2: cannot open shared object file #14

Closed
mjohn123 opened this issue Dec 26, 2016 · 2 comments
Closed

libmatio.so.2: cannot open shared object file #14

mjohn123 opened this issue Dec 26, 2016 · 2 comments

Comments

@mjohn123
Copy link

I downloaded and install matio by following commands:

./configure
make
sudo make install

I also changed the MATLAB_DIR := /usr/local/MATLAB/R2014b in Makefile.config file. Then I compile the PSPnet using

make -j8 && make matcaffe

I got the success message

MEX matlab/ caffe/private/caffe_.cpp
Building with 'g  '.
Warning: You are using gcc version '5.4.1'. The version of gcc is not supported. The version currently supported with MEX is '4.7.x'. For a list of currently supported compilers see: http://www.mathworks.com/support/compilers/current_release.
MEX completed successfully.

However, when I run the eval_all.m file, I got the error

Invalid MEX-file '/home/john/PSPNet/matlab/ caffe/private/caffe_.mexa64': libmatio.so.2: cannot open shared object file: No such file or directory
Error in caffe.reset_all (line 5)
caffe_('reset');
Error in eval_sub (line 20)
caffe.reset_all();
Error in eval_all (line 72)  eval_sub(data_name,data_root,eval_list,model_weights,model_deploy,fea_cha,base_size,crop_size,data_class,data_colormap, ..
```

How can I fix it? Thank you
@hungnguyen0606
Copy link

Oh.
After "make install" matio, try "sudo ldconfig".
Then comeback and build caffe again.

@mjohn123
Copy link
Author

Thank you. I solved it

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

No branches or pull requests

2 participants