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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-07-2005, 05:10 AM
|
#1
|
LQ Newbie
Registered: Mar 2005
Location: London
Distribution: Mandrake linux
Posts: 2
Rep:
|
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.
|
|
|
03-07-2005, 06:35 AM
|
#2
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
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.
|
|
|
03-07-2005, 06:37 AM
|
#3
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696
|
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.
|
|
|
03-07-2005, 07:00 AM
|
#4
|
Member
Registered: May 2004
Location: Perth, Australia
Distribution: Red Hat 9
Posts: 35
Rep:
|
When installing libraries, make sure that the path to the library is included in /etc/ld.so.conf, 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
azraelder
|
|
|
03-09-2005, 04:50 AM
|
#5
|
LQ Newbie
Registered: Mar 2005
Location: London
Distribution: Mandrake linux
Posts: 2
Original Poster
Rep:
|
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.
Iain
|
|
|
All times are GMT -5. The time now is 01:54 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|