configure generates .infig.status: error: cannot find input file:

I ran into this today.  When running configure, “.infig.status: error: cannot find input file:” error was generated:

bash-3.2$ ./configure
checking for a BSD-compatible install… /usr/bin/install -c
checking whether build environment is sane… yes
checking for a thread-safe mkdir -p… /bin/mkdir -p
checking for gawk… gawk
checking whether make sets $(MAKE)… yes
checking for g++… g++
checking for C++ compiler default output file name… a.out
checking whether the C++ compiler works… yes
checking whether we are cross compiling… no
checking for suffix of executables…
checking for suffix of object files… o
checking whether we are using the GNU C++ compiler… yes
checking whether g++ accepts -g… yes
checking for style of include used by make… GNU
checking dependency style of g++… gcc3
configure: creating ./config.status
.infig.status: error: cannot find input file:

This appears to be caused by by having DOS style line endings in the configure script.

You should be able to use the dos2unix command or alternatively, the tr command:

$ tr -d “\15\32” < configure > configure.new
$ mv configure.new configure

What causes this?  Most likely you have DOS style line endings in your configure.ac and/or Makefile.am.  Run dos2unix against them and then reautconf –install and then the configure script should be good to go.

This entry was posted in Linux, Software Development. Bookmark the permalink.

1 Response to configure generates .infig.status: error: cannot find input file:

  1. rohit says:

    thank u

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s