当 运行 './configure' 时检查框架示例给我错误

Check framework example giving me error when running './configure'

我正在构建检查框架示例 'check_money',但它不是在我的机器上构建的。错误是:

configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." "./../.."

我试过使用以下方式安装它:

libtoolize --force
aclocal
autoheader
automake --force-missing --add-missing
autoconf
./configure

它仍然给我同样的错误。

所以,我将同一个目录复制到另一个目录,然后 运行:

autoreconf --install
./configure

它仍然给我同样的错误。我不知道还能尝试什么。

我在 Mac OS X Mavericks (10.9)

我能够找出导致错误的原因 - 这是由于我使用 brew install 安装的 automake 和 libtools。尽管已经安装了 autoconf,它安装了我需要的所有必要工具。

此外,我查看了 autoconf 创建的配置脚本,发现变量设置不正确,这就是它给我 install-sh 错误的原因,因为 $ac_dir 未分配。

这是我所做的。

我卸载了 libtools 和 automake -

brew uninstall libtool automake
autoreconf -i
./configure

它运行没有任何错误。我仍然不知道为什么安装这两个包会在构建项目时搞砸。