LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-29-2007, 11:37 PM   #1
kathmanduite
LQ Newbie
 
Registered: Sep 2007
Distribution: redhat
Posts: 6

Rep: Reputation: 0
two versions of gtk+ in same machine


Hi to all
I am using rhel4 and i want to install xfce. It required gtk+ >=2.6 and glib >=2.6.4. I have gtk+ 1.2 and glib-1.2 installed on my machine. I downloaded gtk+2.10 source.
  1. Can I have two versions of gtk+ on same machine?
  2. Will it create any conflict between softwares using gtk+1.2 and gtk+2.10?
  3. In its site(www.gtk.org) it was mentioned that it would be easier to install the binary rather than compiling from source. Where can i get rpm for gtk+2.10? I searched rpmfind.net but couldn't find it.

Thanks a lot in advance.
 
Old 09-30-2007, 04:08 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
GTK+ and GTK2 are actually separate libraries, there is nothing to clash at all. you shouldn't use source if you're not already comfortable doing do. rpm's for gtk+ should be on your distro cd's already.
 
Old 09-30-2007, 05:29 AM   #3
kathmanduite
LQ Newbie
 
Registered: Sep 2007
Distribution: redhat
Posts: 6

Original Poster
Rep: Reputation: 0
I am new to linux and have no idea about the gtk libraries. I have one confusion. Does gtk+ 2.10 and gtk2 refer to same libraries? I have gtk2-2.4 rpm in my distribution cd.
 
Old 09-30-2007, 05:47 AM   #4
Su-Shee
Member
 
Registered: Sep 2007
Location: Berlin
Distribution: Slackware
Posts: 509

Rep: Reputation: 41
You can have as many Gtks as you like on your system.

I've got one "main" version which is usally the version which comes with my distribution. I rarely touch this version.

Then I've got the latest one all complete with most recent Gtk, Glib, Pango, Cairo, Freetype and so on. Sometimes, there's a third version to play with - add patches for example. Mostly, I put them into /opt and simply add the path to /etc/ld.so.conf and adjust PKG_CONFIG_PATH according to what I need.

It's not that hard to compile all this by hand, BUT:

Gtk-based applications require several additional libraries which themselves require additional stuff. Mostly, they expect a complete environment of freetype, glib, atk, librsvg, poppler, pango, cairo and gtk - so don't be surprised if configure fails and asks for more.

A (very) short overview:

freetype = font handling (TTF stuff and other things),
glib = libc-wrapper,
atk = I forgot the details (some accessibility stuff)
librsvg = SVG handling, used by cairo,
poppler = pdf handling, used by cairo,
pango = text handling beyond just "fonts",
cairo = 2D rendering library and at last
gtk = "all the widgets and the buttons"
 
Old 09-30-2007, 06:05 AM   #5
Su-Shee
Member
 
Registered: Sep 2007
Location: Berlin
Distribution: Slackware
Posts: 509

Rep: Reputation: 41
Quote:
Originally Posted by kathmanduite View Post
I am new to linux and have no idea about the gtk libraries. I have one confusion. Does gtk+ 2.10 and gtk2 refer to same libraries? I have gtk2-2.4 rpm in my distribution cd.
It refers to the same generation of Gtk.

Most distributions contain Gtk (first generation) and Gtk2 (second generation). The first one is just for old stuff and backwards compatibility of some applications. I don't even remember one actually using it.

"Gtk+ 2.10" is just a newer version of your Gtk2-2.4.rpm.

You'll find often just an instruction like "install a recent Gtk." and that would mean Gtk+ 2.12 today. (Most recent stable from 2 weeks ago.)

If Xfce needs at least Gtk 2.10, you're probably fine with Gtk 2.10 but also with 2.12.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gtk+ versions confusion pixellany Programming 4 04-27-2007 10:30 AM
GIMP thinks I have two versions of GTK, but I don't Belboz99 Linux - Software 4 06-19-2005 02:43 PM
glib & gtk old versions? grayFalcon Linux - Newbie 6 04-27-2005 05:23 PM
how do I find my glibc and gtk+ versions? butthead Linux - Software 1 08-09-2004 01:29 PM
compiling gaim/ gtk error (two versions of gtk) webazoid Linux - Software 0 07-06-2004 07:05 PM


All times are GMT -5. The time now is 10:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration