If you downloaded Eclipse TPTP and installed it in your Ubuntu (in my case tptp 4.5.1 and Ubuntu 8.04) and every time you try to profile an application you get:
IWAT0435E An error occurred when connecting to the host
The reason for this error is detailed in this bug (https://bugs.eclipse.org/bugs/show_bug.cgi?id=240677): the Agent Controller is linked against an old version of libstdc. When you activate the logs you can see the following error:
ACServer: error while loading shared libraries: libstdc++-libc6.2-2.so.3:
cannot open shared object file: No such file or directory
So let's fix this.
Download the libstdc debian package (copy and paste this carefully, the entire URL doesn't appear in the screen):
wget http://ftp.us.debian.org/debian/pool/main/g/gcc-2.95/libstdc++2.10-glibc2.2_2.95.4-27_i386.deb
Then install the package:
sudo dpkg --install libstdc++2.10-glibc2.2_2.95.4-22_i386.deb
Or if you are running on 64 bits:
sudo dpkg --force-architecture --install libstdc++2.10-glibc2.2_2.95.4-22_i386.deb
Try again and you should be able to profile your applications without any problem.
Subscribe to:
Post Comments (Atom)
15 comments:
Hi, just a quick thank you for sharing this - it had me up and running nice and quickly! Just one thing - the deb has changed since then as at 11th Nov it's libstdc++2.10-glibc2.2_2.95.4-27_i386.deb, but this could change again...
Thanks for the info, For RHEL4 the package is compat-libstdc++-296.
yum install compat-libstdc++-296
does the trick.
I have Ubuntu 8.04 and I have the same problem. I did exactly what you described but the install command does not work (I think you did not update the 22 to 27 in your blog post). So I changed this to 27 and then it installed the package. I restarted my system but still I get the same error :-(
Thanks! Worked perfectly. You saved my day.
Thanks for taking to blog this fix. Saved me from pulling my hair out again.
Thanks!
This really helped me!
Than you, works perfectly on Ubuntu hardy.
thanks!
Hi,
I am using Fedora 11 (2.6.29.6-217.2.8.fc11.x86_64), and Eclipse 3.5 (J2EE).
I installed with:
yum install compat-libstdc++-296
and it works great now.
Saved my day! Thanks a lot!
great thanks :)
works "out of the box" (your solution, not TPTP;)
I suggest everyone who's getting this error take a look at the log. I followed the instructions on the post and it did not work for me. Inspecting the log i noticed that the library missing for me was in fact libstdc++.so.5. A quick "apt-get install libstdc++5" did the trick for me.
How/where do I run
sudo dpkg --install libstdc++2.10-glibc2.2_2.95.4-22_i386.deb
command?
Open a terminal (Applications -> Accessories -> Terminal) then type it in there. It will prompt you for your password, then should install it
Thanks!! Do you know how can I resolve the same problem in Eclipse 3.5.2??
Hi I'm using Windows XP (x86) and I'm also getting same error in Eclipse 3.6. Could you please tell the solution for this?
Post a Comment