配置:错误:不满足包要求(...)
Posted
技术标签:
【中文标题】配置:错误:不满足包要求(...)【英文标题】:configure: error: Package requirements(...) were not met 【发布时间】:2016-12-02 11:07:12 【问题描述】:我正在尝试对 Unity Greeter 进行一些调整。所以我从launchpad.net 获取源代码。该软件包没有生成文件。经过一番谷歌搜索,我发现他们使用 autotools 项目结构。当我使用 automake 工具为项目创建 make 文件时,出现错误。
/usr/bin/gnome-autogen.sh checking for automake >= 1.7... testing automake... found 1.15 checking for autoreconf >= 2.53... testing autoreconf... found 2.69 checking for intltool >= 0.25... testing intltoolize... found 0.51.0 checking for pkg-config >= 0.14.0... testing pkg-config... found 0.29.1 checking for gnome-common >=
2.3.0... testing gnome-doc-common... found 3.14.0 Checking for required M4 macros...
**Warning**: I am going to run `configure' with no arguments. If you wish to pass any to it, please specify them on the `./autogen.sh' command line.
Processing ./configure.ac Running gnome-doc-common... Running intltoolize... Running autoreconf... autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force --warnings=no-portability autoreconf: configure.ac: tracing autoreconf: configure.ac: not using Libtool autoreconf: running: /usr/bin/autoconf --force --warnings=no-portability autoreconf: running: /usr/bin/autoheader --force
--warnings=no-portability autoreconf: running: automake --add-missing --copy --force-missing --warnings=no-portability tests/Makefile.am:8: warning: source file '../src/flat-button.c' is in a subdirectory, tests/Makefile.am:8: but option 'subdir-objects' is disabled automake: warning: possible forward-incompatibility. automake: At least a source file is in a subdirectory, but the 'subdir-objects' automake: automake option hasn't been enabled. For now, the corresponding output automake: object file(s) will be placed in the top-level directory. However, automake: this behaviour will change in future Automake versions: they will automake: unconditionally cause object files to be placed in the same subdirectory automake: of the corresponding sources. automake: You are advised to start using 'subdir-objects' option throughout your automake: project, to avoid future incompatibilities. tests/Makefile.am:8: warning: source file '../src/toggle-box.c' is in a subdirectory, tests/Makefile.am:8: but option 'subdir-objects' is disabled tests/Makefile.am:8: warning: source file '../src/user-list.c' is in a subdirectory, tests/Makefile.am:8: but option 'subdir-objects' is disabled tests/Makefile.am:8: warning: source file '../src/greeter-list.c' is in a subdirectory, tests/Makefile.am:8: but option 'subdir-objects' is disabled tests/Makefile.am:8: warning: source file '../src/remote-login-service.c' is in a subdirectory, tests/Makefile.am:8: but option 'subdir-objects' is disabled tests/Makefile.am:8: warning: source file '../src/background.c' is in a subdirectory, tests/Makefile.am:8: but option 'subdir-objects' is disabled tests/Makefile.am:8: warning: source file '../src/email-autocompleter.c' is in a subdirectory, tests/Makefile.am:8: but option 'subdir-objects' is disabled tests/Makefile.am:8: warning: source file '../src/cairo-utils.c' is in a subdirectory, tests/Makefile.am:8: but option 'subdir-objects' is disabled tests/Makefile.am:8: warning: source file '../src/animate-timer.c' is in a subdirectory, tests/Makefile.am:8: but option 'subdir-objects' is disabled tests/Makefile.am:8: warning: source file '../src/fadable.c' is in a subdirectory, tests/Makefile.am:8: but option 'subdir-objects' is disabled tests/Makefile.am:8: warning: source file '../src/fadable-box.c' is in a subdirectory, tests/Makefile.am:8: but option 'subdir-objects' is disabled tests/Makefile.am:8: warning: source file '../src/dash-box.c' is in a subdirectory, tests/Makefile.am:8: but option 'subdir-objects' is disabled tests/Makefile.am:8: warning: source file '../src/user-prompt-box.c' is in a subdirectory, tests/Makefile.am:8: but option 'subdir-objects' is disabled tests/Makefile.am:8: warning: source file '../src/fading-label.c' is in a subdirectory, tests/Makefile.am:8: but option 'subdir-objects' is disabled tests/Makefile.am:8: warning: source file '../src/cached-image.c' is in a subdirectory, tests/Makefile.am:8: but option 'subdir-objects' is disabled tests/Makefile.am:8: warning: source file '../src/dash-entry.c' is in a subdirectory, tests/Makefile.am:8: but option 'subdir-objects' is disabled tests/Makefile.am:8: warning: source file '../src/dash-button.c' is in a subdirectory, tests/Makefile.am:8: but option 'subdir-objects' is disabled tests/Makefile.am:8: warning: source file '../src/prompt-box.c' is in a subdirectory, tests/Makefile.am:8: but option 'subdir-objects' is disabled tests/Makefile.am:8: warning: source file '../src/session-list.c' is in a subdirectory, tests/Makefile.am:8: but option 'subdir-objects' is disabled tests/Makefile.am:8: warning: source file '../src/main-window.c' is in a subdirectory, tests/Makefile.am:8: but option 'subdir-objects' is disabled tests/Makefile.am:8: warning: source file '../src/list-stack.c' is in a subdirectory, tests/Makefile.am:8: but option 'subdir-objects' is disabled tests/Makefile.am:8: warning: source file '../src/settings.c' is in a subdirectory, tests/Makefile.am:8: but option 'subdir-objects' is disabled tests/Makefile.am:8: warning: source file '../src/shutdown-dialog.c' is in a subdirectory, tests/Makefile.am:8: but option 'subdir-objects' is disabled autoreconf: Leaving directory `.' Running ./configure --enable-maintainer-mode ... checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking for style of include used by make... GNU checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... gcc3 checking for valac... valac configure: WARNING: no proper vala compiler found configure: WARNING: you will not be able to compile vala source files checking whether to enable maintainer-specific portions of Makefiles... yes checking whether make supports nested variables... (cached) yes ./configure: line 3706: GLIB_GSETTINGS: command not found checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for UNITY_GREETER... no configure: error: Package requirements (
gtk+-3.0
gdk-x11-3.0
indicator3-0.4
libido3-0.1 >= 13.10.0
liblightdm-gobject-1 >= 1.12.0
freetype2
cairo-ft
libcanberra
pixman-1
x11
xext ) were not met:
No package 'gtk+-3.0' found No package 'gdk-x11-3.0' found No package 'indicator3-0.4' found No package 'libido3-0.1' found No package 'liblightdm-gobject-1' found No package 'freetype2' found No package 'cairo-ft' found No package 'libcanberra' found No package 'pixman-1' 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 UNITY_GREETER_CFLAGS and UNITY_GREETER_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.
我不知道如何解决这个错误。我尝试使用 apt 从存储库安装这些软件包。我正在使用 Ubuntu 16.04 LTS 64 位。
【问题讨论】:
【参考方案1】:您需要安装这些软件包的 -devel
variants,因为 Ubuntu 将包括运行时文件的软件包与包括构建要求(头文件、静态库以及在这种特殊情况下为 pkg-config
.pc
files 的软件包)分开。
【讨论】:
但是我在 apt 中找不到任何与丢失的包匹配的相关包。 这开始使它成为一个非自动工具问题,我认为更像是一个 ServerFault 问题。但例如在 Ubuntu 中,您需要 libgtk-3-dev。【参考方案2】:sudo apt-get build-dep package
安装编译源代码所需的库(包)
【讨论】:
请用英文写下你的答案,因为Stack Overflow is an English site.以上是关于配置:错误:不满足包要求(...)的主要内容,如果未能解决你的问题,请参考以下文章
pycharm 安装“cls”安装包为什么安装不了提示找不到满足要求的版本cls(来自版本无)
Pip install 为 Artifactory 上传的包返回“找不到满足要求的版本”
两个 MySQL 密码策略是不是会导致错误不满足当前的策略要求
为啥它在运行迁移时抛出`GeoDjango Postgis 要求不满足得到错误?