我在Windows 7中使用Cygwin并尝试编译库Zyre。我的配置'文件由autoconf自动生成。当我从命令行运行./configure
生成makefile时,它只是说
checking for a BSD-compatible install...
就是这样。没有错误,没有抱怨,没有。我等了> 1h,还试图重启几次。 有什么不对?我能做些什么才能让它发挥作用?
以下是我使用的平台的一些背景信息:
which install
提供/usr/bin/install
。
中断后的文件 config.log 是:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by libzre configure 1.0.0, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure
[..]
install_sh=''
[..]
答案 0 :(得分:1)
我花了很长时间才在互联网上搜索正确的主题,但最后,我找到了它并解决了问题。 Ptomato和Jack,谢谢你的提示!
一方面,./configure
未找到任何与BSD兼容的安装。另一方面,which install
发现了一个安装。在this blog about autoconf's configure.in和this manual about Autoconf的帮助下,我注意到配置的install_sh
变量 - 在我的情况下是空的。
解决方案是以下列方式编辑文件configure
(我之前使用autoconf生成):到行
install_sh
我添加了
/usr/bin/install -c
然后给了
install_sh = '/usr/bin/install -c'
其中/usr/bin/install
是我的which install
命令的输出。现在,我的./configure
命令运行。