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

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

Open
humengdoudou opened this issue Nov 28, 2017 · 3 comments

Comments

@humengdoudou
Copy link

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?

@FartFang
Copy link

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

@humengdoudou
Copy link
Author

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

MATLAB_DIR := /usr/local/MATLAB/R2014a

@FartFang
Copy link

try /usr/local/MATLAB/R2014a/bin

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