Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-07-2005, 05:10 AM   #1
LQ Newbie
Registered: Mar 2005
Location: London
Distribution: Mandrake linux
Posts: 2

Rep: Reputation: 0
GTK+/Glib issue

Right essentially I am having this problem and can anyone help me.
I intstalled glib 1.2.10 after tarring it and running the usual ./configure , make , make install without incident.
Then I tried to install gtk+ 1.2. and run into a glib >= 1.2 required glib 1.2.10 found etc. and it didn't install.
I read from the GTK+ site that I can install glib 1.2 and gtk+ 1.2 as well as higher GTK+ and glib being 2.4 which I wanted to do.
Now here is the problem, I was able to compile and install glib 2.4.0 but when I run "glib-config - - version"
I get a 1.2.10 message and obviously NO GTK...

If I have been able to install glib 2.4.0 without getting a error message then why when I try to find what version of glib I have installed do I only get 1.2.10 where is glib 2.4.0...which should be installed as I got no error message when I ran ./configure etc. with glib 2.4.0
And why does gtk+ 1.2 halt when clearly I have glib 1.2.10 installed say ing that i need glib >= 1.2 ??????
What is going on... I believe I can edit a configuration path but after copying and pasting said message into emacs editor I get nothing ie nothing to edit.
I chasing my own tail.
I relatively new to linux and its ticking me off no end.. can anyone help...

Much appreciated.
Old 03-07-2005, 06:35 AM   #2
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
Apps that are designed for gtk 1 and glib 1 wont work with gtk2 and glib2 because the two are not compatible. They can however both be installed on the same system and coexist fine.
Old 03-07-2005, 06:37 AM   #3
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,632

Rep: Reputation: 208Reputation: 208Reputation: 208
I'm wondering why you're compiling it on your own and not installing from RPMs. But if you're doing it, you probably have a reason.

Where have you installed your glib? Probably somewhere in /usr/local. Do you have /usr/local/bin and /usr/local/lib in PATH (run 'echo $PATH' to check)? Also, see if gtk configure has --with-glib option (I think it has, you get list of options using './configure --help'). If it has it you can run it
./configure --with-glib=/usr/local
or something similar to point to the right glib.
Old 03-07-2005, 07:00 AM   #4
Registered: May 2004
Location: Perth, Australia
Distribution: Red Hat 9
Posts: 35

Rep: Reputation: 15
When installing libraries, make sure that the path to the library is included in /etc/, usually /usr/local/lib for your own compiled libraries

Then as root run the command ldconfig (or /sbin/ldconfig) so linux will be able to find the library. The first few times I installed libraries by compiling the source code I got the same problem of the my target program not being able to find the library even though it compiled properly

Old 03-09-2005, 04:50 AM   #5
LQ Newbie
Registered: Mar 2005
Location: London
Distribution: Mandrake linux
Posts: 2

Original Poster
Rep: Reputation: 0
Just a quick thank you to everyone. To answer maya ..I did use the urpmi update to add principally ethereal to my mandrake distro but I got a corruption on downloads.
However, I have gone thru everything and used ldconfig after each dependency and have compiled ethereal from source.
Learning loads and feeling chuffed with myself and to everyone thanks again.



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
Freerock uninstall stole GTK looking for up-to-date pango, atk, gtk, glib and xft tgz Oholiab Slackware 8 09-18-2005 11:57 AM
GLIB and GTK deucedlt Linux - Newbie 1 01-27-2005 11:43 AM
Glib/gtk what is it ? i really need him ? SlackwareMan Linux - Newbie 6 07-31-2004 05:56 PM
can't install gtk 2.4.4: "Requested 'glib-2.0 >= 2.4.0' but version of GLib is 2.2.3 webazoid Linux - Software 0 07-15-2004 06:07 PM
Gtk/glib tombomb300 Linux - Software 7 10-01-2003 02:30 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:14 AM.

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