[英]How to find where older version of GLIB has been installed?
I am trying to install atk-2.4.0
and I get the error: 我正在尝试安装atk-2.4.0
并收到错误消息:
'pkg-config --modversion glib-2.0' returned 2.32.3, but GLIB (2.26.1)
*** was found!
I also tried updating PKG_CONFIG_PATH
to include the path of glib-2.0.pc
but still same error appears. 我也尝试更新PKG_CONFIG_PATH
以包含glib-2.0.pc
的路径,但仍然出现相同的错误。 Could anyone help me how to find where 2.26.1 was installed I am relatively new to Ununtu? 任何人都可以帮我找到2.26.1安装的地方我对Ununtu比较新吗? Thanks. 谢谢。
Posting comments as response: 发表评论作为回应:
From find /usr/ -iname "*glib*.pc"
it is found that there .pc
file related to glib
is available in /usr/lib/pkgconfig
& /usr/local/lib/pkgconfig
. 从find /usr/ -iname "*glib*.pc"
可以看到,在/usr/lib/pkgconfig
和/usr/local/lib/pkgconfig
可以找到与glib
相关的.pc
文件。 Checking the system package management it appears that version 2.26.1
is installed from the repositories. 检查系统软件包管理,似乎从存储库安装了版本2.26.1
。 The path for installation of glib
from repositories is generally /usr/lib
(This may vary a bit in case of 64 bit systems wherein there are different folders for 32 bit & 64 bit libraries). 从存储库安装glib
的路径通常是/usr/lib
(在64位系统的情况下,这可能会有所不同,其中32位和64位库有不同的文件夹)。 Thus it appears that glib
also has been installed from source (guessing by installation path /usr/local/lib
) which of version 2.32.2
. 因此,似乎glib
也已从源代码安装(通过安装路径/usr/local/lib
猜测),版本为2.32.2
。 If you need version 2.32.2
set PKG_CONFIG_PATH
to /usr/local/lib/pkgconfig
& LD_LIBRARY_PATH
to /usr/local/lib/
如果你需要版本2.32.2
将PKG_CONFIG_PATH
设置为/usr/local/lib/pkgconfig
& LD_LIBRARY_PATH
到/usr/local/lib/
Hope this helps! 希望这可以帮助!
You have to synchronize you PKG_CONFIG_PATH
and LD_LIBRARY_PATH
environment variables. 您必须同步PKG_CONFIG_PATH
和LD_LIBRARY_PATH
环境变量。 Assuming that your prefix is /usr/local
the followings should be set: 假设您的前缀是/usr/local
,则应设置以下内容:
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
LD_LIBRARY_PATH=/usr/local/lib
You may also need to set other variables to compile glib dependent softwares: 您可能还需要设置其他变量来编译与glib相关的软件:
ACLOCAL_PATH=/usr/local/share/aclocal/
PATH=/usr/local/bin:$PATH
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.