LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 09-26-2005, 08:31 AM   #1
slzckboy
Member
 
Registered: May 2005
Location: uk - Reading
Distribution: slack 10.2 kde 3.4.2 kernel 2.6.15
Posts: 452

Rep: Reputation: 30
gtk keeps finding the wrong version of glib


ok when i try and run ./configure for gtk

its saying
Code:
** 'pkg-config --modversion glib-2.0' returned 2.6.6, but GLIB (2.4.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

I have uninstalled 2.4.1 and then ran ldconfig but still no joy.

I've never quite got my head around the library enviroment variables etc so a little advise would be appreicated.
thnks
 
Old 09-27-2005, 01:52 AM   #2
lanmanners
LQ Newbie
 
Registered: Jul 2004
Posts: 26

Rep: Reputation: 15
Looks ilke something wrong with the /usr/lib/pkgconfig/glib-2.0.pc file. Try uninstalling all version of glib and reinstall the latest/one you want.

LM
 
Old 09-27-2005, 04:31 AM   #3
slzckboy
Member
 
Registered: May 2005
Location: uk - Reading
Distribution: slack 10.2 kde 3.4.2 kernel 2.6.15
Posts: 452

Original Poster
Rep: Reputation: 30
hi.

unfortunately I have already tried that . i removed all glib relatedpackages from /var/log/packages ad then went back to my distribution cd and did upgradepkg --install-new which will basically upgrade existing and install any ones that are missing.Still no joy.

I think it maybe an issue with library paths etc,but i'm not sure how to fix it.
 
Old 09-27-2005, 09:13 AM   #4
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,045

Rep: Reputation: 953Reputation: 953Reputation: 953Reputation: 953Reputation: 953Reputation: 953Reputation: 953Reputation: 953
Okay, then you might have to step a little-bit away from "package land" to diagnose this problem.

(1) Type: set | grep LD to see if the environment-variable LD_LIBRARY_PATH is defined. Linux will consult this to see where library-files are.

(2) Type: less /etc/ld.so.conf. This is a list of directories, in addition to /usr/lib, /lib, where libraries can be found.

(3) Type: locate libc.so to see where the files such as the one you seek actually are. (If necessary, as root, run nice /sbin/updatedb & .. notice the "&" .. to launch the locate-database update program in the background to make that information up-to-date. You can log-off root once you've launched it.)

This should be enough information to let you resolve the problem. The way that I'm reading it so-far, there are two possibilities. One is that the wrong version of libc is installed; the other is that the package database is wrong and needs to be rebuilt. I'm basically exploring the first possibility.
 
Old 09-27-2005, 10:48 AM   #5
slzckboy
Member
 
Registered: May 2005
Location: uk - Reading
Distribution: slack 10.2 kde 3.4.2 kernel 2.6.15
Posts: 452

Original Poster
Rep: Reputation: 30
ok


echo LD_LIBRARY_PATH and set | grep LD both return thin air.
(i never new about the set command!!! thats a useful one!!)

cat /etc/ld/so.conf

/usr/local/lib/
usr/X11R6/LIB/
/usr/i486-slackware-linux/lib
/opt/kde/lib
/usr/lib/qt/lib
/usr/lib
/lib

libc.so is in /usr/lib and there is a libc.so.6 in /lib directory.

updatedb is ran nightly from a cron job but I have ran the command anyway a couple o times durig the time of me trying to resolve this.

wot do u think?

cheers

Last edited by slzckboy; 09-27-2005 at 10:51 AM.
 
Old 10-21-2005, 08:26 AM   #6
lanmanners
LQ Newbie
 
Registered: Jul 2004
Posts: 26

Rep: Reputation: 15
slzckboy, Can you check out the files /usr/include/glib (which is a symlink to glib-2.0)

If you have multiple versions, then that could be our problem.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Regarding distribution + kernel version + gcc version + glib version. JCipriani Linux - General 8 04-19-2008 02:54 PM
apps not finding glib corbis_demon Linux - Software 2 11-18-2005 03:32 PM
Freerock uninstall stole GTK looking for up-to-date pango, atk, gtk, glib and xft tgz Oholiab Slackware 8 09-18-2005 11:57 AM
can't install gtk 2.4.4: "Requested 'glib-2.0 >= 2.4.0' but version of GLib is 2.2.3 webazoid Linux - Software 0 07-15-2004 06:07 PM
slackware startx starts the wrong version, i didn't even know i had another version edman007 Linux - Software 3 05-16-2004 07:38 PM


All times are GMT -5. The time now is 01:18 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration