开发者

Error invoking autoreconf from Eclipse using Autotools plugin

开发者 https://www.devze.com 2023-03-18 12:39 出处:网络
I installed the Autotools plugin for Eclipse from: http://www.eclipse.org/linuxtools/projectPages/autotools/.

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!


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 to bash.

0

精彩评论

暂无评论...
验证码 换一张
取 消