kimchi-project / kimchi

An HTML5 management interface for KVM guests
https://github.com/kimchi-project/kimchi/releases/latest
Other
3.12k stars 364 forks source link

configure: error: cannot run /bin/sh build-aux/config.sub #1248

Open AlmightyOatmeal opened 6 years ago

AlmightyOatmeal commented 6 years ago

It seems that not all of the correct scripts are "installed" to the build-aux directory...?

╭─jamie@BeefCurtainMoses  ~/kimchi  ‹master›
╰─$ ./autogen.sh --system
configure.ac:43: warning: macro 'AM_GNU_GETTEXT' not found in library
configure.ac:44: warning: macro 'AM_GNU_GETTEXT_VERSION' not found in library
configure.ac:35: installing 'build-aux/install-sh'
configure.ac:35: installing 'build-aux/missing'
Makefile.am:22: installing 'build-aux/py-compile'
aclocal: installing 'm4/pkg.m4' from '/usr/local/share/aclocal/pkg.m4'
configure.ac:43: error: required file 'build-aux/compile' not found
configure.ac:43:   'automake --add-missing' can install 'compile'
configure.ac:43: error: required file 'build-aux/config.guess' not found
configure.ac:43:   'automake --add-missing' can install 'config.guess'
configure.ac:43: error: required file 'build-aux/config.sub' not found
configure.ac:43:   'automake --add-missing' can install 'config.sub'
autoreconf: automake failed with exit status: 1
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /opt/local/bin/gmkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for a Python interpreter with version >= 2.6... python
checking for python... /usr/bin/python
checking for python version... 2.7
checking for python platform... darwin
checking for python script directory... ${prefix}/lib/python2.7/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.7/site-packages
checking for pep8... /usr/bin/pep8
checking for git... /usr/local/bin/git
checking for rpmlint... /usr/bin/rpmlint
checking python module: unittest... yes
checking whether NLS is requested... yes
checking for msgfmt... /opt/local/bin/msgfmt
checking for gmsgfmt... /opt/local/bin/msgfmt
checking for xgettext... /opt/local/bin/xgettext
checking for msgmerge... /opt/local/bin/msgmerge
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... none
configure: error: cannot run /bin/sh build-aux/config.sub
╭─jamie@BeefCurtainMoses  ~/kimchi  ‹master›
╰─$ ls -lh build-aux
total 56
-rw-r--r--  1 jamie  staff    18K Aug 20 09:27 config.rpath
-rwxr-xr-x  1 jamie  staff   772B Aug 20 09:27 genChangelog
lrwxr-xr-x  1 jamie  staff    64B Aug 20 09:28 install-sh -> /usr/local/Cellar/automake/1.15.1/share/automake-1.15/install-sh
lrwxr-xr-x  1 jamie  staff    61B Aug 20 09:28 missing -> /usr/local/Cellar/automake/1.15.1/share/automake-1.15/missing
-rwxr-xr-x  1 jamie  staff   1.9K Aug 20 09:27 pkg-version
lrwxr-xr-x  1 jamie  staff    64B Aug 20 09:28 py-compile -> /usr/local/Cellar/automake/1.15.1/share/automake-1.15/py-compile
╭─jamie@BeefCurtainMoses  ~/kimchi  ‹master›
╰─$ sw_vers
ProductName:    Mac OS X
ProductVersion: 10.13.6
BuildVersion:   17G65

Trying to break it down further:

╭─jamie@BeefCurtainMoses  ~/kimchi  ‹master›
╰─$ aclocal
configure.ac:43: warning: macro 'AM_GNU_GETTEXT' not found in library
configure.ac:44: warning: macro 'AM_GNU_GETTEXT_VERSION' not found in library
╭─jamie@BeefCurtainMoses  ~/kimchi  ‹master›
╰─$ automake --add-missing
configure.ac:35: installing 'build-aux/install-sh'
configure.ac:35: installing 'build-aux/missing'
Makefile.am:22: installing 'build-aux/py-compile'
╭─jamie@BeefCurtainMoses  ~/kimchi  ‹master›
╰─$ autoreconf
aclocal: installing 'm4/pkg.m4' from '/usr/local/share/aclocal/pkg.m4'
configure.ac:43: error: required file 'build-aux/compile' not found
configure.ac:43:   'automake --add-missing' can install 'compile'
configure.ac:43: error: required file 'build-aux/config.guess' not found
configure.ac:43:   'automake --add-missing' can install 'config.guess'
configure.ac:43: error: required file 'build-aux/config.sub' not found
configure.ac:43:   'automake --add-missing' can install 'config.sub'
autoreconf: automake failed with exit status: 1

But still no missing files:

╭─jamie@BeefCurtainMoses  ~/kimchi  ‹master›
╰─$ ls -lh build-aux
total 56
-rw-r--r--  1 jamie  staff    18K Aug 20 09:32 config.rpath
-rwxr-xr-x  1 jamie  staff   772B Aug 20 09:32 genChangelog
lrwxr-xr-x  1 jamie  staff    64B Aug 20 09:33 install-sh -> /usr/local/Cellar/automake/1.15.1/share/automake-1.15/install-sh
lrwxr-xr-x  1 jamie  staff    61B Aug 20 09:33 missing -> /usr/local/Cellar/automake/1.15.1/share/automake-1.15/missing
-rwxr-xr-x  1 jamie  staff   1.9K Aug 20 09:32 pkg-version
lrwxr-xr-x  1 jamie  staff    64B Aug 20 09:33 py-compile -> /usr/local/Cellar/automake/1.15.1/share/automake-1.15/py-compile
alinefm commented 4 years ago

Do you have all dependencies properly installed in your system? gcc make autoconf automake ?

icculp commented 3 years ago

Currently running into this on Ubuntu 20.04 LTS. Followed the instructions here, https://developers.cardano.org/docs/get-started/installing-cardano-node/#linux

Verified each of those dependencies installed.

icculp commented 3 years ago

Okay, was able to move forward. I looked inside the config.sub and config.guess files in libsodium/build-aux/, both of which were somehow html responses with 503 errors. Copied both files from /usr/share/automake-1.16/ to the build-aux directory and was able to run ./configure without error