我正在尝试启用x11spice在我的 Docker 容器中,我按照 README 操作,但之后./configure
没有生成 MAKEFILE,因此make
输出错误信息make: *** No targets specified and no makefile found. Stop.
以下是输出./configure
:
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf
autoreconf: configure.ac: not using Autoheader
autoreconf: running: automake --add-missing --copy --no-force
autoreconf: Leaving directory `.'
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... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
./configure: line 2692: syntax error near unexpected token `XCB,'
./configure: line 2692: `PKG_CHECK_MODULES(XCB, xcb)'
以下是目录中的内容,有两个包含 Makefile 的不同文件,分别称为 Makefile.ac 和 Makefile.in
AUTHORS ChangeLog Makefile.am NEWS aclocal.m4 autom4te.cache config.log configure.ac doc
missing test-driver COPYING INSTALL Makefile.in README autogen.sh compile configure depcomp install-sh src
该x11spice
存储库已近一年没有更新,所以我不指望他们能修复它。有没有人尝试过这个或类似的方法可以解决这个问题?我将不胜感激!
答案1
经过几个小时的尝试,我终于解决了这个问题。问题实际上不是语法错误PKG_CHECK_MODULES
,而是之前的步骤./configure
。请README
返回x11spice存储库。我们需要./autogen.sh
先运行。在执行此操作时,会出现多个指示未满足包要求的错误。其中一个例子是:
checking for XCB... no
configure: error: Package requirements (xcb) were not met:
No package 'xcb' 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 XCB_CFLAGS
and XCB_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
我们需要做的很简单:
用于
apt-cache search xcb
查找需要安装什么包来满足此包要求。然后使用
apt-get install
它/它们来安装。再次运行
./autogen.sh
以查看是否还有其他问题。如果是,请执行步骤 1 和 2,直到./autogen.sh
输出以下内容:configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating src/tests/Makefile config.status: executing depfiles commands
这时候您就可以运行了./configure
。希望您能按照这些说明解决问题。