linuxfonts.narod.ru -> How to: compile and install GTK3 libraries in CentOS 6.6
You don't want to do that unless you know Linux very well. Seriously. Just forget about GTK3 software.
CentOS 7 is now released. It includes GTK3 libraries (systemd as well, sigh).
CentOS 6.6 doesn't contain GTK3 libraries so you cannot install the software that is dependent on them. Here you will find the instructions how to compile and install GTK3 libraries (version 3.12.2 as of 2014-06-26) into /opt in CentOS 6.6.
1. Firstly you'll need to create a chroot environment with certain prerequisites.
2. Secondly you'll need to run the script which will do everything automatically (in chroot). However there are several caveats. libbonobo-2.32.1 will not build, after ./configure you'll have to modify Makefile and remove activation-server from SUBDIRS. Secondly you'll have to build a new version of DBUS but its ./configure must be run without specifying --prefix. It must be built after building GLIB. So this script is not really automatic, I'm just too lazy to make it fully automatic ;-) Yet another caveat is that it's meant for i686. It can be trivially modified to run on x86_64 or any other architecture.
3. You can now build and install software which requires GTK3 using these commands:
export CFLAGS="-I/opt/gtk3/include -L/opt/gtk3/lib"
You can download precompiled binaries from here (if you trust me, of course). They must be unpacked to /opt.
Mind that I removed most locale files to reduce the size of the file. I only left EN/ES/DE/IT/RU locales.
© 2012-2014 Artem S. Tashkinov. This material cannot be reproduced on any other website, you are only allowed to link to this webpage.
If you want to thank the author or if you want this how-to to be finally brought up to date, please, consider the ad at the top of the page. Thank you!blog comments powered by Disqus