Matlab在Mountain Lion上不起作用- [英] Matlab on Mountain Lion not working -
问题描述
Matlab(R2010a)似乎在Mountain Lion上运行-如果我单击该图标,它将立即崩溃.
Matlab (R2010a) seems to be kaput on Mountain Lion - if I click on the icon it crashes immediately.
我在Mountain Lion上安装了XQuartz和Java,但尝试从xterm打开它时仍然出现以下错误:
I installed XQuartz and Java on Mountain Lion but still keep getting the following error when trying to open it from xterm:
bash-3.2$ /Applications/MATLAB_R2010a.app/bin/matlab
dyld: Library not loaded: /usr/X11/lib/libXext.6.dylib
Referenced from: /Applications/MATLAB_R2010a.app/bin/maci64/MATLAB.app/Contents/MacOS/libmwhg.dylib
Reason: image not found
Trace/BPT trap: 5
不幸的是,即使按照博客文章中的说明设置了DYLD_LIBRARY_PATH变量,错误也不会消失:
Unfortunately the error doesn't go away even after setting the DYLD_LIBRARY_PATH variable as instructed in the blog post: http://quantumtunnel.wordpress.com/2012/07/29/matlab-for-mac-in-mountain-lion-without-x11/
bash-3.2$ export DYLD_LIBRARY_PATH=/System/Library/Frameworks/JavaVM.framework/Libraries
有人可以帮忙吗?
P.S.我已经升级到Xcode 4.4,如果有帮助...
P.S. I have already upgraded to Xcode 4.4 if that helps...
推荐答案
有人告诉我重新安装XQuartz,并在搜索如何重新安装它时,我发现XQuartz安装在/opt/X11/中,而不是/usr/X11/,后者是Matlab寻找的.所以我通过简单地建立一个软链接来解决了这个问题:
Somebody told me to re-install XQuartz and while searching for how to reinstall it, I figured that XQuartz is installed in /opt/X11/ as opposed to /usr/X11/ where the latter is the one that Matlab is looking for. So I resolved the problem by simply making a softlink:
sudo ln -s /opt/X11/ /usr/X11
这篇关于Matlab在Mountain Lion上不起作用-的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!