LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   glib error (https://www.linuxquestions.org/questions/linux-newbie-8/glib-error-399394/)

manicman 01-04-2006 06:14 AM

glib error
 
ok i have mucked up glib. i recentley thought id update beacuse i was getting errors related to it so i compiled it from source and now when i try to compile something that needs glib i get this error
Code:

checking for GLIB - version >= 2.0.0...
*** 'pkg-config --modversion glib-2.0' returned 2.8.5, but GLIB (2.9.1)
*** 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 is required to build Gaim; please make sure you have the GLib
*** development headers installed. The latest version of GLib is
*** always available at http://www.gtk.org/.

that was from gaim but i get it with other apps as well
im not really sure what to do now can use some advise thanks

bosewicht 01-04-2006 11:58 AM

try reinstalling glib, check your path and install glib-devel for the last error. glib can really be a pain somtimes if something isn't right.

manicman 01-05-2006 06:58 AM

hi thanks ive followed your advice but now im getting a new error i found out that i did have two versions of glib installed by running "find /usr -iname glib-2.0.pc" i got two files
/usr/lib/pkgconfig/glib-2.0.pc
/usr/local/lib/pkgconfig/glib-2.0.pc
i tired to solve this by addeing /usr/local/lib to the /etc/ld.so.conf
this has worked but im now getting new errors when i try and compile gaim i now get
Code:

checking for GTK+ - version >= 2.0.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occurred. This usually means GTK+ is incorrectly installed.
configure: error:
*** GTK+ 2.0 is required to build Gaim; please make sure you have the GTK+
*** development headers installed. The latest version of GTK+ is
*** always available at http://www.gtk.org/.

i have tried to slove this by reinstalling GTK+ from a deb but it doesnt seem to change anything and when i try to compile GTK+ i get this error
Code:

checking for BASE_DEPENDENCIES... configure: error: Package requirements (glib-2.0 >= 2.7.1    atk >= 1.0.1    pango >= 1.9.0    cairo >= 0.9.2) were not met.
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively you may set the BASE_DEPENDENCIES_CFLAGS and BASE_DEPENDENCIES_LIBS environment variables
to avoid the need to call pkg-config.  See the pkg-config man page for
more details.

any ideas on what to do ?


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