error in compiling matlab by /usr/local/MATLAB/R2014a/bin/mexext: Command not found
humengdoudou opened this issue · 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?
vim Makefile.config ,and check if your matlab version matches.
i install the matlab R2014a in /usr/local/MATLAB/R2014a,and in Makefile.config the matlab dir is:
MATLAB_DIR := /usr/local/MATLAB/R2014a
try /usr/local/MATLAB/R2014a/bin