检查框架示例,在运行"./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)
- Autoconf 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创建的配置脚本,发现变量没有正确设置,这就是为什么由于没有分配$ ac_dir而给我install-sh错误的原因.
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屋!