Error launching in Ubuntu 18.04: Unable to launch the MATLABWindow application
6 views (last 30 days)
Show older comments
Hello, I'm new to MATLAB and can't seem to be able to launch it (running Ubuntu 18.04). I installed matlab-support (fairly confident I configured it correctly) but starting it from the programs list doesn't seem to do anything and running `matlab` from the command line results in:
terminate called after throwing an instance of 'std::runtime_error'
what(): Unable to launch the MATLABWindow application
I tried the fix listed here but that didn't change anything noticeably. I've also played around with some of the flags printed by `matlab -h` and they also didn't do anything.
0 Comments
Answers (1)
Meet
on 12 Dec 2024 at 8:14
Hi David,
For MATLAB R2021a or later: This error typically occurs as the result of a CEF issue from missing libraries. For example, MATLAB R2023b requires the following libraries on RHEL 8 based Linux distributions and they can be installed with one long command:
yum install alsa-lib.x86_64 cairo.x86_64 cairo-gobject.x86_64 cups-libs.x86_64 gdk-pixbuf2.x86_64 glib2.x86_64 glibc.x86_64 glibc-langpack-en.x86_64 glibc-locale-source.x86_64 gtk3.x86_64 libICE.x86_64 libXcomposite.x86_64 libXcursor.x86_64 libXdamage.x86_64 libXfixes.x86_64 libXft.x86_64 libXinerama.x86_64 libXrandr.x86_64 libXt.x86_64 libXtst.x86_64 libXxf86vm.x86_64 libcap.x86_64 libdrm.x86_64 libglvnd-glx.x86_64 libsndfile.x86_64 libtool-ltdl.x86_64 libuuid.x86_64 libwayland-client.x86_64 make.x86_64 mesa-libgbm.x86_64 net-tools.x86_64 nspr.x86_64 nss.x86_64 nss-util.x86_64 pam.x86_64 pango.x86_64 procps-ng.x86_64 sudo.x86_64 unzip.x86_64 which.x86_64 zlib.x86_64
Try installing all of the libraries which MATLAB requires on your Linux distribution and then retry running the installer.
The above command can be inferred from the "base-dependencies.txt" file from this page:matlab-deps R2023b ubi8: base-dependencies.txt
For more information, see: What dependencies are needed to install MATLAB on "minimal" or "core" Linux installations https://www.mathworks.com/matlabcentral/answers/2018166
For MATLAB R2020b or earlier: This error message is typically caused by a library dependency error. To resolve this issue, please remove the following libraries from the MathWorks Installation files, specifically the /bin/glnxa64 directory:
libcrypto.so.1.1 libssl.so.1.1
I hope its resolves the error!!
0 Comments
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!