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!