Discussion:
configure complexity
Bruce Korb
2013-05-09 19:30:24 UTC
Permalink
Hi,
I downloaded complexity-1.0 from http://ftp.gnu.org/gnu/complexity/
I am trying to run configure and I get this error
-bash-4.1$ pwd
/home/monap/complexity-1.0
-bash-4.1$ ./configure
## -------------------------- ##
## Configuring complexity 1.0 ##
## -------------------------- ##
configure: error: cannot run /bin/sh ./../config.sub
How can I install complexity ?
Hi Mona,

I do not know because that should work. I guess somehow
ac_aux_dir became set to "./..". It should be "build-aux"
$ fgrep ac_aux_dir= cfg.log
+ ac_aux_dir=
+ ac_aux_dir=./..
+ ac_aux_dir=
+ ac_aux_dir=build-aux
ac_aux_dir=
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
if test -f "$ac_dir/install-sh"; then
ac_aux_dir=$ac_dir
ac_install_sh="$ac_aux_dir/install-sh -c"
break
elif test -f "$ac_dir/install.sh"; then
ac_aux_dir=$ac_dir
ac_install_sh="$ac_aux_dir/install.sh -c"
break
elif test -f "$ac_dir/shtool"; then
ac_aux_dir=$ac_dir
ac_install_sh="$ac_aux_dir/shtool install -c"
break
fi
done
ac_aux_dir=
for ac_dir in build-aux "$srcdir"/build-aux; do
if test -f "$ac_dir/install-sh"; then
ac_aux_dir=$ac_dir
ac_install_sh="$ac_aux_dir/install-sh -c"
break
elif test -f "$ac_dir/install.sh"; then
ac_aux_dir=$ac_dir
ac_install_sh="$ac_aux_dir/install.sh -c"
break
elif test -f "$ac_dir/shtool"; then
ac_aux_dir=$ac_dir
ac_install_sh="$ac_aux_dir/shtool install -c"
break
fi
done
Perhaps you have an "install-sh" script in the superior directory?
Or, maybe, the second loop was skipped?
Or, maybe, config.sub got invoked before the second search took place?

Could you please:
1. ensure there is no install-sh script in /home/monap, and
2. run build-aux/config.guess and provide the output, and last:
3. grep 'Generated by GNU Autoconf' configure

Thanks. - Bruce
Bruce Korb
2013-05-09 20:14:01 UTC
Permalink
Hi Bruce,
Thanks for the quick reply. There is no install-sh in $HOME. Here is the
output you requested
-bash-4.1$ build-aux/config.guess
x86_64-unknown-linux-gnu
-bash-4.1$ grep 'Generated by GNU Autoconf' configure
# Generated by GNU Autoconf 2.69 for Complexity 1.0.
Hi,

Then there is nothing for it but for the hard way:

bash -x ./configure > cfg.log 2>&1

and follow what happens to ac_aux_dir
It goes off into the weeds somehow and all I can do is
look at the command trace. Ugly stuff.
Mona Pinjani
2013-05-09 19:44:59 UTC
Permalink
Hi Bruce,

Thanks for the quick reply. There is no install-sh in $HOME. Here is the
output you requested
-bash-4.1$ build-aux/config.guess
x86_64-unknown-linux-gnu
-bash-4.1$ grep 'Generated by GNU Autoconf' configure
# Generated by GNU Autoconf 2.69 for Complexity 1.0.


Mona
Post by Bruce Korb
Hi,
I downloaded complexity-1.0 from http://ftp.gnu.org/gnu/complexity/
I am trying to run configure and I get this error
-bash-4.1$ pwd
/home/monap/complexity-1.0
-bash-4.1$ ./configure
## -------------------------- ##
## Configuring complexity 1.0 ##
## -------------------------- ##
configure: error: cannot run /bin/sh ./../config.sub
How can I install complexity ?
Hi Mona,
I do not know because that should work. I guess somehow
ac_aux_dir became set to "./..". It should be "build-aux"
$ fgrep ac_aux_dir= cfg.log
+ ac_aux_dir=
+ ac_aux_dir=./..
+ ac_aux_dir=
+ ac_aux_dir=build-aux
ac_aux_dir=
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
if test -f "$ac_dir/install-sh"; then
ac_aux_dir=$ac_dir
ac_install_sh="$ac_aux_dir/install-sh -c"
break
elif test -f "$ac_dir/install.sh"; then
ac_aux_dir=$ac_dir
ac_install_sh="$ac_aux_dir/install.sh -c"
break
elif test -f "$ac_dir/shtool"; then
ac_aux_dir=$ac_dir
ac_install_sh="$ac_aux_dir/shtool install -c"
break
fi
done
ac_aux_dir=
for ac_dir in build-aux "$srcdir"/build-aux; do
if test -f "$ac_dir/install-sh"; then
ac_aux_dir=$ac_dir
ac_install_sh="$ac_aux_dir/install-sh -c"
break
elif test -f "$ac_dir/install.sh"; then
ac_aux_dir=$ac_dir
ac_install_sh="$ac_aux_dir/install.sh -c"
break
elif test -f "$ac_dir/shtool"; then
ac_aux_dir=$ac_dir
ac_install_sh="$ac_aux_dir/shtool install -c"
break
fi
done
Perhaps you have an "install-sh" script in the superior directory?
Or, maybe, the second loop was skipped?
Or, maybe, config.sub got invoked before the second search took place?
1. ensure there is no install-sh script in /home/monap, and
3. grep 'Generated by GNU Autoconf' configure
Thanks. - Bruce
Loading...