View previous topic :: View next topic |
Author |
Message |
blimpie151 n00b
Joined: 13 Jun 2005 Posts: 9
|
Posted: Mon Jun 20, 2005 3:04 pm Post subject: libstdc++.so.5 not found? |
|
|
Ok, first, I have searched the forums, I have done the things listed in the posts. I'm still stumped.
I am running gentoo amd64 2005.0, with gcc 3.4.3. I have NOT upgraded my gcc, so its not just an 'upgrading' problem like many others have. I did a stage 3 install. I am trying to install PowerPanel-Plus-1.0.3 for our CyberPower UPS systems, when I intall, i get './upssrv: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory.
Ok, here are a few of the things i've tried:
gcc-config 1
fix_libtool_files.sh 3.4.3
I have tried putting symbolic links named 'libstdc++.so.5'in the /lib64, /lib32, /usr/lib32, /usr/lib64, /usr/local/lib64, /usr/local/lib32, and various other places linking to /usr/lib64/gcc/x86_64-pc-linux-gnu/3.4.3/32/libstdc++.so.6, and /usr/lib64/libstdc++-v3/libstdc++.so.5.0.6, none of which have worked. I have reinstalled many times, no such luck.
Anyone got more links for me to try?
So, far, i have done the things listed in these posts:
https://forums.gentoo.org/viewtopic-t-345446.html
https://forums.gentoo.org/viewtopic-t-350902-highlight-libstdc.html
https://forums.gentoo.org/viewtopic-t-345046-highlight-libstdc.html
https://forums.gentoo.org/viewtopic-t-344483-postdays-0-postorder-asc-start-25.html
https://forums.gentoo.org/viewtopic-t-344998.html
None of which have worked for me.....
Thanks in advance,
Blimpie |
|
Back to top |
|
|
rusty Apprentice
Joined: 07 May 2004 Posts: 181 Location: St.Louis
|
Posted: Mon Jun 20, 2005 7:01 pm Post subject: |
|
|
did you try revdep-rebuild? |
|
Back to top |
|
|
Carlo Developer
Joined: 12 Aug 2002 Posts: 3356
|
Posted: Mon Jun 20, 2005 7:39 pm Post subject: |
|
|
libstdc++.so.5 is a gcc 3.3 library. The C++ ABI of gcc 3.3 and 3.4 are not compatible. _________________ Please make sure that you have searched for an answer to a question after reading all the relevant docs. |
|
Back to top |
|
|
blimpie151 n00b
Joined: 13 Jun 2005 Posts: 9
|
Posted: Mon Jun 20, 2005 7:49 pm Post subject: |
|
|
Carlo wrote: | libstdc++.so.5 is a gcc 3.3 library. The C++ ABI of gcc 3.3 and 3.4 are not compatible. |
Ok, so what can I do, do I need to install a legacy gcc just to run this application, or is there some other solution
Thanks again in advance,
Blimpie |
|
Back to top |
|
|
Momo_CCCP Tux's lil' helper
Joined: 26 Oct 2004 Posts: 141
|
Posted: Mon Jun 20, 2005 7:51 pm Post subject: |
|
|
* sys-libs/lib-compat
Latest version available: 1.4
Latest version installed: 1.4
Size of downloaded files: 3,090 kB
Homepage: http://www.gentoo.org/
Description: Compatibility C++ and libc5 and libc6 libraries for programs new and old
License: GPL-2
I think this is what you are looking for. _________________ Momo_CCCP |
|
Back to top |
|
|
blimpie151 n00b
Joined: 13 Jun 2005 Posts: 9
|
Posted: Mon Jun 20, 2005 8:49 pm Post subject: |
|
|
Well, I did an 'emerge lib-compat' and it did install a few things, but i still cannot find the libstdc++.so.5 file.... Is there something else I need to do after emerging this? |
|
Back to top |
|
|
Momo_CCCP Tux's lil' helper
Joined: 26 Oct 2004 Posts: 141
|
Posted: Mon Jun 20, 2005 9:03 pm Post subject: |
|
|
blimpie151 wrote: | Well, I did an 'emerge lib-compat' and it did install a few things, but i still cannot find the libstdc++.so.5 file.... Is there something else I need to do after emerging this? |
Well it should provide the said file I suppose. I did for me when I installed a binary-only game that wouldn't run on my libc (symlinking would lead to a segfault). This somehow fixed my problem. Maybe someone more experimented could help you ? _________________ Momo_CCCP |
|
Back to top |
|
|
Rafal_Glazar Apprentice
Joined: 10 Jul 2004 Posts: 167 Location: Rzeszow, Poland
|
Posted: Mon Jun 20, 2005 11:09 pm Post subject: |
|
|
You need to emerge libstdc++-v3 package. _________________ "All I ask for is choice. I want to be able to go into any store you can buy a computer in and say, "I want ______ OS on this computer." Is that too much to ask? We can't always be looking out Windows. We also need to get work done." - Bill Olson |
|
Back to top |
|
|
blimpie151 n00b
Joined: 13 Jun 2005 Posts: 9
|
Posted: Tue Jun 21, 2005 3:59 pm Post subject: |
|
|
Ok, I actually already had a 'libstdc++-v3' folder located in /usr/lib
But, I did as you said, and emerged it anyway, just for kicks. It went out and grabbed gcc v3.3.4 and installed it, and created a symbolic link from /usr/lib64/libstdc++-v3/libstdc++.so.5.0.6 to /lib/libstdc++.so.5
Still nothing. HOWEVER, I did create a symbolic link from /usr/lib64/gcc/x86_64-pc-linux-gnu/3.4.3/32/libstdc++.so.6.0.3 to /lib/libstdc++.so.5 and heres what i get now when i try to install and run the PowerPanel program:
"./upssrv: /lib/libstdc++.so.5: version 'CXXABI_1.2' not found (required by ./upssrv)"
"./upssrv: /lib/libstdc++.so.5: version 'GLIBCPP_3.2' not found (required by ./upssrv)"
There is no documentation on this program saying what version of gcc it requires, but I'm now assuming from this error that i need gcc v3.2 instead of gcc v3.4.3?
How would i go about installing a legacy gcc, on a 64bit system, and still be able to use the 64bit gcc? |
|
Back to top |
|
|
blimpie151 n00b
Joined: 13 Jun 2005 Posts: 9
|
Posted: Wed Jun 22, 2005 8:01 pm Post subject: |
|
|
No one else has any input on what this could be? |
|
Back to top |
|
|
elfo n00b
Joined: 30 Jun 2003 Posts: 12
|
Posted: Thu Jun 23, 2005 3:08 pm Post subject: kick out your symlink! |
|
|
I'm having same problems....
what i did:
1. to have a python that RUNS, and so emerge:
Code: |
cd /usr/lib
ln -sf libstdc++.so.2.9.0 libstdc++.so.5
|
2. install the lib:
Code: |
emerge libstdc++-v3
|
3. kick out the symlink!
Code: |
cd /usr/lib
rm libstdc++.so.5
|
(because this lib is found in the libstdc++-v3 directory!)
4. Now i'm having problems cause i kicked out the old gcc-3.3.4 (and there is no more ebuild for it).. i'm trying with the lib-compat trick. |
|
Back to top |
|
|
delhomme n00b
Joined: 02 Aug 2005 Posts: 3 Location: germany
|
Posted: Tue Aug 02, 2005 1:51 pm Post subject: Having the same problem, did anybody find a solution? |
|
|
I am running exactly the same setup (amd64 and gcc 3.4.3).
One of the program I want to run needs libstdc++.so.5.
Therefore I emerged
- lib-compat
- libstdc++-v3
But the program still does not work . If I use "ldd" on the "troubleshooting" library I got:
Code: |
>ldd bin/server_i486.so
linux-gate.so.1 => (0xffffe000)
libdl.so.2 => /lib32/libdl.so.2 (0x5614b000)
libstdc++.so.5 => not found
libm.so.6 => /lib32/libm.so.6 (0x56193000)
libgcc_s.so.1 => /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/32/libgcc_s.so.1 (0x561b6000)
libc.so.6 => /lib32/libc.so.6 (0x561c0000)
/lib/ld-linux.so.2 (0x56555000)
|
Obviously my problem is the libstdc++.so.5 => not found.
As said previously in the post, I can create as many symlink to the libstdc++.so.5 file from any of the dirs listed in the /etc/ld.so.conf, it remains not found.
And anyway libstdc++.so.5 is properly installed in the /usr/lib64/libstdc++-v3/ dir which is present in the /etc/ld.so.conf file...
Then, if I create a symlink from /usr/lib64/gcc/x86_64-pc-linux-gnu/3.4.3/32/libstdc++.so to /lib/libstdc++.so.5 then my "ldd" check returns :
Code: |
ldd bin/server_i486.so
bin/server_i486.so: /lib/libstdc++.so.5: version `GLIBCPP_3.2' not found (required by bin/server_i486.so)
linux-gate.so.1 => (0xffffe000)
libdl.so.2 => /lib32/libdl.so.2 (0x5614b000)
tier0_i486.so => /lib/tier0_i486.so (0x5614f000)
vstdlib_i486.so => /lib/vstdlib_i486.so (0x5617f000)
libstdc++.so.5 => /lib/libstdc++.so.5 (0x56193000)
libm.so.6 => /lib32/libm.so.6 (0x56261000)
libgcc_s.so.1 => /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/32/libgcc_s.so.1 (0x56284000)
libc.so.6 => /lib32/libc.so.6 (0x5628e000)
/lib/ld-linux.so.2 (0x56555000)
|
Where i got libstdc++.so.5 => /lib/libstdc++.so.5 (0x56193000) but version `GLIBCPP_3.2' not found...
That was obvious that something like this would happend ... no surprise, but
- Does that mean that somehow gcc3.4.3 is "discarding" libstdc++.so.5 because it has libstdc++.so.6 ??
- Does anybody has an idea on how to resolve this conflict (downgrading to gcc 3.2 is not a solution )?
|
|
Back to top |
|
|
delhomme n00b
Joined: 02 Aug 2005 Posts: 3 Location: germany
|
Posted: Wed Aug 03, 2005 5:45 pm Post subject: |
|
|
Yipee! Fixed it
PROBLEM
The problem was that my server is an amd64.
Therefore, I could not get either the libstdc++-v3 or the lib-compat package working properly. They were produced for "older" architecture.... i.e. : x*86
SOLUTION
Install the emul-linux-x86-compat package which emulate such an older architecture and create the proper link
Code: |
emerge emul-linux-x86-compat
ln -s /emul/linux/x86/usr/lib/libstdc++.so.5 /lib/libstdc++.so.5
|
And now my stuff is working!! |
|
Back to top |
|
|
merced n00b
Joined: 23 Nov 2003 Posts: 24
|
Posted: Fri Nov 18, 2005 4:33 pm Post subject: Alternate fix |
|
|
After reading all of the posts that this post alluded to, I was still unable to solve my issue with libstdc++.so.5 not being found.
I am trying to use a vendor provided software package that the company supports on RedHat only.
But that got me thinking...so I asked the company what version of RedHat they had compiled their binaries on. They said it was based on Fedora Core 3.
I then went and got the rpm from RedHat:
Code: | http://download.fedora.redhat.com/pub/fedora/linux/core/3/x86_64/os/Fedora/RPMS/compat-libstdc++-8-3.3.4.2.x86_64.rpm |
A quick rpm2targz of the file, and then tar -tzf to see where it wanted to be put. It wants /usr/lib64.
I then proceeded to untar it to /usr/lib64, and now my program works!
I'm not sure of the exact differences of the two files, the one from RedHat in /usr/lib64 and the one residing in /emul/linux/x86/usr/lib except that it makes everything work as it should.
I hope this helps someone else experiencing this issue. _________________ Merced |
|
Back to top |
|
|
nellson n00b
Joined: 24 Jun 2004 Posts: 66
|
Posted: Sun Dec 17, 2006 4:13 am Post subject: Ebuild for PowerPanel Plus? |
|
|
I saw this as the only post refering to PowerPanel Plus.
Is anyone aware of an ebuild in progress? I was thinking of trying it for my first shot.. looked like a simple script to stuff into the skel.ebuild...
Nick |
|
Back to top |
|
|
|