Configure command not found cygwin

This question has been asked many times, but I cannot solve the problem because of this, so I ask

I installed Cygwin a few days ago. I tried using the ./configure command, but it says

- bash: ./ configure: no such file or directory

I tried to use

 where configure 

but I got a conclusion

INFO: Could not find files for this template.

then I tried grep configure and I got this output

 /etc/bash_completion.d/configure /usr/i686-pc-cygwin/sys-root/usr/share/libtool/libltdl/configure /usr/share/ELFIO/configure /usr/share/libtool/libltdl/configure 

I tried to export the path and then ran ./configure , but it also did not work.

I did not find an executable named configure in my cygwin bin .

Does this mean I need to add the configure file manually? How to fix it?

NOTE: - I also tried sh configure , but it also did not work.

+7
bash cygwin
source share
3 answers

If a software project is configured to create autoconf , this tool generates a canonically called configure script. It queries the system for various parameters that are subsequently used in the assembly, and depends on the software package being created. Different software projects have different configure scripts. They are all called configure , but their contents are not the same.

So, in order to actually create such a software project when the script was configured (usually executed by the maintainers when packing the original tarball for distribution), you call:

 tar xzf <tarball>.gz # or xjf <tarball>.bz2 or whatever cd <sourcedir> # the one you just untarred ./configure make make install 

Note the ./ prefix, which means "located in this directory" (i.e. the top directory of this project source tree).

Actually, the best procedure is the so-called β€œassembly outside the tree”, when you configure a different directory for binary files that must be embedded, so the original tree remains unchanged:

 tar xzf <tarball>.gz # or xjf <tarball>.bz2 or whatever mkdir builddir cd builddir ../<sourcedir>/configure make make install 

So, it is assumed that there is no configure executable in PATH , you should name the script of this name from the source tree from which you are trying to build.

+10
source share

If I understood correctly...

Configuring is not an application that needs to be installed on your system, but a script that needs to be delivered with the source code in preparation for the make . A file named configure should be in the main directory of the source code.

+5
source share

I understand that this is an old question. However, many may find this solution useful.

Usually we use the make command to compile the downloaded source in cygwin. In many cases, it contains the autogen.sh file. Run this file with

 bash autogen.sh 

in many cases will solve the problem. At least he solved my problem and then I could use the make command

+1
source share

All Articles