compiling help

Associate
Joined
22 Jan 2005
Posts
329
Im pretty new to linux (ubuntu) and have been trying to compile xchat. ive done sudo apt-get install build-essential and also compiled and installed gtk+ and glib and pkg-config which were needed. now im getting the following error:

checking for pkg-config... /usr/local/bin/pkg-config
checking for GLIB - version >= 2.0.3...
*** 'pkg-config --modversion glib-2.0' returned 2.10.3, but GLIB (2.10.2)
*** 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

can anyone help?
 
I think it's because you've compiled glib your self and the old, packaged, version is still installed.

My advice would be to just use apt-get to install xchat rather than compiling it. If you must compile it then you probably should remove the glib you installed (As it's slightly older and is conflicting with the packaged one!).
 
I tried apt-get but it couldnt find the xchat package. I want to compile it so i get a bit of practice. When i try to remove the old glib it says it has to remove a ton of different packages.
 
xchat is in the repositories. try enabling universe and multiverse if you haven't already.
 
The syntax is export VARNAME=PATH, export LD_LIBRARY_PATH=/usr/local/lib for example.

Another way to do it would be make sure that /usr/local/lib (or whatever the correct path for your new glib is) is in /etc/ld.so.conf (before /usr/lib) and run ldconfig. That might fix it.
 
Back
Top Bottom