cannot install MATLAB R2024b in Ubuntu 24.04.1
65 views (last 30 days)
Show older comments
Dear all,
I am trying to install MATLAB R2024b in Ubuntu 24.04.1 and after trying sudo -H ./install I keep getting this error:
terminate called after throwing an instance of 'std::runtime_error'
what(): Failed to launch web window with error: Unable to launch the MATLABWindow application. The exit code was: 127
Aborted
I installed X11 libraries, updated libraries as indicated in recent posts, make sure I have permissions in the folder and I still get the same error every time I tried to install it. Please some help!?
0 Comments
Answers (2)
Star Strider
on 11 Oct 2024
Please post back here with MathWorks recommendations and your resolution of this problem. You may not be the only person to experience it.
5 Comments
Star Strider
on 3 Dec 2024
I used the installer app. I launched it on the MathWorks site.
It first said that it could not create the destination psth, so I first had to create
sudo /usr/local/MATLAB/R2024b
and then it installed on its own after I clicked on that path. No problems since.
(I’m new to Linux, so still learning it.)
.
Star Strider
on 29 Sep 2025 at 11:29
First, create the path.
Use cd to get to usr/local or /usr/local/bin, (the option I used), then use mkdir to create the additional sub-directories. It may not be necessary to use sudo.
After that, run the installer. Once it has the initial directory path available to it, it should install MATLAB without problems.
That worked for me with R2025a and R2025b.
See Also
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!