LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   glib-config problem (https://www.linuxquestions.org/questions/linux-software-2/glib-config-problem-591154/)

Paxmaster 10-11-2007 03:54 PM

glib-config problem
 
I was ./configure a software and error comes, how could i solve this issue


ecking for GLIB - version >= 1.2.10...
*** 'glib-config --version' returned 1.2.2, but GLIB (1.2.10)
*** was found! If glib-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 glib-config was wrong, set the environment variable GLIB_CONFIG
*** to point to the correct copy of glib-config, and remove the file config.cache
*** before re-running configure

weibullguy 10-12-2007 09:40 AM

Did you follow the instructions provided by configure script?

Cryo2010 10-21-2007 02:02 PM

NOTE: I'm fairly new to Linux myself, so if this is not correct, please correct me.

When glib was last configured someone might have used:

Code:

./configure
when they should have used:

Code:

./configure --prefix=/usr
You can check to see if this is the case by entering:
Code:

sudo find / -name glib-2.0.pc -print
If you see a search result for both (as below):

/usr/lib/pkgconfig/glib-2.0.pc
/usr/local/lib/pkgconfig/glib-2.0.pc

Then you know that is the problem.


If so, configure glib using

Code:

./configure --prefix=/usr/local
It should override the previous version of glib. Then you should be able to configure your other software.

-Cryo2010


All times are GMT -5. The time now is 10:19 PM.