make mattest error despite succesfull make matcaffe

47 views
Skip to first unread message
Assigned to richardo...@gmail.com by me

Richardo Tiono

unread,
Aug 31, 2019, 6:06:44 AM8/31/19
to Caffe Users
Hello I just recently tried to install matcaffe for my research project and I have encountered some problem during make mattest. I am currently following installation tutorial

I have 2 different set of problem which depends on whether I input this command on terminal or not
Here is the command I input based (this is based on tutorial)
export LD_LIBRARY_PATH=/opt/intel/mkl/lib/intel64:/usr/local/cuda/lib64
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6

Here is the output of the error if I input those command :
Invalid MEX-file '/home/cgal/caffe/matlab/+caffe/private/caffe_.mexa64':
/usr/lib/libgdal.so.20: symbol TIFFReadRGBATileExt version LIBTIFF_4.0 not
defined in file libtiff.so.5 with link time reference

Error in caffe.set_mode_cpu (line 5)
caffe_
('set_mode_cpu');

Here is the output of the error if I dont use those command :
Invalid MEX-file '/home/cgal/caffe/matlab/+caffe/private/caffe_.mexa64':
/usr/local/MATLAB/R2015a/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6:
version
`CXXABI_1.3.8' not found (required by
/home/cgal/caffe/matlab/+caffe/private/caffe_.mexa64)

Error in caffe.set_mode_cpu (line 5)
caffe_('set_mode_cpu');

Here is the specification of my machine :
- Ubuntu 18.04
- 16gb ram
- i7 3770
- gtx 1080ti
- python 3.6
- gcc and g++ 6.5 (there is a warning during make matcaffe to use 4.7 but I cant find any g++ 4.7 therefore I tried to use gcc g++ 4.8.5 but the problem still the same)

Please help me resolve this. In case if you need more info I will update the post. Thank you

Richardo Tiono

unread,
Sep 4, 2019, 3:20:10 AM9/4/19
to Caffe Users
So I actually found the answer for this problem from this 2 post 1 and 2
  1. Renaming the libstdc++.so.6 library file so that MATLAB cannot find it and is forced to use the system's version of the library. This file is located inmatlabroot/sys/os/glnxa64 . Renaming it to libstdc++.so.6.old should suffice. (where "matlabroot" is root installation directory of MATLAB)
  2. inputting this command on terminal export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libtiff.so.5:/usr/lib/x86_64-linux-gnu/libstdc++.so.6
Reply all
Reply to author
Forward
0 new messages