[Last Call] Learn how to a build a cloud-first strategyRegister Now


How do you uninstall a previous version of GLIB?

Posted on 2009-02-11
Medium Priority
Last Modified: 2013-12-06
I'm trying to install syslog-ng and I've run into a problem when compiling the source. Here is the message that I receive:

checking for GLIB - version >= 2.10.1...
*** 'pkg-config --modversion glib-2.0' returned 2.18.4, but GLIB (2.6.4)
*** 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
configure: error: Cannot find GLIB version >= 2.10.1: is pkg-config in path?

How do I uninstall the previous version of GLIB?
Question by:Abarros22
  • 4
  • 3
LVL 23

Expert Comment

by:Maciej S
ID: 23618185
May I ask, why don't use package (for both - syslog-ng and glib)?
If you want to install syslog-ng, you should probably run: yum install syslog-ng and I think this will be all you need.
LVL 16

Expert Comment

ID: 23622327
My suggestion (I had in the past similar problems of slotted versions of libs) is to remove all the instances of glib and the reinstall the lastest

Author Comment

ID: 23623848

Thank you for your comments. However, oklit, I tried doing a yum install and I received the following message:
Setting up Install Process
Setting up repositories
Cannot find a valid baseurl for repo: updates-released

Also, ai_ja_nai, if I uninstall the first original version I receive the following messages:


[root@pptp1 syslog-ng-3.0.1]# rpm -e glib-1.2.10-16
error: Failed dependencies:
        libglib-1.2.so.0 is needed by (installed) ORBit-0.5.17-15.i386
        libglib-1.2.so.0 is needed by (installed) oaf-0.6.10-12.i386
        libglib-1.2.so.0 is needed by (installed) g-wrap-1.3.4-8.i386
        libglib-1.2.so.0 is needed by (installed) gtk+-1.2.10-39.i386
        libglib-1.2.so.0 is needed by (installed) GConf-1.0.9-16.i386
        libglib-1.2.so.0 is needed by (installed) libgal23-0.24-6.i386
        libglib-1.2.so.0 is needed by (installed) gdk-pixbuf-0.22.0-18.i386
        libglib-1.2.so.0 is needed by (installed) imlib-1.9.13-24.i386
        libglib-1.2.so.0 is needed by (installed) gnome-libs-
        libglib-1.2.so.0 is needed by (installed) gdk-pixbuf-gnome-0.22.0-18.i386
        libglib-1.2.so.0 is needed by (installed) libglade-0.17-16.i386
        libglib-1.2.so.0 is needed by (installed) libgnomeprint15-0.37-11.i386
        libglib-1.2.so.0 is needed by (installed) gnome-print-0.37-11.i386
        libglib-1.2.so.0 is needed by (installed) gtkhtml-1.1.9-11.i386
        libglib-1.2.so.0 is needed by (installed) gnucash-1.8.11-3.i386
        libglib-1.2.so.0 is needed by (installed) gtk-engines-0.12-7.i386
        libglib-1.2.so.0 is needed by (installed) netdump-server-0.7.7-6.i386
        libglib-1.2.so.0 is needed by (installed) xdelta-1.1.3-16.i386
        libglib-1.2.so.0 is needed by (installed) libdv-tools-0.103-4.i386
        libglib-1.2.so.0 is needed by (installed) ORBit-devel-0.5.17-15.i386
        libglib-1.2.so.0 is needed by (installed) usbview-1.0-13.i386
        libglib-1.2.so.0 is needed by (installed) xferstats-2.16-13.i386
        libglib-1.2.so.0 is needed by (installed) cdicconf-0.2-11.i386
        libglib-1.2.so.0 is needed by (installed) gnucash-backend-postgres-1.8.11-3.i386
        libgmodule-1.2.so.0 is needed by (installed) oaf-0.6.10-12.i386
        libgmodule-1.2.so.0 is needed by (installed) gtk+-1.2.10-39.i386
        libgmodule-1.2.so.0 is needed by (installed) GConf-1.0.9-16.i386
        libgmodule-1.2.so.0 is needed by (installed) libgal23-0.24-6.i386
        libgmodule-1.2.so.0 is needed by (installed) gdk-pixbuf-0.22.0-18.i386
        libgmodule-1.2.so.0 is needed by (installed) imlib-1.9.13-24.i386
        libgmodule-1.2.so.0 is needed by (installed) gnome-libs-
        libgmodule-1.2.so.0 is needed by (installed) gdk-pixbuf-gnome-0.22.0-18.i386
        libgmodule-1.2.so.0 is needed by (installed) libglade-0.17-16.i386
        libgmodule-1.2.so.0 is needed by (installed) libgnomeprint15-0.37-11.i386
        libgmodule-1.2.so.0 is needed by (installed) gnome-print-0.37-11.i386
        libgmodule-1.2.so.0 is needed by (installed) gtkhtml-1.1.9-11.i386
        libgmodule-1.2.so.0 is needed by (installed) gnucash-1.8.11-3.i386
        libgmodule-1.2.so.0 is needed by (installed) gtk-engines-0.12-7.i386
        libgmodule-1.2.so.0 is needed by (installed) libdv-tools-0.103-4.i386
        libgmodule-1.2.so.0 is needed by (installed) ORBit-devel-0.5.17-15.i386
        libgmodule-1.2.so.0 is needed by (installed) usbview-1.0-13.i386
        libgmodule-1.2.so.0 is needed by (installed) xferstats-2.16-13.i386
        libgmodule-1.2.so.0 is needed by (installed) cdicconf-0.2-11.i386
        glib >= 1:1.2.10 is needed by (installed) gtk+-1.2.10-39.i386
        glib >= 1:1.2.0 is needed by (installed) GConf-1.0.9-16.i386
        glib = 1:1.2.10 is needed by (installed) glib-devel-1.2.10-16.i386

