Can not run configure command: “No such file or directory”

I’m trying to install a Debian package from source (via git). I downloaded the
package, changed to the package’s directory and ran ./configure command but
it returned bash: ./configure: No such file or directory. What can be the
problem? A configure.ac file is located in the program folder.

./configure
make
sudo make install

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

If the file is called configure.ac,

do $> autoconf

Depends:
M4, Automake

If you’re not sure what to do,

try $> cat readme

They must mean that you use “autoconf” to generate an executable “configure” file.

So the order is:

$> autoconf
$> ./configure
$> make
$> make install

Method 2

The failsafe for generating a configure script is autoreconf -i, which not only takes care of calling autoconf itself, but also a host of other tools that may be needed.


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x