MATLAB libraries in Mac OSX

6 views (last 30 days)
Patrick
Patrick on 17 Jun 2012
Hello i would like to use the program Amira for the analysis of NMR data. The goal is to draw ROIs with amira, save the data as *.mat file and import the data back to MATLAB. To save data as *mat file, Amira needs to have access to the MATLAB library. In order to provide access to the library, the online help of Amira suggests the following action:
"On Mac OS X, the AMIRA_LD_LIBRARY_PATH environment variable should be set to MATLAB_INSTALLATION_PATH/bin/maci (for instance: /Applications/MATLAB_R2008b.app/bin/maci) "
Unfortunatelay, even after setting the AMIRA_LIBRARY_PATH environment variable to the installation path (/Applications/MATLAB_R2010a.app/bin/maci), saving Amira data as *.mat file results into the error:
"Trying to load the Matlab engine ... Couldn't open libmat.dylib: dlopen(libmat.dylib, 9): image not found Couldn't open libeng.dylib: dlopen(libeng.dylib, 9): image not found Loading failed, unable to open the following Matlab libraries: libmat libeng The required Matlab libraries need to be in your LD_LIBRARY_PATH. Please fix this and restart Amira."
After using export LD_LIBRARY_PATH=/Applications/MATLAB_R2010a.app/bin/maci
the error message changes into
"Saving '/Users/home_one/Desktop/data_TMP-labels.mat' (Matlab mat-file format) Trying to load the Matlab engine ... Couldn't open libmat.dylib: dlopen(libmat.dylib, 9): Symbol not found: _miFtell64 Referenced from: /Applications/MATLAB_R2010a.app/bin/maci/libmat.dylib Expected in: /usr/lib/libmx.dylib
Couldn't open libeng.dylib: dlopen(libeng.dylib, 9): Symbol not found: _miFtell64 Referenced from: /Applications/MATLAB_R2010a.app/bin/maci/libmat.dylib Expected in: /usr/lib/libmx.dylib
Loading failed, unable to open the following Matlab libraries: libmat libeng"
I even tried to change the DYLD_LIBRARY_PATH variable, but this only results into a malfunction of Gimp.app
Does anyone have a clue what is going wrong here?
  2 Comments
Thomas
Thomas on 19 Jul 2012
run a
system('env |sort')
from matlab and post the result
Ken Atwell
Ken Atwell on 20 Jul 2012
Also run:
computer
Amira seems to assume 32-bit MATLAB, but maybe you are running the 64-bit version? R2012a was a transitional release, one of the few Mac releases available in both 32-bit and 64-bit varieties. R2012b and later are all 64-bit only.

Sign in to comment.

Answers (0)

Categories

Find more on Large Files and Big Data in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!