I realize this has been asked multiple times, but after reading through the responses, I still cannot get it.
I'm trying to install software called Ovito on RedHat Enterprise 7 and am getting the following errors:
[adam@pc bin]$ sudo ./ovito
[sudo] password for adam:
./ovito: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /home/adam/Downloads/ovito-2.9.0-x86_64/bin/../lib/ovito/libGui.so)
./ovito: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /home/adam/Downloads/ovito-2.9.0-x86_64/bin/../lib/ovito/libCore.so)
./ovito: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /home/adam/Downloads/ovito-2.9.0-x86_64/bin/../lib/ovito/libCore.so)
./ovito: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /home/adam/Downloads/ovito-2.9.0-x86_64/bin/../lib/ovito/libQt5Concurrent.so.5)
./ovito: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /home/adam/Downloads/ovito-2.9.0-x86_64/bin/../lib/ovito/libQt5Widgets.so.5)
./ovito: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /home/adam/Downloads/ovito-2.9.0-x86_64/bin/../lib/ovito/libQt5Gui.so.5)
./ovito: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /home/adam/Downloads/ovito-2.9.0-x86_64/bin/../lib/ovito/libQt5Network.so.5)
./ovito: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /home/adam/Downloads/ovito-2.9.0-x86_64/bin/../lib/ovito/libQt5Core.so.5)
./ovito: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /home/adam/Downloads/ovito-2.9.0-x86_64/bin/../lib/ovito/libQt5Core.so.5)
I installed the newest libstdc++ package, as suggested in the first answer of this post:
Result:
[root@pc bin]# yum -y install libstdc++
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
Package libstdc++-4.8.5-16.el7.x86_64 already installed and latest version
Nothing to do
I tried fixing the simlinks(?), as suggested in most of the StackExchange answers on here. I followed the commands from gnu.org:
https://gcc.gnu.org/onlinedocs/libstdc++/faq.html#faq.how_to_set_paths
and the commands on the first answer in this post:
In the end, I've tried the following:
1
LD_LIBRARY_PATH=/usr/local/lib64/:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
2
export LD_LIBRARY_PATH=${prefix}/lib64:$LD_LIBRARY_PATH
...
and other combinations. What confuses me is that there's a /usr/local/lib64
path and what appears to be a computer/lib64
path.
This post provided scripts for RedHat Enterprise versions 5&6 for someone with a similar issue, but not RedHat/RHEL 7:
an application required libstdc++ for GLIBCXX_3_4_9 library on RHEL 5 64bit system
(not that I yet know how to run the scripts anyway)