Any suggestions on how to avoid problems with other commands/apps finding libstdc++.so.6 after installing MCR (deploying standalone code)?
1 view (last 30 days)
Show older comments
This must be a problem for others as well . . .
After installing MCR (MATLAB_Compiler_Runtime) and editing LD_LIBRARY_PATH (in .bashrc) as indicated by the installation instructions (and run script), some commands/applications (e.g, aptitude, paraview) could not find libstdc++.so.6. My interpretation is that those commands don't like the version of the library in LD_LIBRARY_PATH.
There was no value for LD_LIBRARY_PATH before I edited .bashrc.
I added /usr/lib/x86_64-linux-gnu to the path (as the first directory), and it cured the problem. (at least for the commands/apps I have used)
So, I conclude that the directories entered into LD_LIBRARY_PATH are searched before others (those set up using /etc/ld.so.conf.d/*.conf are the only ones I know about . . .)
Is there a way to have directories in LD_LIBRARY_PATH searched last? Or, is there another way of looking at the problem?
Thanks, Tim
0 Comments
Answers (0)
See Also
Categories
Find more on C Shared Library Integration in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!