InsstallMa​thWorksSer​viceHost: error while loading sharedl libraries

37 Ansichten (letzte 30 Tage)
Gerard
Gerard am 18 Aug. 2024
Kommentiert: Gerard am 14 Okt. 2025 um 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

Antworten (1)

Naga
Naga am 19 Aug. 2024
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 Kommentare
Gerard
Gerard am 14 Okt. 2025 um 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

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange

Produkte


Version

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by