Click to See Complete Forum and Search --> : help installing glib & gtk
RedMap
08-07-2003, 02:12 PM
I'm using mandrake 9.1 & I'm having problems installing glib (glib-2.2.1) and then gtk (gtk+-2.2.1).
I install glib it gets several warnings when compiling but seems to be no errors. When I install anything that needs glib, like gtk, then it complains that I dont have it.
you probably need to use:
./configure --prefix=<whatver the prefix is for your distro>
so that it gets installed to the correct place; each distro has slightly different places where they install things.
with gentoo the prefix = /usr
i dunno what it is for your distro.
RedMap
08-07-2003, 02:43 PM
Ah!
that makes sense. When I had Red Hat 7.2, I never ever used the prefix and everything always worked.
So how do I find out which is the correct prefix for Mandrake 9.1? glib defaults to /usr/local but that doesn't seem to work.
try the mandrake web site or (hopefully) a Mandrake user will come visit your thread. :)
RedMap
08-07-2003, 02:59 PM
If I used an rpm instead of source would it help? But anyhow, where could I get a rpm from? I've searched everywhere.
The Mandrake site seems to be seriously lacking any information on 'glib' or related stuff. I'm out of ideas on what to search for. :(
Any Mandrake users out there?
bjornredemption
08-07-2003, 03:45 PM
If you installed from source glib will probably be in /usr/local/lib - most distro's dont add that into the search path so you'll have to add that manually.
Or you could try freshrpms.net they should have Mandrake specific rom's
DSwain
08-07-2003, 05:07 PM
Let me tell you, i'm an avid mandrake user myself (maybe because source based distros/debian don't like me.) but anyway i'm in the same place. The strange thing was i installed from the source (GLib 2.2.0) and no errors, but yet none of the software i try to install can find it.... is there a way we can command it to look for glib in the dir it was installed in? Also- RPM based things probably won't help. They usually don't, and just give you many more dependancys than you'll ever want.
RedMap
08-08-2003, 01:08 PM
DSwain, you're right! when installing from source, I can now install ok but nothing else can find it at all.
Dont know enough about linux to know why this problem is so.
Anyway, I've found something remarkable - excuse me I'm a noob - all the glib rpms and a huge load of other stuff is on the install CDs I got off Linux Format. If only I'd have known sooner! And as they are all rpms (i586) then everything else can find them. :)
Advice for others - look on your install disks first, they contain huge number of libs.
would still like to know why nothing could find the compiled glib source though.
DSwain
08-08-2003, 01:26 PM
I don't know, i never was very good at installing from source, but i just changed my OS to Slackware 9, and i actually got a tarball installed! Incredible isn't it? hah, it was for me. But yeah, usually you can find a good amount of files on the disks, especially with the install software mandrake uses, it's pretty easy. My mistake, i forgot about that.
carbon-12
08-08-2003, 02:00 PM
a
RedMap
08-08-2003, 02:53 PM
was used to my red hat 7.2 free with a book, it had not much extra rpms on it, but when I could always compile from source, other progs could always find the compiled libs etc.
Chose Mandrake 9.1 because RH9 kept catastrophically crashing on me like crazy.
I'm very impressed with Mandrake 9.1. The question is will the next version of Windows after XP be able to catch up to it? I wait and see.
sploo22
08-08-2003, 03:02 PM
When did you encounter the error about not finding the libraries? When installing applications, or when running them?
If it's the former, you could just tell RPM to ignore dependencies and install it anyway. For this to work, though, you'd probably have to use "--prefix=/usr".
RedMap
08-08-2003, 03:23 PM
when installing - compile for example gtk, it complained no glib found (I think at ./configure time?).
But even if you could make it ignore this, it would still not be able to find the libs right?
I installed rpms ok now instead of compiling. But when you compile does it matter that using 'rpm -qa' the lib wont be listed? Not sure how it queries the system.
unbound18
08-10-2003, 04:59 PM
I'm also running into problems installing gtk+. First of all, it told me that I needed install like glib-2.0 in order to install the gtk+. So I went and downloaded glib-2.0.7 and installed it. I'm still getting the same problem when I try to install gtk+ though. It says:
configure: error: library requirements (glib-2.0 >+ 2.1.4 atk >= 1.0.1 pango >= 1.0.1) not met; consider adusting the PKG_CONFIG_PATH snvironment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
I just installed everything as a default so I don't know what exactly to do.
They are all in /usr/local/lib. I think that is the default for Mandrake 9.1.
Ideas??
RedMap
08-11-2003, 02:18 PM
I couldn't figure it out by trying to compile it myself, but I discovered the rpm's were on the Mandrake 9.1 install disk.
So I used the 'Mandrake Control Center' --> 'Software Management' --> 'RpmDrake helps you install software packages' icon (which asks for root password), then did a search for glib.
I installed the 'glib' rpm, and I cant remember if there was a 'glib-devel' rpm there too. If there was then I installed that too.
This is whats on my machine if I search glib (ignoring glibc) in the Mandrake Control Center:
glib-gettextize
libglib1.2-devel
libglib2.0_0-devel
hope this helps!
Hello,
Im just going to post my problem / question here, since the thread is almost what I need to ask anyway.
If you must tell me to search, please tell me what to search for, im out of ideas on how to fix this.
I installed:
libpng-1.2.5.tar.gz
pango-1.2.3.tar.gz
tiff-v3.5.7.tar.gz
atk-1.2.4.tar.gz
jpegsrc.v6b.tar.gz
pkgconfig-0.14.0.tar.gz
glib-2.2.2.tar.gz
gtk+-2.2.2.tar.gz
I did not install them in that order, but I installed them in the order that the gtk.org manual told me to. That was a week ago I think.
Now, they all installed fine, no errors. But linux isnt using them, its still using the default gtk that redhat 9 installed. I know this because:
pkg-config --modversion gtk
1.4.1.2
and
gtk-config --cflags --libs
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include
-L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm
I tried posting this once before, but no one responded. And since then the problem has changed somewhat.
I have the gtk2.0 installed on my box I think, I found it. The 1.4 is installed and the 2.0 (from redhat 9 install, but it wont use the 2.0.
I did the PKG_EXPORT_PATH as reffering to:
http://www.justlinux.com/forum/showthread.php?s=&threadid=107774
Then ran the ldconfig.
Still using the 1.4. I need it to use 2.0 that rh9 installed or the 2.2 that I installed so I can install a program.
Also, I read that I may need to install the devel packages to gtk & glib, they are already installed with the v1.4 that is on my pc now. But I couldnt find the gtk2.2 and glib2.2 devel packages, not the sources anyway.
What else to say.. hmm, the program im trying to intsall is giFT, and I need gtk2.0+ before I can intsall the client for it.
Can someone please help?
e4
RedMap
08-12-2003, 12:36 PM
hmmm... thats strange I just did:
# pkg-config --modversion gtk
giving me:
Package gtk was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk' found
and also I did:
# rpm -qa | grep gtk
giving me:
gtkdialogs-2.0-3mdk
libgtk+1.2-devel-1.2.10-32mdk
libgtk+-x11-2.0_0-2.2.1-2mdk
libgtk+2.0_0-2.2.1-2mdk
libgtkmm1.2-1.2.10-1mdk
libexif-gtk4-0.3.3-2mdk
libgtkhtml2_0-2.2.0-2mdk
gtk-themes-1.0-9mdk
libgtk+mdk0.1_6-0.1.6-14mdk
gtk-engines2-2.2.0-2mdk
nautilus-gtkhtml-0.3.2-5mdk
gtk-engines-0.12-7mdk
libgtk+2.0_0-devel-2.2.1-2mdk
ruby-gtk-0.28-1mdk
libgtk+1.2-1.2.10-32mdk
gtk+2.0-2.2.1-2mdk
libgtkhtml1.1_3-1.1.8-2mdk
gtkam-0.1.10-2mdk
gtk+mdk-0.1.6-14mdk
libgtkxmhtml1-1.4.2-3mdk
gtkhtml-1.1.8-2mdk
libgtk+mdk0.1_6-devel-0.1.6-14mdk
Perhaps just 'pkg-config' is at fault than gtk, but I wouldn't know where to start to figure if it is so.
I thought I was using gtk, I'll go and try something else - I think 'America's Army' uses it, so I'll go and try it.
Originally installed gtk for a xmms plugin, but then lost where I put the plugin. Doh!
Hello,
Could someone pls help? to my above post
I still need help fixing this
anyone?
or should I just post a new thread for my problem?
unbound18
08-18-2003, 03:56 PM
I haven't had any luck either. I've kinda resorted to using Windows for my DVDs. Good luck, let me know if you find any help.
RedMap
08-19-2003, 04:37 PM
sorry, extrememly busy doing uni work for my imminent exam. I'll see if my glib / gtk stuff is working shortly! ...errrr, I suppose, in a few weeks I'll report back