Why do I get the error "MLM: error while loading shared libraries: /sys/os/gl​nxa64/libs​tdc++.so.6​: file too short" when trying to start my Network License Manager on a Linux Machine?

33 views (last 30 days)
Why do I get the error "MLM: error while loading shared libraries: /export/licenses/srv/flexlm/cae/matlab/etc/glnxa64/../../sys/os/glnxa64/libstdc++.so.6: file too short" when trying to start my network license manager on a Linux Machine?
This error is showing up inside of my License Manager log.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 26 Feb 2019
You are getting this error because the libstdc++.so.6 file is not linked to the actual library that it is supposed to be a symlink for. This file needs to link to the library to correctly start the MLM on the network license manager.
For different reasons the symlink can sometimes not be created correctly, so to resolve this we need to manually create the symlink.
To create the symlink we need to go to the directory that the file it is referring to is located in, the directory should be:
$MATLAB\sys\os\glnxa64
(Where $MATLAB is the installation directory of MATLAB)
Inside of this folder you should see:
libstdc++.so.6
libstdc++.so.6.0.17 (version number may be different depending on the release of MATLAB)
The libstdc++.so.6.0.17 is the actual library, while the libstdc++.so.6 is currently the empty file that should be the symlink for this library. To resolve the issue run this function inside of your terminal window:
ln -sf libstdc++.so.6.0.17 libstdc++.so.6
This will create a symlink over the empty file.
NOTE: You may want to do this for any of the other libraries in case they had the same issue happen to them as well. IE: libquadmath.so.0 and libgfortran.so.3

More Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!