标题: libstdc++.so.5: cannot open shared object file: [打印本页] 作者: flyboy$ 时间: 2006-02-17 01:13 标题: libstdc++.so.5: cannot open shared object file:
libstdc++.so.5: cannot open shared object file: No such file or directory Problem: An application is running on Linux 7.x which uses gcc 3.2.x. It gets one of the following error messages:
libstdc++.so.5: cannot open shared object file: No such file or directory
libgcc_s.so.1: cannot open shared object file: No such file or directory Explanation: libstdc++.so.5 (the library for gcc 3.2.x) is installed in /usr/local/lib However, the system will only seach /usr/lib (where the 2.95.0 and other older libraries are stored). Solution: Create symbolic links to make the libraries appear in the old folder: ln -s /usr/local/lib/libstdc++.so.5 /usr/lib/libstdc++.so.5
ln -s /usr/local/lib/libgcc_s.so.1 /usr/lib/libgcc_s.so.1