MATLAB: Do I receive “error extracting archives” or “libSystem.dylib” messages on Mac when installing MATLAB

MATLAB

During an installation using downloads, I encounter the error message:
There was an error extracting the archives for MATLAB. Check that you have enough disk space and re-run the installer.
This is accompanied by the following message both within console, and when running various commands (uname -a) from within a terminal window:
dyld: shared cached file was build against a different libSystem.dylib, ignoring cache
Upon receiving the above mentioned error, the installer halts, and I am asked to cancel out of the installation process.

Best Answer

This error message indicates that during a restore on the machine, the cache was built with a different operating system's library (upgrading from one operating system to a newer one)
To work around this issue, launch a terminal window, and run the following command:
sudo update_dyld_shared_cache -force
This should then allow you to restart the installation, and complete the process.
If you are receiving this error when installing into an existing MATLAB, you can also resolve this error by changing file permissions on the MATLAB directory. To do so:
1. Open Terminal from Applications/Utilities
2. Run the following command in Terminal:
sudo chmod -R 755 /Applications/$MATLABROOT
(where $MATLABROOT is the name of the MATLAB directory)
For example:
sudo chmod -R 755 /Applications/MATLAB_R2012a.app
3. Enter your normal user password when prompted.
Once complete, you should be able to install into that MATLAB folder.