MATLAB Installation and Setup on Arch Linux
On Arch Linux, the MATLAB installer often crashes with a Segmentation fault (core dumped). In practice, this kind of crash could be caused by many reasons, one of which is that the libraries in Arch are too new.
Instead of downgrading system libraries on the host, it’s much safer to run the installer inside a containerized environment using Distrobox. This gives MATLAB a more conservative runtime without polluting the Arch system, while still sharing your home directory and display session with the host.
Prerequisites
Ensure you have distrobox and a container engine (Podman or Docker) installed on your Arch host:
1 | |
Create the MATLAB Environment
We’ll use Ubuntu 22.04 as the guest OS:
1 | |
Inside the container, install the essential softwares and libraries:
1 | |
Installation
- Download the MATLAB Linux installer from the official MathWorks portal.
- Extract the
.zipin your downloads folder. - From inside the container, navigate to that folder and run the installer:
1 | |
Follow the GUI prompts. Since Distrobox shares your X11/Wayland session, the installer window will appear natively on your Arch desktop.
Desktop Integration
If you don’t want to open a terminal to launch MATLAB every time, create a desktop entry at ~/.local/share/applications/matlab.desktop:
1 | |
Note: Ensure the Exec path points exactly to where you installed MATLAB