LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
  Search this Thread
Old 10-09-2003, 03:13 AM   #1
ajm36
LQ Newbie
 
Registered: Oct 2003
Posts: 9

Rep: Reputation: 0
glib install problem


I installed glib-2.2.3. Then I tried installing ATK so that I could install GTK. When I used the configure command for ATK I got the following error:

checking for GLIB - version >= 2.0.0...
*** 'pkg-config --modversion glib-2.0' returned 2.2.3, but GLIB (2.0.6)
*** 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.0 or better is required. The latest version of
*** GLIB is always available from. If GLIB is installed
*** but not in the same location as pkg-config add the location of the file
*** glib-2.0.pc to the environment variable PKG_CONFIG_PATH.

I modified both the LD_LIBRARY_PATH and the PKG_CONFIG_PATH to include the directory that contained the .pc files (/usr/local/lib/pkgconfig). I used the export command to do this and when I echoed the variables, the only directory listed was /usr/local/lib/pkgconfig. I also edited the ld.so.conf. file to include this directory and ran ldconfig. I still get the same error while trying to configure ATK. I can not find glib-2.0.6 so that I can remove it. I am not even sure if the .pc files are what is being looked for or if there are configuration files somewhere else. I have seen similar posts for what appears to be the same problem, but I have found no good answers. Please, please help. Thanks.
a.j.
 
Old 10-10-2003, 12:47 AM   #2
ajm36
LQ Newbie
 
Registered: Oct 2003
Posts: 9

Original Poster
Rep: Reputation: 0
I solved the problem. If anyone needs a fix to this problem, post here or e-mail me.
 
Old 10-16-2003, 11:59 AM   #3
kublador
Member
 
Registered: Aug 2002
Location: Philippines
Distribution: Slackware 10
Posts: 325

Rep: Reputation: 30
hi, im experiencing the same problem about glib.. i installed a newer version of glib but when i tried ./configure it says that the old glib is still there.. hmmmm can you help me?
 
Old 10-16-2003, 12:55 PM   #4
ajm36
LQ Newbie
 
Registered: Oct 2003
Posts: 9

Original Poster
Rep: Reputation: 0
RedHat 8 stores some library files in /usr but the default installation is in /usr/local. When you configure and install glib you need to change the prefix. Try using ./configure --prefix=/usr. Then make and install. This should solve your problem with glib. However, I have found that not all libraries point to /usr, so be carefull when installing certain other libraries (like libart_lgpl and freetype--after messing around with these, my X windowing system crashed and I could not figure out how to fix it so I had to re-install). Let me know how this works. If you are still running into problems you may need to delete some old files--post back.
a.j.
 
Old 10-17-2003, 02:26 AM   #5
kublador
Member
 
Registered: Aug 2002
Location: Philippines
Distribution: Slackware 10
Posts: 325

Rep: Reputation: 30
ok.. here it goes
i untarred the latest version of glib..
./configure --prefix=/usr
make
make install

no problems.. then i untarred the latest gaim again..
./configure

still it says that my glib is version 2.0.6 but i installed 2.2.6
hmmmmmmmmmm please help
thanks in advance btw, im using RH8..
do i have to install the latest gtk2 also after i compiled and install the latest glib?
hmmmmm
 
Old 10-17-2003, 03:40 AM   #6
ajm36
LQ Newbie
 
Registered: Oct 2003
Posts: 9

Original Poster
Rep: Reputation: 0
Try this: type locate libglib. You should get a few files (probably around ten or twelve). In the /usr/lib directory you will probably see libglib-2.0.so.0.0.6. You will probably see some other lib glib files in this directory as well. Look for the libglib files NOT in this directory. You "should" see another libglib-2.0.so. file in another directory (probably in /usr/local/lib). I am not sure what the last three numbers after the .so will be, but they will probably clearly indicate your version number (the file may be libglib-2.0.so.0.2.3 or libglib-2.2.so.0.0.3, etc.) Anyway, move the libglib-2.0.so.0.0.6 file into trash (or some other folder) but do not delete. Now, COPY (do not MOVE), the newer libglib file into the /usr/lib directory. See if this works, if not move everything back. Let me know if this works. I am in the process of re-configuring and installing things on my system so I am not positive what the exact nomenclature of the glib-2.2.3's libglib file will be. You may also want to change your LD_LIBRARY_PATH and us ldconfig to reflect any new paths. I have tried changing PKG_CONFIG_PATH before, but this did not help. Let me know how it goes.
a.j.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
xmms install (needs glib>1.22), just installed glib 2.4.8 and still get error message eskiled Linux - Software 2 12-19-2005 09:12 PM
GLib install problem nolimitz Linux - Software 8 08-03-2005 06:24 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
Glib install problem juanb Linux - Software 1 06-30-2004 08:23 AM
Glib install problem ajm36 Linux - Newbie 9 10-23-2003 01:05 PM


All times are GMT -5. The time now is 03:11 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration