LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   failed to detect Glib? (https://www.linuxquestions.org/questions/linux-newbie-8/failed-to-detect-glib-721884/)

planetplosion 04-26-2009 09:32 PM

failed to detect Glib?
 
error: Failed to detect or find glib-2.0 >= 2.6.4 gthread-2.0 (consider adjusting $PKG_CONFIG_PATH)

I got this error when trying to configure BEAST.... I obviously have Glib somewhere. How might I adjust PKG_CONFIG?
I'm running UBUNTU

bathory 04-27-2009 02:22 AM

I guess that you have glib-2.0, but its version is lower that 2.6.4, that's why ./configure complains. Usually these libraries are installed in /usr/lib and you can run
Code:

pkg-config --modversion glib-2.0
to find the vesrion.
Use your distro's package manager to see if it's installed and to upgrade to the latest version.
If you have installed the library yourself in a non standard place you can adjust the PKG_CONFIG_PATH like this:
Code:

export PKG_CONFIG_PATH=/path/to/non-standard/libs:$PKG_CONFIG_PATH
Regards

knudfl 04-27-2009 09:33 AM

Still using Ubuntu 8.10 ?

Install package 'libglib2.0-dev' , if you want to
compile with "glib2.0" :

sudo apt-get install libglib2.0-dev
.....


All times are GMT -5. The time now is 06:51 PM.