InsstallMa​thWorksSer​viceHost: error while loading sharedl libraries

조회 수: 37 (최근 30일)
Gerard
Gerard 2024년 8월 18일
댓글: Gerard 2025년 10월 14일 11:09
Running MATLAB 2024a on Ubuntu24.04 with concurrent network license. Insttallation diretory is local and owned by root. Home directory is NFS v3 mount.
When starting MATLAB the following messages appear in the console. MATLAB appears to function okay.
/home/nmrbox/gweatherby/.MathWorks/ServiceHost/matlab1/_tmp_MSHI_d1af-ba0c-9c00-df21/mci/_tempinstaller_glnxa64/bin/glnxa64/InstallMathWorksServiceHost: error while loading shared libraries: /home/nmrbox/gweatherby/.MathWorks/ServiceHost/matlab1/_tmp_MSHI_d1af-ba0c-9c00-df21/mci/_tempinstaller_glnxa64/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6: file too short

답변 (1개)

Naga
Naga 2024년 8월 19일
Hello Gerard,
This error is typically caused by broken symbolic links within the installer as a result of downloading and zipping the Download Only contents on a Windows machine before moving them over to the Linux machine.
To resolve this error, you may redownload the Download Only installation package on a Linux machine, or you may perform the following solutions:
A) Unzip the Download Only installation files with -X -K flags. For example:
unzip -X -K matlab_R2024a_glnxa64.zip
B) Perform the following workaround:
  1. Locate and extract the matlab_R2024a_glnxa64 file located in the installation package.
  2. In the extracted matlab_R2024a_glnxa64 folder, verify that the install script can now launch the MathWorks Installer, then close the Installer before continuing. (If it can not, you may need to redownload the installation files on a Linux machine.)
  3. Rename the archives folder in the extracted matlab_R2024a_glnxa64 folder to archives_old.
  4. Copy and paste the archives folder from the original download only files into the new extracted folder.
  5. Proceed with the installation
Hope this helps you!
  댓글 수: 2
Gerard
Gerard 2025년 10월 14일 11:09
No Windows machines are involved in the Installation of MATLAB -- we're a Linux only shop.
It appears the Service host is looking for a file that does not exist?
After removing ~/.Mathworks and starting R2025A, we get this:
/home/nmrbox/gweatherby/.MathWorks/ServiceHost/chromium/_tmp_MSHI_ed21-47ae-7e1a-cce0/mci/_tempinstaller_glnxa64/bin/glnxa64/InstallMathWorksServiceHost: error while loading shared libraries: /home/nmrbox/gweatherby/.MathWorks/ServiceHost/chromium/_tmp_MSHI_ed21-47ae-7e1a-cce0/mci/_tempinstaller_glnxa64/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6: file too short
gweatherby@chromium:/usr/software/MATLAB/R2025a/bin$ ls /home/nmrbox/gweatherby/.MathWorks/ServiceHost/chromium/_tmp_MSHI_0177-6235-68a4-cfe3/mci/_tempinstaller_glnxa64/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6
ls: cannot access '/home/nmrbox/gweatherby/.MathWorks/ServiceHost/chromium/_tmp_MSHI_0177-6235-68a4-cfe3/mci/_tempinstaller_glnxa64/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6': No such file or directory

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품


릴리스

R2024a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by