LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   GLIB install problems (https://www.linuxquestions.org/questions/linux-software-2/glib-install-problems-42357/)

-=SnakeyeS=- 01-21-2003 09:08 PM

GLIB install problems
 
I'm having trouble installing Glib. I just installed MDK 9 yesterday.

So far I have successfully installed Pango and PkgConfig. I have supposedly installed GLib 2.2.0, but it doesn't seem to be recognized.

My problem begins with the fact that I am trying to install Gaim. The dependencies go like this:



Gaim
|
GTK (Gimp Toolkit)
|
Pango, Atk, Glib

Glib
|
PkgConfig

PkgConfig came with Glib ~1.6
When installing Atk, I get an error as follows:

checking for GLIB - version >= 2.0.0...
*** 'pkg-config --modversion glib-2.0' returned 2.2.0, but GLIB (2.0.6)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GLib. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files
no
configure: error:
*** GLIB 2.0.0 or better is required. The latest version of
*** GLIB is always available from ftp://ftp.gtk.org/.
[root@localhost atk-1.2.0]#


Basically my question is, what are environment variables, and how do I change them?

oulevon 01-22-2003 12:15 AM

Have you run ldconfig?

I believe you need to run the ldconfig command as su in order to update things.

-=SnakeyeS=- 01-22-2003 05:46 PM

no i havent
how do I do it?
just ldconfig in root console?

oulevon 01-22-2003 05:48 PM

Yeah just run it from the shell. I think you need to be root.

agkrueger 01-30-2003 10:08 AM

I have the exact same problem tryin to install all of the packages required to install the latest release of nautilus...i've probably searched rpmnet and installed 5 or 6 other dependant packages and now when i get to installing atk-1.2.0 I am getting the exact same error message.

i've run ldconfig a couple times as root (not su or su-, actually logged in as root) and I can't seem to figure this one out.

i'm well on my way to converting off of windows, but man...i've never had this much trouble with .dlls :D

any help is appreciated, if i figure it out i will post what I did. TIA

agkrueger 01-30-2003 10:41 AM

ok, i got around this one with a little help from a couple of other postings:

I ran this command: (from post: http://www.linuxquestions.org/questi...=LDLIBRARYPATH)

find /usr -name lib >> /etc/ld.so.conf&
/sbin/ldconfig

-which seemed to add a ton of other paths to the /etc/ld.so.conf file.

I then ran 'ldconfig' and reran the ./configure, which resulted in the same error. So i went looking in /usr/lib. I found a file named, libglib-2.0.so.0.0.6 and renamed (for backup) it then reran 'ldconfig' and again the ./configure.

This time it got past the original complaint and gave me another, which I expected...on to the next one.

I have since gone back and renamed the file back to the original name.

So, in closing...I'm not sure if this was the proper way of doing this but it seems to have worked for me thusfar...YMMV yadda x3

btw - running RH8.0 (2.4.18-19.8.0)

agkrueger 01-30-2003 03:00 PM

not to hijack your thread, but the problems just keep coming...

running RedHat8 (2.4.18-19.8.0)

i now have become stumped. i recently installed gtk+-2.2.0 package, but when trying to do the ./configure for the latest nautilus i get the following...:

------------------------------------------------------
checking for pkg-config... /usr/local/bin/pkg-config
checking for gconf-2.0 >= 1.1.11 gdk-pixbuf-2.0 >= 2 gthread-2.0 >= 2 glib-2.0 >= 2 gnome-vfs-2.0 >= 1.9 gtk+-2.0 >= 2.1.0 gail >=
0.16 libart-2.0 >= 2.3.8 libgnome-2.0 >= 2.0 libgnomeui-2.0 >= 2.0
libxml-2.0 >= 2.4.7 libglade-2.0 >= 2.0.0... Requested 'gtk+-2.0 >= 2.1.0' but version of GTK+ is 2.0.6

configure: error: Library requirements ( gconf-2.0 >= 1.1.11 gdk-pixbuf-2.0 >= 2 gthread-2.0 >= 2 glib-2.0 >= 2 gnome-vfs-2.0 >= 1.9
gtk+-2.0 >= 2.1.0 gail >= 0.16 libart-2.0 >= 2.3.8 libgnome-2.0 >=
2.0 libgnomeui-2.0 >= 2.0 libxml-2.0 >= 2.4.7 libglade-2.0 >= 2.0.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.

--------------------------------------------------------

when i do #rpm -q gtk+ i get: gtk+-1.2.10-22

but i have just installed gtk+-2.2.0 earlier and done a 'ldconfig' numerous times....

any ideas how to get past this? I am trying to get nautilus-2.2.0.2 to install and have had to install about 10 other packages to get to this point.

*edit: I'm starting to think the problem IS related to my PKG_CONFIG_PATH variable....but I'm not entirely sure what paths are supposed to be in there...? Currently it is reflecting /usr/local/lib/pkgconfig/ -but that doesn't seem right to me...


Any help is greatly appreciated.

alonsoac 04-08-2003 11:55 PM

may this helps
 
This may help some of you. I was trying to install gaim and got errors with the glib version. The problem is this is an old install of redhat 6 which I then upgraded to 7.3 and I had some very old glib libs lying around.

You need to delete /usr/lib/libglib.* and /usr/local/lib/libglib.* any file named libglib-1.2 don't delete it!
then I did ldconfig then make install on the glib source dir and glib worked ok. I had the same problem then with gtk+, you need to delete /usr/lib/libgdk.* same in /usr/local/lib and also /usr/lib/libgtk.* same in usr/local/lib.
If you find any libgdk-x11-2* or libgtk-x11-2* delete those also.
then ldconfig then make install on gtk+.

That should do it.

I also added /usr/lib /etc/ld.so.conf but that may not be necessary.

Good luck.


All times are GMT -5. The time now is 05:16 AM.