Monday, July 12, 2010

Installing GWT on Ubuntu 10.04

When trying to run GWT in hosted mode i got the following,

** Unable to find a usable Mozilla install **
You may specify one in mozilla-hosted-browser.conf, see comments in the file for details.

To overcome this i downloaded mozilla-1.7.13 from the following location,
http://google-web-toolkit.googlecode.com/svn/tools/redist/mozilla/mozilla-1.7.13.tar.gz

I then updated the mozilla-hosted-browser.conf to point to my newly unziped mozilla dist.

When i retried to launch the GWT hosted browser i now got the following,

** Unable to load Mozilla for hosted mode **
java.lang.UnsatisfiedLinkError: /
/mozilla-1.7.13/libxpcom.so: libstdc++.so.5:
cannot open shared object file: No such file or directory

source: http://whatwouldnickdo.com/wordpress/99/unable-to-load-mozilla-for-hosted-mode-gwt-ubuntu-810-linux/

The key to troubleshooting the problem is in the second line, libstdc++.so.5 to be exact. It can’t find this C++ library. Turns out the hosted browser needs libstdc++5, but the version currently installed on my 8.10 system is libstdc++6. So you can either:

I had trouble installing the libstdc++5 using sudo apt-get install libstdc++5


So instead i did the following,
# wget http://ftp.egr.msu.edu/debian/pool/main/g/gcc-3.3/libstdc%2b%2b5_3.3.6-20_i386.deb
# dpkg-deb -x libstdc++5_3.3.6-20_i386.deb libstdc++5
# cp -p libstdc++5/usr/lib/libstdc++.so.5.0.7 /usr/lib
# cp -p libstdc++5/usr/lib/libstdc++.so.5 /usr/lib

This solved the problem!

1 comment:

Tomasz Przybysz said...

Thank you,

That was helpful :)

Search This Blog