几天前我在askubuntu @ https://askubuntu.com/questions/1044708/debian-rules161-recipe-for-target-config-status-failed上发布了这篇文章 不幸的是,我没有得到任何回应。因此,在StackOverflow上寻求一些帮助。
我正在尝试为deb构建一个collect-pw包。上游的焦油球是:http://perfwatcher.free.fr/download/collectd/collectd-5.4.0.20150311.tar.gz
为了构建这个包,我从ubuntu中提取了collectd的源包,并在debian/control和debian/changelog下修改了包名。
现在,当我运行pdebuild (为了这个原因而运行debuild )时,它失败了,出现了以下错误:
configure: exit 1
debian/rules:161: recipe for target 'config.status' failed
make: *** [config.status] Error 1
dpkg-buildpackage: error: debian/rules build gave error exit status 2我不知道这里出了什么问题。该错误是一个通用错误。如果我运行./configure,make,那么构建就可以了。
以下是来自debian/rules的相关行
160 config.status: configure
161 dh_testdir
162
163 PKG_CONFIG_PATH="$(CURDIR)/debian/pkgconfig:$$PKG_CONFIG_PATH" \
164 ./configure $(confflags) CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" \
165 JAVAC="$(JAVAC)" JAR="$(JAR)" JAVA_CPPFLAGS="$(JAVA_CPPFLAGS)" \
166 JAVA_LDFLAGS="$(JAVA_LDFLAGS)" \
167 || ( status=$$?; cat config.log; exit $$status )你能帮我指点一下这里可能会出什么问题吗?或者,任何提供详细错误的建议都是有帮助的,因为configure: exit 1没有给出足够的洞察力来采取行动。
顺便说一下,我已经在export DH_VERBOSE=1中启用了debian/rules。
更新:
正如@GiacomoCatenazzi所建议的:
dh_testdir。make,并以make -d -f debian/rules的形式启用debian/rules。这一次,它在同一config.status步骤中再次失败,添加了2行调试代码,我无法理解。下面是上面make命令的最后几行输出:
...
...
...
#define HAVE_PLUGIN_VSERVER 1
#define HAVE_PLUGIN_WIRELESS 1
#define HAVE_PLUGIN_WRITE_GRAPHITE 1
configure: exit 1
Reaping losing child 0x1a103d0 PID 27476
debian/rules:161: recipe for target 'config.status' failed
make: *** [config.status] Error 1
Removing child 0x1a103d0 PID 27476 from chain.config.log,它有大约30k行。日志的最后几行如下:
29303 #define HAVE_PLUGIN_WIRELESS 1
29304 #define HAVE_PLUGIN_WRITE_GRAPHITE 1
29305
29306 configure: exit 1这里也没有有用的信息:
更新:
正如@Stephen所建议的,整个config.log都可以在这里获得:http://pasted.co/3767a043
发布于 2018-06-15 11:07:15
配置失败的原因如下:
configure:59894: error: "Some plugins are missing dependencies - see the summary above for details"摘要不包含在日志中,但应该已经输出到您的终端。
您需要安装许多软件包以满足collect-pw的构建依赖关系。
您发布的日志文件(我认为它来自您使用debian/rules的直接尝试)表明缺少了许多依赖项,其中至少有一些在debian/control中列出,并将由pdebuild (pkg-config、libyajl-dev等)安装。由于pdebuild的构建也失败了,我猜collect-pw有一些特定于collectd的debian/control中没有列出的依赖项;您应该调查缺少的构建依赖项,并将它们添加到debian/control中(如果您想在本地构建,则在本地安装它们)。
https://stackoverflow.com/questions/50810577
复制相似问题