Any suggestions on how to avoid problems with other commands/apps finding libstdc++.so.6 after installing MCR (deploying standalone code)?
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 C Shared Library Integration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!