Why do I get an error `GLIBCXX_3.4.9 not found' when starting the network license manager for R2011b or earlier?

2 views (last 30 days)
If you are experiencing similar issues, with GLIBCXX_3.4.15 or libstdc++.so.6.0 with R2013b Network License Manager, please refer to the following article:
When starting the R2011b network license manager, I get the following error:
MLM: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by MLM)
or I get the error:
MLM: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
or else, when starting the R2011a license manager, I get the following error:
/usr/local/MATLAB/R2011a/etc/glnxa64/keycheck: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by: /usr/local/MATLAB/R2011a/etc/glnxa64/keycheck)
Not starting license server duw to verification errors.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 11 Mar 2019
This enhancement has been incorporated in Release 2012a (R2012a). For previous product releases, read below for any possible workarounds:
This issue is caused by a missing or outdated libstdc++.so.6 as required by the keycheck application (R2011a) or the MLM vendor daemon (R2011b). Both the R2011a keycheck and R2011b MLM vendor daemon require libstdc++.so.6.0.10. Refer to your operating system documentation for information on how to update or install a missing library.
If the necessary version of the library is not available for your Linux distribution it can be copied and installed from the MATLAB installation files following the instructions below:
NOTE: $MATLAB refers to the MATLAB installation location (ex: /usr/local/MATLAB/R2011b)
NOTE: $ARCH refers to the machine architecture (ex: glnx86 for Linux 32-bit or glnxa64 for Linux 64-bit)
If MATLAB is installed in addition to the network license manager, skip directly to step 3.
1. Create a subdirectory within the MATLAB installation folder as shown below:
[root@localhost ~] mkdir -p $MATLAB/sys/os/$ARCH
2. Copy the libstdc++.so.6.0.10 library from the MATLAB installation files (either an installation DVD or the extracted downloaded installer archive) into the newly created directory:
[root@localhost ~] cp /media/MATLAB_R2011b/bin/$ARCH/libstdc++.so.6.0.10 $MATLAB/sys/os/$ARCH
3. Run 'ldconfig' to create symbolic links to the new library and update the dynamic linker cache (please note that this command must be run using an absolute path):
[root@localhost ~] ldconfig $MATLAB/sys/os/$ARCH
4. After verifying this works, you will need to add $MATLAB/sys/os/$ARCH to the /etc/ld.so.conf file, or add the full ldconfig command to your boot script.
For Red Hat Enterprise Linux 5 (RHEL5) the following can be added to your startup script which avoids needing ldconfig and affects only the lmgrd and MLM.
Add to the /etc/init.d/lmgrd startup script:
export LD_PRELOAD=$MATLAB/sys/os/glnxa/libstdc++.so.6

More Answers (0)


Find more on Manage Products in Help Center and File Exchange


No tags entered yet.




Community Treasure Hunt

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

Start Hunting!