LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Problems installing GTK dependencies (https://www.linuxquestions.org/questions/linux-software-2/problems-installing-gtk-dependencies-174049/)

Borje 04-24-2004 10:47 AM

Problems installing GTK dependencies
 
While doing ./configure on one of the dependencies for GTK (ATK) I get an error message that looks like the following:

*** 'pkg-config --modversion glib-2.0' returned 2.4.0, but GLIB (2.2.3)
*** 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/. If GLIB is installed
*** but not in the same location as pkg-config add the location of the file
*** glib-2.0.pc to the environment variable PKG_CONFIG_PATH.

At first pkg-config couldn't find glib so I copied glib-2.0.pc from /usr/local/lib/pkgconfig/ to /usr/lib/pkgconfig/ since I never got the PKG_CONFIG_PATH variable to work proporly.
Now I have only installed 2.4.0 on my set, nothing else. A "find / -name glib-2.0.pc" only returns the files that has to do with 2.4.0 so how can I have 2.2.3 installed? How do I get past this?

jailbait 04-24-2004 08:17 PM

" How do I get past this?"

Here is a thread where DOCta_Gnome worked through the problem. I am not sure which "solution" actually solved the problem. I suspect that the problem was mismatched versions of the glib source and binary .


http://www.linuxquestions.org/questi...hreadid=138249

------------------------------
Steve Stites

Borje 04-25-2004 05:12 PM

Since I'm on a debian set I couldn't follow that thread exactly. I did however have two pkgconfig installed so I removed one and only used the one referred to by the gtk homepage. It didn't solve the problem.
By reading the thread you gave me jailbait I assume the either some headerfiles in the glib-2.4.0 I installed are faulty and describes the glib as being 2.2.3 Another option is that I have glib-2.2.3 installed and that it came when installing some other package but that seems unlikely since the sites I have in my /etc/apt/sources.list doesn't have the glib package (at least I can't find it) and I know I have compiled any glib myself except 2.4.0 so if I have it, it would have come as a depency when installing with the apt-get command.
So, the problem persists and I'm lost on how to fix it.

jailbait 04-25-2004 06:09 PM

"By reading the thread you gave me jailbait I assume the either some headerfiles in the glib-2.4.0 I installed are faulty and describes the glib as being 2.2.3 Another option is that I
have glib-2.2.3 installed."

You might be able to find out what the problem is by reading glib-2.0.pc (this is a text file). On my Fedora this file is at /usr/lib/pkgconfig/glib-2.0.pc. If your Debian file tree is different than mine then look for the directory called pkgconfig and read any file in pkgconfig which starts with "glib".

find /usr -iname "*pkgconfig*"
find /usr -iname "*glib*"

"So, the problem persists and I'm lost on how to fix it."

Once you figure out what version of both the binary and source glib you have installed and what you really need you will probably have to delete the source and install the right one by hand instead of using apt. I don't know how to do that on Debian.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeB....home.page.html

Steve Stites

Borje 04-26-2004 02:27 AM

The glib-2.0.pc was first located in /usr/local/lib/pkgconfig/ The pkg-config couldn't find it then, so I copied the file into /usr/lib/pkgconfig/ and that was when I got this error message about version 2.2.3
I've looked at the glib-2.0.pc files I have (in both directories to be sure) and they belong to version 2.4.0, that's why pkg-config --modversion glib-2.0 returned 2.4.0.
I haven't installed glib with 'apt-get install', at least not to the best of my knowledge. Also I can't seem to find glib with a 'apt-cache search' either so how could I have installed it? I did install it with the source code though so my best guess is still that some file is faulty referring to version 2.2.3 that I don't seem to have.
I havn't done a find /usr -iname glib* yet since I'm not at home right now (how do you type a * with putty, it didn't seem to like a * being typed the usual way). I'll try it soon though and will report if it changes my mind about anything, doubt it though since I have done other finds and have looked a lot through my set.

Borje 04-26-2004 05:43 AM

Nope, didn't find anything that has led me to belive I have version 2.2.3 installed. Where do the system look when it says it found 2.2.3?

Borje 04-26-2004 09:13 AM

Let's say I did have GLIB 2.2.3, how would I go about uninstalling it?

jailbait 04-26-2004 10:39 AM

"Let's say I did have GLIB 2.2.3, how would I go about uninstalling it?"

You have three things to consider. The first is what binary version of glib do you have? You do not want to change the binary version.

The second is what source version of glib do you have? If the source version is different than the binary version then you want to remove the soure of glib and install the source version that matches the binary version.

Third, what version of the source is glib pkgconfig pointing to? ./configure looks at pkgconfig to decide ehich version of the source package to look at. It is possible to have the correct verion of the glib source installed and ./configure to fail when pkgconfig points to the wrong version. The file glib configuration file in pkgconfig is provided by a package called glib2-dev in Fedora. This is the glib 2.x source package. So if you have the correct glib source installed but pkgconfig points to the wrong source version then you should remove the glib source packafge, make sure that the glib pkgconfig file is deleted, and then reinstall the correct glib source package.

"I havn't done a find /usr -iname glib* yet since I'm not at home right now (how do you type a * with putty, it didn't seem to like a * being typed the usual way). "

That is a typo. The line:
find /usr -iname "glib*"
should be:
find /usr -iname "*glib*"
I will edit the mistake.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeB....home.page.html

Steve Stites

comp12345 04-26-2004 12:45 PM

glib 2.4 is in the experimental stage. Debian unstable only includes version 2.2.3, which is probably what you have. Use apt-setup and add the entry
Code:

deb http://ftp.debian.org/debian experimental main
Then install it with
Code:

apt-get -t experimental install libglib2.0-0
The package info is available here:
http://packages.debian.org/experimen...s/libglib2.0-0

You might need other packages based on 2.4.0, you can take a look at them here:
http://packages.debian.org/cgi-bin/s...ll&release=all

Borje 04-26-2004 01:52 PM

I did it the easy way and followed comp12345s tip. It worked. So now I probable have two glib-2.4 installed, one done with apt-get and one with source I compiled locally. Hopefully this won't cause any problems in the future though it very well might...
Thanks for the help provided!


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