Tuesday, October 28, 2008

Profiling With Eclipse TPTP Problem - IWAT0435E - Ubuntu

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.

15 comments:

Crispin said...

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...

Derrick J. Wippler said...

Thanks for the info, For RHEL4 the package is compat-libstdc++-296.

yum install compat-libstdc++-296

does the trick.

Alex said...

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 :-(

Andi said...

Thanks! Worked perfectly. You saved my day.

Chuck Fouts said...

Thanks for taking to blog this fix. Saved me from pulling my hair out again.

Pasi said...

Thanks!
This really helped me!

FloW said...

Than you, works perfectly on Ubuntu hardy.

wolfer said...

thanks!

Miroslav Beranič ml. said...

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!

KP said...

great thanks :)
works "out of the box" (your solution, not TPTP;)

Tatá said...

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.

surbhi said...

How/where do I run
sudo dpkg --install libstdc++2.10-glibc2.2_2.95.4-22_i386.deb
command?

Crispibits said...

Open a terminal (Applications -> Accessories -> Terminal) then type it in there. It will prompt you for your password, then should install it

surbhi said...

Thanks!! Do you know how can I resolve the same problem in Eclipse 3.5.2??

Debu @ Eclipse Boss © said...

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?