matlab: Command not found. Can't start MATLAB engine

3 次查看(过去 30 天)
I trying to compile the a engdemo.cpp from g++ on Ubuntu 14.04: I installed cshell in /bin/csh and did set the
LD_LIBRARY_PATH=<matlabroot>/bin/glnxa64:<matlabroot>/sys/os/glnxa64.
<matlabroot> is the right folder /usr/local/MATLAB...
I used following instruction to compile the engdemo.cpp:
g++ -I<matlabroot>/extern/include engdemo.cpp -lmx -leng -L<matlabroot>/bin/glnxa64 -o engdemo
It compiles correctly. But I am unable to run the code. On running, I get the error:
matlab: Command not found.
Can't start MATLAB engine
What could be reason? I checked many forums and matlab community and whatever solution mentioned in them are satisfied in my case. Could somebody please tell what went wrong?
  4 个评论

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by