MATLAB not starting anymore: MATLAB: No such file or directory

6 views (last 30 days)
Recently, when I try to start MATLAB (linux xa64), I just receive the error:
/home/felix/bin/matlab: line 1690:
/home/felix/programs/matlab2012a/bin/glnxa64/MATLAB: No such file or directory
However,
ls -l /home/felix/programs/matlab2012a/bin/glnxa64/ | grep MATLAB
outputs
-r-xr-xr-x 1 felix users 28816 Jan 21 22:54 MATLAB
so the file does actually exist! I don't know, where to start or what the problem is. Can anybody help me?
Cheers Felix
  1 Comment
Walter Roberson
Walter Roberson on 12 Jul 2012
Watch out for unprintable characters in the name. For example if the file that is there was MATLAB<space> then you would have a problem.

Sign in to comment.

Answers (1)

Jason Ross
Jason Ross on 12 Jul 2012
I'm guessing that your home directory is on an NFS partition. Make sure that the mount is not hung/stale, and that files are actually there. It's possible that:
  • the automounter is somehow in a bad state
  • the NFS server is no longer available
  • your home directory was moved to a new file system, the mount has been updated, but your machine is still referencing the old inode
Solutions:
  • umount your home directory
  • restart the automounter
  • reboot your machine
Other things to check:
  • did you make changes to .cshrc, bashrc or files that do similar things? Specifically, I'd be looking for changes to the PATH.
  • did your organization make changes to these files? I'd look for changes to the PATH here again.
Other things to look at:
  • I'm assuming /home/felix/bin/matlab is a symlink to the actual matlab start commmand in /home/felix/programs/matlab2012a/bin/matlab. Did something change here? Or is it not a symlink, and a script that sets something up, then calls the regular matlab command?
  • What happens if you start /home/felix/programs/matlab2012a/bin/matlab?

Categories

Find more on Startup and Shutdown 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!