If I force the removal, and then reinstall the latest version will these dependencies be restored???

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

LVL 16

Expert Comment

ID: 23624083
>Cannot find a valid baseurl for repo: updates-released
You have the URLs commented in /etc/yum.repos.d. Remove the comment sign to enable those.

>If I force the removal, and then reinstall the latest version will these dependencies be restored???
I don't know, in the sense that if the new version breaks the retrocompatibility ALL those programs will stop working. Otherwise, the new version mantains it, those programs will never ever be even aware of what happened.
Now, since you are trrying to pass from 1.2 to 2.10 I would bet that some major change will occurr :/

Generally, when this happens to me I take note of the complaining programs, remove them, remove the old lib, install the new lib and reinstall the removed programs.

But are you sure you still have such a old lib? I'd investigate on the sentence "pkg-config --modversion glib-2.0' returned 2.18.4"

Author Comment

ID: 23624192

I will remove the comments in the file and try the yum install. If that doesn't work, then I will probably try removing the first original lib. Lastly, yes I still do have the old lib. When I do a "make uninstall" for the new lib, and then try doing a "./configure" for syslog-ng for the installation I receive the following message:

checking whether to enable PCRE support... yes
checking for pkg-config... (cached) /usr/local/bin/pkg-config
checking pkg-config is at least version 0.14... yes
checking for GLIB - version >= 2.10.1... no
configure: error: Cannot find GLIB version >= 2.10.1: is pkg-config in path?

You'll notice that this is different than the message I originally posted above. Please let me know your thoughts.
LVL 16

Accepted Solution

ai_ja_nai earned 375 total points
ID: 23624451
Usually, makefiles provide good hints on possible causes

configure: error: Cannot find GLIB version >= 2.10.1: is pkg-config in path?

Is it? That's all I can think right now

Author Comment

ID: 23662439

I decided to install a previous version of syslog-ng and it worked. Thanks for helping out earlier.

LVL 16

Expert Comment

ID: 23662777
Wait a moment. This question was not about syslog-ng troubles, was about removing glibc. And we provided the how to (at 23622327 and at 23624083).
So, it would be fair assigning points, not for the time we dedicated, but because that particular issue was about to fix before you gave up

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Fine Tune your automatic Updates for Ubuntu / Debian
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month17 days, 22 hours left to enroll

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question