InsstallMa​thWorksSer​viceHost: error while loading sharedl libraries

34 views (last 30 days)
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

Answers (1)

Naga
Naga on 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 Comments
Gerard
Gerard on 14 Oct 2025 at 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

Sign in to comment.

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Products


Release

R2024a

Community Treasure Hunt

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

Start Hunting!