![如何满足配置依赖关系?](https://linux22.com/image/1522829/%E5%A6%82%E4%BD%95%E6%BB%A1%E8%B6%B3%E9%85%8D%E7%BD%AE%E4%BE%9D%E8%B5%96%E5%85%B3%E7%B3%BB%EF%BC%9F.png)
这个问题与我的另一个问题相关配置警告缺少已安装的库。该问题特定于xscreensaver
,但这是一个更通用的问题 RE:configure
使用gtk
作为示例。我在尝试安装gtk
作为我想要满足的依赖项之一时遇到xscreensaver
问题;请参阅以下日志:
>curl -LSso gtk+-2.24.31.tar.xz http://ftp.gnome.org/pub/gnome/sources/gtk+/2.24/gtk+-2.24.31.tar.xz
>tar xf gtk+-2.24.31.tar.xz
>cd gtk+-2.24.31/
>./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
...
configure: error: Package requirements (glib-2.0 >= 2.28.0 atk >= 1.29.2 pango >= 1.20 cairo >= 1.6 gdk-pixbuf-2.0 >= 2.21.0) were not met:
No package 'atk' found
No package 'pango' found
No package 'cairo' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables BASE_DEPENDENCIES_CFLAGS
and BASE_DEPENDENCIES_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
>sudo dnf install atk
[sudo] password for user:
Package atk-2.10.0-1.fc20.x86_64 is already installed, skipping.
Dependencies resolved.
Nothing to do.
>sudo dnf install pango
Package pango-1.36.1-3.fc20.x86_64 is already installed, skipping.
Dependencies resolved.
Nothing to do.
>sudo dnf install cairo
Package cairo-1.14.0-2.fc20.x86_64 is already installed, skipping.
Dependencies resolved.
Nothing to do.
问题:
我对在 Linux 上编译/安装软件的过程感到困惑。在我看来,gtk
的配置过程找不到atk
、pango
和cairo
包,但dnf
包安装程序声称它们已安装。是什么向给定的软件指示是否存在依赖关系?您如何协调这种相互冲突的说法,即是否安装了所需的软件?感谢您的指导。