Linux - SoftwareThis 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.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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:
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
*** 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.
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.
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.
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?
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.
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.
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/.