LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-27-2005, 02:47 PM   #1
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Rep: Reputation: 30
Question Upgrading glib2


I posted a thread asking about this before, but I realize now I was completely confused about what I was trying to do then, so I want to ask again and try to figure it out now that I realize what's happening.

I'm trying to upgrade gtk, and the first step is glib and atk. I have the default glib-1.2.10 that comes with my version of Slackware, which I am leaving alone since I understand glib-1 and glib-2 can basically be treated as different libraries and run together. I also had the default glib-2.2.3 that comes with Slackware, and I wanted to upgrade to the current glib-2.6.2. I did removepkg glib-2.2.3, downloaded glib-2.6.2, and followed the INSTALL instructions for that. Everything seemed to go well so that now my system has 1.2 and 2.6, and I went to upgrade atk next. I removed the old version, downloaded the new, and received the following error on running ./configure:

Code:
checking for GLIB - version >= 2.5.7... 
*** 'pkg-config --modversion glib-2.0' returned 2.6.2, but GLIB (2.2.3)
*** 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.5.7 or better is required. The latest version of
*** GLIB is always available from ftp://ftp.gtk.org/. 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 did removepkg to get rid of 2.2.3 and did "rm -rf /install-prefix/include/glib.h /install-prefix/include/gmodule.h" which the glib INSTALL file told me to do. I ran ldconfig and configured again, but got the same error. Where is it still seeing 2.2.3, and how do I completely remove it? I should be able to remove 2.2 and upgrade to 2.6 without problems, correct? Thanks.
 
Old 02-27-2005, 03:08 PM   #2
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
where did you install the 2.6 one?
 
Old 02-27-2005, 03:23 PM   #3
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Original Poster
Rep: Reputation: 30
Wherever it defaults to. It started in /usr/local/src/, so I assume /usr/local/ where things seem to end up (and /usr/local/ is what I substituted for /install-prefix/ in the command above). Same with the original versions... everything should be in its default place.
 
Old 02-27-2005, 03:44 PM   #4
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
Well, slack ships with packages installed to /usr ( as all distro's do). The problem is when you install something conflicting ( same major version libraries: glib-2.2 and glib-2.6) in different places. really, you should upgrade the library in /usr and remove everything out of /usr/local. don't forget to make a slack package and install it instead of doing "make install". Before you do anything, check /usr/lib/pkgconfig for glib-2.0.pc - if it's still there, then it was not a clean uninstall.
 
Old 02-27-2005, 04:02 PM   #5
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Original Poster
Rep: Reputation: 30
I'm not sure I understand, it seems like I already did what you're telling me to do. I'm not putting something conflicting in different places because I used removepkg to completely remove 2.2 (wherever it was) before I even untarred 2.6. I used checkinstall to make a slackpkg out of 2.6 before I put it in. I checked /usr/lib/pkgconfig and all that's there now is glib.pc (not glib-2.0.pc). Are you saying I need to remove 2.6 and reinstall it with --prefix=/usr/ to get around it defaulting to /usr/local? Would not doing this cause the error above?
 
Old 02-27-2005, 06:33 PM   #6
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
it should have worked ok. check /usr/lib and make sure no old glibs are in there ( there are several libraries that come with glib). What I do, ( and this is my preference) is if I upgrade something that came with the system, I install it back to where it came from. in a terminal, do "pkg-config --modversion glib-2.0" and see what it returns. if it's not 2.6.2, then something is lingering around on your system somewhere.
 
Old 02-27-2005, 06:42 PM   #7
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Original Poster
Rep: Reputation: 30
pkg-config --modversion glib-2.0 returns 2.6.2 (as the error message above states). It looks like the problem is it's seeing 2.2.3 somewhere despite the fact that I removed the slackpkg. Before I go deleting things that say glib, what exactly should be in the various directories and what shouldn't? If I removed glib-2.2 which was in its default Slack location and installed glib-2.6 in its default location, what should exist and what shouldn't? I don't see why anything would be left around since I used removepkg, but it sounds like this is the next troubleshooting step to take. Thanks again.
 
Old 02-27-2005, 07:57 PM   #8
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
dunno, with removepkg everything should have been removed . as far as what should be there, once you install the package, do:

cat /var/log/packages/glib-2.6.2-i486 ( adjust the name to match)

to see all of the files from the 2.6.2 package.
 
Old 02-27-2005, 08:09 PM   #9
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Original Poster
Rep: Reputation: 30
I looked around and I don't see anything missing or additional. Anyone else have any ideas why I'm getting this error?
 
Old 06-04-2005, 05:11 PM   #10
padudle
LQ Newbie
 
Registered: Jun 2005
Posts: 1

Rep: Reputation: Disabled
Question installing glib-2.6.4 on Linux Fedora Core 3

I'm having exactly the same problem installing glib-2.6.4 on Linux Fedora Core 3.

I need to install the new version of glib so that I can install Pango so that I can install gtk+ so that I can install ethereal. Don't you love linux.

I followed the instruction in INSTALL as follows.

% tar xvfz glib-2.6.4.tar.gz
% cd glib-2.6.4 # change to the toplevel directory
% ./configure # run the `configure' script
% make # build GLIB

[ Become root if necessary ]
% rm -rf /usr/include/glib.h /usr/include/gmodule.h
% make install # install GLIB

When I try to ./configure for pango I get

checking for glib-2.0 >= 2.5.7 gobject-2.0 gmodule-no-export-2.0... Requested 'glib-2.0 >= 2.5.7' but version of GLib is 2.4.8configure: error:
*** Glib 2.5.7 or better is required. The latest version of
*** Glib is always available from ftp://ftp.gtk.org/.

Any advice?
 
Old 06-04-2005, 05:40 PM   #11
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 53
Yeah, when you do ./configure add --prefix=/usr, so you get:
Code:
./configure --prefix=/usr
This will put stuff in /usr/lib instead of /usr/local/lib which is better as it's the default location for libraries under slackware.
 
  


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
having problem in installing glib2-2.6.4-1 mohtasham1983 Linux - General 4 09-19-2005 05:51 PM
problem in installing glib2.0.0? gobi_dgm Linux - Software 1 06-02-2005 09:36 AM
Problems installing Glib2 eggoz Linux - Software 0 06-27-2004 06:28 PM
upgrade to glib2.3 wilsnyder Linux - Software 1 07-02-2003 05:07 PM
Cannot find glib after glib2 install spooge Linux - Newbie 0 06-04-2002 08:35 PM


All times are GMT -5. The time now is 06:35 AM.

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