PDA

View Full Version : libstdc++.so.6 problem



baosheng
7th May 2006, 04:47 AM
I have install FC5 on my computer. But today when I try to start Open Office Writer, it doesn't work. The shell says:

[root@silver Desktop]# oowriter
/usr/lib/openoffice.org2.0/program/swriter.bin: /usr/local/lib/libstdc++.so.6: version `CXXABI_1.3.1' not found (required by /usr/lib/openoffice.org2.0/program/libsoffice.so)
/usr/lib/openoffice.org2.0/program/swriter.bin: /usr/local/lib/libstdc++.so.6: version `CXXABI_1.3.1' not found (required by /usr/lib/openoffice.org2.0/program/libsw680li.so)
/usr/lib/openoffice.org2.0/program/swriter.bin: /usr/local/lib/libstdc++.so.6: version `CXXABI_1.3.1' not found (required by /usr/lib/openoffice.org2.0/program/libsvx680li.so)
/usr/lib/openoffice.org2.0/program/swriter.bin: /usr/local/lib/libstdc++.so.6: version `CXXABI_1.3.1' not found (required by /usr/lib/openoffice.org2.0/program/libvcl680li.so)
/usr/lib/openoffice.org2.0/program/swriter.bin: /usr/local/lib/libstdc++.so.6: version `CXXABI_1.3.1' not found (required by /usr/lib/openoffice.org2.0/program/libsvl680li.so)
/usr/lib/openoffice.org2.0/program/swriter.bin: /usr/local/lib/libstdc++.so.6: version `CXXABI_1.3.1' not found (required by /usr/lib/openoffice.org2.0/program/libsvt680li.so)
/usr/lib/openoffice.org2.0/program/swriter.bin: /usr/local/lib/libstdc++.so.6: version `CXXABI_1.3.1' not found (required by /usr/lib/openoffice.org2.0/program/libutl680li.so)
/usr/lib/openoffice.org2.0/program/swriter.bin: /usr/local/lib/libstdc++.so.6: version `CXXABI_1.3.1' not found (required by /usr/lib/openoffice.org2.0/program/libucbhelper3gcc3.so)
/usr/lib/openoffice.org2.0/program/swriter.bin: /usr/local/lib/libstdc++.so.6: version `CXXABI_1.3.1' not found (required by /usr/lib/openoffice.org2.0/program/libtk680li.so)
/usr/lib/openoffice.org2.0/program/swriter.bin: /usr/local/lib/libstdc++.so.6: version `CXXABI_1.3.1' not found (required by /usr/lib/openoffice.org2.0/program/libxo680li.so)
/usr/lib/openoffice.org2.0/program/swriter.bin: /usr/local/lib/libstdc++.so.6: version `CXXABI_1.3.1' not found (required by /usr/lib/openoffice.org2.0/program/libsfx680li.so)
/usr/lib/openoffice.org2.0/program/swriter.bin: /usr/local/lib/libstdc++.so.6: version `CXXABI_1.3.1' not found (required by /usr/lib/openoffice.org2.0/program/libso680li.so)
/usr/lib/openoffice.org2.0/program/swriter.bin: /usr/local/lib/libstdc++.so.6: version `CXXABI_1.3.1' not found (required by /usr/lib/openoffice.org2.0/program/libfwe680li.so)
/usr/lib/openoffice.org2.0/program/swriter.bin: /usr/local/lib/libstdc++.so.6: version `CXXABI_1.3.1' not found (required by /usr/lib/openoffice.org2.0/program/libfwk680li.so)
/usr/lib/openoffice.org2.0/program/swriter.bin: /usr/local/lib/libstdc++.so.6: version `CXXABI_1.3.1' not found (required by /usr/lib/openoffice.org2.0/program/libucpfile1.so)
/usr/lib/openoffice.org2.0/program/swriter.bin: /usr/local/lib/libstdc++.so.6: version `CXXABI_1.3.1' not found (required by /usr/lib/openoffice.org2.0/program/libfwi680li.so)
/usr/lib/openoffice.org2.0/program/swriter.bin: /usr/local/lib/libstdc++.so.6: version `CXXABI_1.3.1' not found (required by /usr/lib/openoffice.org2.0/program/libavmedia680li.so)

At first, I thought it was my libstdc++ library problem. I went to
http://download.fedora.redhat.com/pu...0-4.1.0-3.html
to download libstdc++ and its devel package.
And forcely install them.
But the problem still exists.
And, many software can't run correctly due to this problem.

Can any one help me?

smfinley
7th May 2006, 05:01 AM
"yum provides libstdc++.so.6" reveals libstdc++ as libstdc++.so.6's source. Do a "yum info libstdc++" as root to see if you have it. If not do a "yum install libstdc++" as root to get libstdc++.

baosheng
7th May 2006, 05:49 AM
the result is following. But the problem still exists.
[root@silver ~]# yum info libstdc++
Loading "installonlyn" plugin
Setting up repositories
core [1/4]
updates [2/4]
freshrpms [3/4]
extras [4/4]
Reading repository metadata in from local files
Installed Packages
Name : libstdc++
Arch : i386
Version: 4.1.0
Release: 3
Size : 916 k
Repo : installed
Summary: GNU Standard C++ Library

Description:
The libstdc++ package contains a rewritten standard compliant GCC Standard
C++ Library.

baosheng
7th May 2006, 02:00 PM
I know what is the problem is. I installed gcc-3.4.4 from source code without specify the place to install. And libstdc++.so.6 provided by gcc-3.4.4 was installed into /usr/local/lib which will lead the system to use it. After I removed the gcc-3.4.4 provided libraries. It is ok.

contacttoravi
3rd May 2008, 02:12 PM
I solved this problem by

step 1) reinstall libstdc++.6
step 2) ln -s /usr/lib/libstdc++.so.6 /usr/local/lib/libstdc++.so.6