caffe-cvprw15 icon indicating copy to clipboard operation
caffe-cvprw15 copied to clipboard

error in compiling matlab by /usr/local/MATLAB/R2014a/bin/mexext: Command not found

Open humengdoudou opened this issue 7 years ago • 3 comments

I use ubuntu 16.04 and your git code to compile matlab interface,matlab has already been rightly installed

and I also fix the Makefile.config by setting: MATLAB_DIR := /usr/local/MATLAB/R2014a

but by running: make matcaffe -j40, it outputs errors like:

make: /usr/local/MATLAB/R2014a/bin/mexext: Command not found /usr/local/MATLAB/R2014a/bin/mex matlab/caffe/matcaffe.cpp
CXX="g++"
CXXFLAGS="$CXXFLAGS -pthread -fPIC -DNDEBUG -O2 -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I/usr/include/hdf5/serial -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -Wno-uninitialized"
CXXLIBS="$CXXLIBS .build_release/lib/libcaffe.a -L/usr/lib -L/usr/local/lib -L/usr/lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu/hdf5/serial -lpthread -lglog -lgflags -lprotobuf -lleveldb -lsnappy -llmdb -lboost_system -lhdf5_hl -lhdf5 -lopencv_core -lopencv_highgui -lopencv_imgproc -lboost_thread -lcblas -latlas" -output matlab/caffe/caffe. /bin/sh: 1: /usr/local/MATLAB/R2014a/bin/mex: not found Makefile:400: recipe for target 'matlab/caffe/caffe.' failed make: *** [matlab/caffe/caffe.] Error 127

in the matlab setting path, there exists the mexext in /usr/local/MATLAB/R2014a/bin/mexext, i am newer in matlab, so can you help me figure out the problem?

humengdoudou avatar Nov 28 '17 07:11 humengdoudou

vim Makefile.config ,and check if your matlab version matches.

FartFang avatar Nov 28 '17 11:11 FartFang

i install the matlab R2014a in /usr/local/MATLAB/R2014a,and in Makefile.config the matlab dir is:

MATLAB_DIR := /usr/local/MATLAB/R2014a

humengdoudou avatar Nov 29 '17 01:11 humengdoudou

try /usr/local/MATLAB/R2014a/bin

FartFang avatar Nov 29 '17 01:11 FartFang