Skip to main content

fixing matlab starts after system upgrade

Soo, just a quick fix: If matlab crashed after upgrading your Arch Linux installation, then you might be experiencing an incompatibility between the version of the C++ support library (libstdc++.so) shipped with MATLAB and the one shipped with Arch Linux.

Making MATLAB use the system version fixes this and is quite simple. You can read about ways to do that here and here. A litte bonus point: applying this fix will enable MATLAB to use your Graphics Accelerator for "advanced plot features", possibly enhancing its performance in that regard.

Comments

Popular posts from this blog

starting matlab offline on Arch Linux

MATLAB uses the MAC address as "host ID" :( T oday it finally got around to fixing an extremly annoing behaviour of MATLAB on a recent installation of Arch Linux: When trying to start MATLAB offline (without the Laptop connected to any network), i suddenly got: License checkout failed. License Manager Error -9 The hostid of your computer ("XXXXXXXXXXXX XXXXXXXXXXXX") does not match the hostid of the license file (XXXXXXXXXXX). To run MATLAB on this computer, you must run the Activation client to reactivate your license. Troubleshoot this issue by visiting: http://www.mathworks.com/support/lme/R2016b/9 Diagnostic Information: Feature: MATLAB License path: /path/license_XXXXXXX_R2016b.lic:/path/Matlab/R2016b/licenses/ license.dat:/path/licenses Licensing error: -9,57. This problem arises because of the License Host ID, which MATLAB uses to bind a licence to a certain PC. It (obviously) incorporates the MAC addresses of all network adapters in the system, expe...

starting matlab offline (for real)

While thinking about the Problem that is MATLAB once more, the real solution to starting matlab offline became obvious: Only spoof the Mac address for MATLAB itself without influencing other software running on the same machine. In order to make this work we will have to change the outcome of the ioctrl syscall, which MATLAB uses to determine the MAC Address of the HW adapter. Fortunaly, that was already done here , which will work for matlab just fine. If you are using Arch Linux then rejoice, for I packaged this little library in the AUR (named libmacspoof ). The Package will install libmacspoof.so.1.0.1 under /usr/lib, which is the assumption below. If you compiled the library yourself, you will have to change the path to it in the two lines of script. Making matlab use the new ioctl That part is charmingly simple: open the script that is the matlab command with sudo nano $(which matlab) and change the first line from #!/bin/sh to #!/bin/sh export MAC_ADDRESS=...