Matlab on Mountain Lion not working -

Matlab (R2010a) seems kaput on Mountain Lion - if I click on the icon, it will work immediately.

I installed XQuartz and Java in 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 

Unfortunately, the error does not disappear even after setting the variable DYLD_LIBRARY_PATH, as indicated 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 

Can anyone help?

PS I have already upgraded to Xcode 4.4 if this helps ...

+4
source share
2 answers

Someone told me to reinstall XQuartz and, trying to reinstall it, I realized that XQuartz is installed in / opt / X11 / as opposed to / usr / X 11 /, where the latter is what Matlab is looking for. So I solved the problem by simply making softlink:

 sudo ln -s /opt/X11/ /usr/X11 
+10
source

this work is for me!

  • Install XQuartz
  • Launch XQuartz and from the menu run xterm.

Enter the following command: $ MATLAB / bin / matlab -maci

for me $ MATLAB is / Applications / MATLAB _R2008b.app/, this is your path to the application.

source: http://quantumtunnel.wordpress.com/2012/07/29/matlab-for-mac-in-mountain-lion-without-x11/

Good luck.

0
source

All Articles