A.5. libstdc++ Library Mismatch

The Ansys Forte Linux setup scripts attempt to use the latest version of libstdc++ from either the Ansys installation or from the version installed on the system. In some rare cases there may be a mismatch of the installed versions of the libstdc++ libraries between the 32bit and 64bit libraries that are installed on a Linux host. This mismatch prevents the setup scripts from configuring your runtime environment correctly. This issue will cause an error message similar to the one below to be issued during Forte runs:

ERROR: ld.so: object 'libstdc++.so.6.0.29' from LD_PRELOAD cannot be preloaded 
(cannot open shared object file): ignored. 

You can verify there is a mismatch by checking your system's libstdc++ files:

> ls -l /usr/lib/libstdc++* /usr/lib64/libstdc++* 
lrwxrwxrwx 1 root root 19 Oct 29 11:57 /usr/lib/libstdc++.so.6 -> libstdc++.so.6.0.29 
-rwxr-xr-x 1 root root 2185332 Oct 29 12:02 /usr/lib/libstdc++.so.6.0.29 
lrwxrwxrwx 1 root root 19 Oct 1 2020 /usr/lib64/libstdc++.so.6 -> libstdc++.so.6.0.28 
-rwxr-xr-x 1 root root 1928240 Oct 1 2020 /usr/lib64/libstdc++.so.6.0.28 

When this error occurs, you must patch or update the libstdc++ rpm packages to the same version on your host to resolve the problem.