Error launching in Ubuntu 18.04: Unable to launch the MATLABWindow application
3 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Meet
2024-12-12
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!