使用 Autotools 插件从 Eclipse 调用 autoreconf 时出错
我从以下位置安装了 Eclipse 的 Autotools 插件: http://www.eclipse.org/linuxtools/projectPages /自动工具/ 。
然后,我首先在 Eclipse CDT 中创建一个新的 C++ 项目,然后导入源文件,然后将该项目转换为 Autotools 项目,从而导入现有的 C++ 项目。但是,在此转换之后,我收到一条错误消息,显示“
Invoking autoreconf in build directory: /home/user/Development/cpp/workspace/testproject
sh autoreconf -i
sh: Can't open autoreconf
Configuration failed with error
我的项目中与 autoconf 相关的唯一文件是 configure.ac
”、Makefile.am
、src/Makefile.am
。从命令行使用 autoreconf --install
构建项目工作正常。
为什么它尝试使用 sh
启动 autoreconf -i
?如果我从命令行尝试这样做,它也不起作用(找不到文件 autoreconf
)。当我从命令行调用它时,我不使用 sh
来调用它。
提前致谢!
I installed the Autotools plugin for Eclipse from: http://www.eclipse.org/linuxtools/projectPages/autotools/.
I then imported an existing C++-project by first creating a new C++-project in Eclipse CDT, then importing the source files, and then converting the project to a Autotools project. However, after this conversion I get an error message that says
Invoking autoreconf in build directory: /home/user/Development/cpp/workspace/testproject
sh autoreconf -i
sh: Can't open autoreconf
Configuration failed with error
The only files I have in my project that is related to autoconf is configure.ac
, Makefile.am
, src/Makefile.am
. It is working fine to build the project using autoreconf --install
from the command line.
Why does it try to launch autoreconf -i
using sh
? If I try that from the command line, it doesn't work either (the file autoreconf
is not found). When I invoke it from the command line, I invoke it without sh
.
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在我的 Ubuntu 11.04 中,
dash
是/bin/sh
的默认目标,而且 eclipse 似乎因此而陷入困境。您可以使用
sudo dpkg-reconfigure dash
更改链接。选择“否”将/bin/sh
恢复为bash
的链接。In my Ubuntu 11.04,
dash
was the default target for/bin/sh
and it appears that eclipse is getting tripped up by this.You can change the link with
sudo dpkg-reconfigure dash
. Choose "No" to restore/bin/sh
as a link tobash
.