View Full Version : [gnome] Tried to install gtk2.0

January 27th, 2010, 03:02 AM
Hello. I was trying to install gtk2.0 so I could try and learn the api. I installed the dependencies, and after installing cairo, almost all text is turned into boxes. Screenshot shows my problem. Anyone know what's wrong?

January 28th, 2010, 09:43 PM

January 28th, 2010, 10:17 PM
How did you try installing it? And what exactly didi you install?

If you are using Gnome, XFCE or LXDE as your desktop you already have GTK2.0 installed by default. That's what Gnome uses to draw all your applications.

January 28th, 2010, 10:25 PM
I built it from source, and it was the development package. Got it from http://www.gtk.org/download-linux.html, but what I think broke it was Cairo libcairo2-dev from the Ubuntu repositories.

January 28th, 2010, 10:46 PM
then I suppose the problem is the package you cmpiled yourself. Try unsinstalling the stuff you compiled yourself and instead installing the GTK2 development packages from Ubuntu's repositories.

January 28th, 2010, 11:01 PM
How would I do that?

January 29th, 2010, 07:59 AM
The source code probably came with instructions, if not the only way is to track down every file it installed and remove them manually. (by the way, I recommend using checkinstall in the future when compiling stuff, it makes a .deb package from the source and installs that through the package management, making it really easy to uninstall).

After you gothte hard part sorted out, installing GTK2 development packages should be as simple as running "sudo apt-get install libgtk2.0-dev".

January 31st, 2010, 04:39 AM
Thanks, I'll give that a shot.