Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

dchase3

macrumors newbie
Original poster
Feb 27, 2008
14
0
I'm having a little trouble with MATLAB. When I try to open the program, it automatically opens up X11 but after about 10 seconds the MATLAB icon stops bouncing and disappears. When I run it from X11, it says:

Pi-2:~ danielchase$ /applications/MATLAB74/bin/maci/matlab
dyld: Library not loaded: ../../bin/maci/libut.dylib
Referenced from: /applications/MATLAB74/bin/maci/matlab
Reason: image not found
Trace/BPT trap

The weird thing is that it used to open just fine. I haven't updated or changed MATLAB, it just stopped working one day. libut.dylib is there, in the right directory.

What's wrong?
 
There's a thread about it in mathworks.com:

http://www.mathworks.com/matlabcentral/newsreader/view_thread/145677

No idea if it'll help you, though.

Also, Brian Arnold from the Mathworks Mac team suggests the following:
Hi,

Don't try to run the executable directly, it can't find its own dylibs
(horrors, shock, desire to start backpedaling...). Figuring out how to
get relative paths to work won't succeed, because relative paths only
work with the magic keywords @loader_path/ or @executable_path/. The
way MATLAB finds these libraries is via the DYLD_LIBRARY_PATH
environment variable, not via relative paths.

To start MATLAB from a Terminal or xterm, always run it from the matlab
shell script:

/Applications/MATLAB74/bin/matlab

This shell script will detect whether you're on PowerPC or Intel, and
launch the correct executable, with the right environment set up for it
(notably, the DYLD_LIBRARY_PATH). If in doubt, use the StartMATLAB.app
double-clickable, launchable wrapper executable.
 
Wow, thanks, it worked. Maybe it's just the desktop icon that has stopped working. I guess I'll just have to load it up that way from now on.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.