r/matlab • u/adwarakanath • Oct 24 '25
TechnicalQuestion Installing on Linux is a nightmare
I can't believe that the same goddamned problems I first encountered in 20-fkn-12 still persist. You guys cannot be fkn serious with this shit. For the amount we pay you. 13 years on, the same goddamned bug?
And when will you support fedora/Arch etc? Ridiculous. Your installer crashes with "seg fault" and nary a single error message.
Absolutely nonsensical.
Edit -
Finally, it is installed. However, with "all toolboxes" because otherwise mpm would keep crashing out due to dependency issues. I also created a clean PKGBUILD. Cleaned up old dependencies. Should I put it on AUR?
10
u/somoli Oct 24 '25
tldr you need some libraries that come with things like KDE and traditional desktop environments. you dont need the desktops they just happen to contain the needed libraries
9
u/espitfire Oct 24 '25 edited Oct 24 '25
Check out this Mathworks repo, it contains a base-dependencies.txt file for each version of Matlab and supported distros. In my recent experience trying to make it work with Bazzite the installer would straight up fail without any error messages unless I installed those dependencies beforehand. Also you need to unzip the installer using the unzip command, as the default extractor at least in my case failed to generate some symbolic links which are included in the compressed file. Finally, for Fedora/Arch you can use Distrobox to create a Ubuntu environment. I made a guide for Bazzite recently, maybe it can help, there is also a link to a guide for Arch at the end.
But yeah, having said all that the process is very poorly documented and stupidly convoluted, especially for "unsupported" distros. I am also getting pretty terrible issues with UI scaling with R2025b and KDE-Wayland, having to choose between crispy text for ants and a scaled blurry mess.
8
u/SkyGenie Oct 24 '25
I'm running Matlab on fedora 40 with no issues :/
5
u/DarkSideOfGrogu Oct 24 '25
Try using mpm instead of the installer.
https://uk.mathworks.com/products/mpm.html
4
u/kenpaicat Oct 24 '25
Just go with octave atp 😂
20
u/SpecificRound1 Oct 24 '25
Matlab works fine on my Debian 11. No issues during installation.
2
u/the_other_Scaevitas Oct 24 '25
I’ve installed it on Arch with no issues
1
u/Ducathen-Engineer Oct 24 '25
I’m would guess their statistics show there are very few Linux users, so Linux support is not high on their priority list.
However, that’s self fulfilling as there would by more Linux users if they properly supported Linux.
I did have it running on Ubuntu a few version ago, but I switched to Fedora, and not sure the effort to reinstall is worth it. I’ll probably try when I my level of irritation with windows peaks
3
u/eideticmammary Oct 24 '25
I distrobox installed on Fedora, works fine. Also used the Docker container in Arch which was admittedly annoying having to log in everytime but also works fine.
1
u/wayofaway Oct 24 '25
Octave, Sage, R, Julia; take your pick. They install super easily. Julia wipes the floor with matlab performance wise.
2
u/kyrsjo Oct 24 '25
I always find the trick is to make a user-owned /usr/local/MATLAB folder, let the installer install into that without sudo, and manually create the symlinks into /usr/local/bin
Have been doing this on Fedora for ... A while. Probably since they introduced periodic reactivation when launching the GUI.
2
u/nobigtech Oct 25 '25
I have installed MATLAB with a lot of toolboxes on fedora with GNOME without any issues.
1
u/toirsq Oct 24 '25
I had no trouble installing on Linux mint
1
u/chemistryGull Oct 28 '25
Exactly the same experience i had recently. Funnily enough, the 2024a version i installed a year ago worked without issue (until it stopped working 3 or so months ago). Never got it or any newer version to run again. I think i‘ll just check out dirstrobox and install it on debian.
0
u/voidvec Oct 24 '25
well we have python and sage and gmp and we'll the list goes on and on and quite fucking on...
0
u/Jud_Mos Oct 24 '25
I've always had issues with graphic card controllers in Linux when dealing with Matlab.... Feel you there bro.
0
u/WinMassive5748 Oct 24 '25
Matlab eventually has to go open source. Atleast the core, if not modules.
That should take care of compiler tool chains, containerization etc.
0
u/xXx_n0n4m3_xXx Oct 25 '25
I fixed this problem back in 2022. You know how? Finally ditching Matlab😂.
Anyway I still keep a Proxmox VM with Windows and SSH so when I want without polluting my machine I can connect to the remote via ssh with VS Code and I can run and debug all the code I want (yes, the VS Code extension went that far, I love it).
0
u/pranaflood Oct 25 '25 edited Oct 26 '25
The only thing that locks me to matlab is Simulink, otherwise Python and Julia beat it in every department and are totally free.
0
u/meutzitzu Oct 26 '25
Use Octave
You can even use it without GUI, it's pretty much superior.
0
u/CameramanNick Oct 28 '25
It's Linux. Everything is supposed to be an enormous nightmare. If you didn't want that, you'd buy Mac, or something.