Install Matlab on Linux
This procedure works for Matlab on most Linux systems including Ubuntu and RHEL.
Extract all files from the Matlab installer archive, and run (without sudo
)
./install
Install Matlab under “/home/username/.local/” since Matlab is tied to the Linux username anyway. The user will have problems updating Matlab or installing Add-On Toolboxes if Matlab is installed outside the user home directory. Install Symbolic Links to “/home/username/.local/bin/” when asked by the GUI.
Add to the user ~/.profile:
export PATH=$PATH:$HOME/.local/bin
Optional: Add links in desktop menu
Matlab can be started from Terminal:
matlab
It’s best to run non-interactive Matlab jobs (including CI) like
matlab -batch myscript
NOTE: A GUI is required for normal install
If installing Matlab remotely over SSH, use any one of:
- X11 Forwarding
- VNC
- Silent install via config file (tricky)
If “click here” isn’t working for individual site license, try dragging the “click here” to the web browser address bar.
If getting error:
terminate called after throwing an instance of 'std::runtime_error'
what(): Unable to launch the MATLABWindow application
try removing libcrypto.so.1.1 under the Matlab install folder “bin/glnxa64/” and ./install again.