![我的系统上有两个版本的 glib,我不知道如何删除旧版本](https://linux22.com/image/828567/%E6%88%91%E7%9A%84%E7%B3%BB%E7%BB%9F%E4%B8%8A%E6%9C%89%E4%B8%A4%E4%B8%AA%E7%89%88%E6%9C%AC%E7%9A%84%20glib%EF%BC%8C%E6%88%91%E4%B8%8D%E7%9F%A5%E9%81%93%E5%A6%82%E4%BD%95%E5%88%A0%E9%99%A4%E6%97%A7%E7%89%88%E6%9C%AC.png)
在尝试编译程序 (pygobject) 时,运行 ./configure 时,系统提示我没有 glib。因此,我下载了 tarball 并进行了编译和安装,没有问题。现在,当我再次尝试 ./configure 软件包时,出现以下错误:
checking for GLIB - version >= 2.24.0...
*** 'pkg-config --modversion glib-2.0' returned 2.34.2, but GLIB (2.34.0)
*** 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: maybe you want the pygobject-2-4 branch?