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. Could anyone help me how to find where 2.26.1 was installed I am relatively new to Ununtu? Thanks.
我也尝试更新PKG_CONFIG_PATH以包含glib-2.0.pc的路径,但仍出现相同的错误。任何人都可以帮我找到2.26.1的安装位置我对Ununtu比较新吗?谢谢。
2 个解决方案
#1
8
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
. Checking the system package management it appears that version 2.26.1
is installed from the repositories. 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). Thus it appears that glib
also has been installed from source (guessing by installation path /usr/local/lib
) which of version 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/
Hope this helps!
将注释发布为响应:从查找/ usr / -iname“* glib * .pc”可以发现/ usr / lib / pkgconfig和/ usr / local / lib / pkgconfig中有与glib相关的.pc文件。检查系统软件包管理,似乎从存储库安装了版本2.26.1。从存储库安装glib的路径通常是/ usr / lib(在64位系统的情况下,这可能会有所不同,其中32位和64位库有不同的文件夹)。因此看起来glib也是从源代码安装的(通过安装路径/ usr / local / lib猜测)版本2.32.2。如果你需要版本2.32.2将PKG_CONFIG_PATH设置为/ usr / local / lib / pkgconfig&LD_LIBRARY_PATH到/ usr / local / lib /希望这有帮助!
#2
4
You have to synchronize you PKG_CONFIG_PATH
and LD_LIBRARY_PATH
environment variables. Assuming that your prefix is /usr/local
the followings should be set:
您必须同步PKG_CONFIG_PATH和LD_LIBRARY_PATH环境变量。假设您的前缀是/ 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
#1
8
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
. Checking the system package management it appears that version 2.26.1
is installed from the repositories. 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). Thus it appears that glib
also has been installed from source (guessing by installation path /usr/local/lib
) which of version 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/
Hope this helps!
将注释发布为响应:从查找/ usr / -iname“* glib * .pc”可以发现/ usr / lib / pkgconfig和/ usr / local / lib / pkgconfig中有与glib相关的.pc文件。检查系统软件包管理,似乎从存储库安装了版本2.26.1。从存储库安装glib的路径通常是/ usr / lib(在64位系统的情况下,这可能会有所不同,其中32位和64位库有不同的文件夹)。因此看起来glib也是从源代码安装的(通过安装路径/ usr / local / lib猜测)版本2.32.2。如果你需要版本2.32.2将PKG_CONFIG_PATH设置为/ usr / local / lib / pkgconfig&LD_LIBRARY_PATH到/ usr / local / lib /希望这有帮助!
#2
4
You have to synchronize you PKG_CONFIG_PATH
and LD_LIBRARY_PATH
environment variables. Assuming that your prefix is /usr/local
the followings should be set:
您必须同步PKG_CONFIG_PATH和LD_LIBRARY_PATH环境变量。假设您的前缀是/ 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