Error calling autoreconf from Eclipse using Autotools plugin

I installed the Autotools plugin for Eclipse from: http://www.eclipse.org/linuxtools/projectPages/autotools/ .

Then I imported the existing C ++ project, first creating a new C ++ project in the Eclipse CDT, then importing the source files, and then converting the project into an 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 related to autoconf are configure.ac , Makefile.am , src/Makefile.am . It works great for creating a project using autoreconf --install from the command line.

Why is he trying to run autoreconf -i with sh ? If I try this from the command line, it does not work either ( autoreconf file not found). When I call it from the command line, I call it without sh .

Thanks in advance!

+4
source share
1 answer

In my Ubuntu 11.04, dash was the default target for /bin/sh , and it seems like an eclipse is causing this.

You can change the link using sudo dpkg-reconfigure dash . Select "No" to restore /bin/sh as a reference to bash .

+3
source

All Articles