检查框架示例在运行“./configure"时给我错误 [英] Check framework example giving me error when running './configure'
问题描述
我正在构建支票框架示例check_money",但它不是在我的机器上构建的.错误是:
I'm building the check framework example 'check_money', but it's not building on my machine. The error is:
configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." "./../.."
我尝试使用以下方法安装它:
I've tried installing it using:
libtoolize --force
aclocal
autoheader
automake --force-missing --add-missing
autoconf
./configure
它仍然给我同样的错误.
It's still giving me the same error.
因此,我将同一目录复制到另一个目录并运行:
So, I copied the same directory to another directory and ran:
autoreconf --install
./configure
它仍然给我同样的错误.我不知道还能尝试什么.
And it's still giving me the same error. I don't know what else to try.
我使用的是 Mac OS X Mavericks (10.9)
I'm on Mac OS X Mavericks (10.9)
- 自动配置 2.69
- Automake 1.15
- Libtool 2.4.6
- 检查 0.9.14
推荐答案
我能够找出导致错误的原因 - 这是由于我使用 brew install 安装的 automake 和 libtools.尽管已经安装了 autoconf,它安装了我需要的所有必要工具.
I was able to figure out what was causing the errors - it was due to automake and libtools which I installed using brew install. Despite already installing autoconf which installed all the necessary tools I needed.
此外,我查看了 autoconf 创建的配置脚本,我发现变量没有正确设置,这就是为什么它给我 install-sh 错误,因为 $ac_dir 没有被分配.
In addition, I looked at the configure script that autoconf created and I found that the variables wasn't being set-up properly which is why it was giving me the install-sh error because the $ac_dir wasn't assigned.
这就是我所做的.
我卸载了 libtools 和 automake -
I uninstalled libtools and automake -
brew uninstall libtool automake
autoreconf -i
./configure
它运行时没有任何错误.我仍然不知道为什么安装这两个包在构建项目时会一团糟.
It ran with out any errors. I still don't know the reason why installing those 2 packages messed in building the project.
这篇关于检查框架示例在运行“./configure"时给我错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!