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 On 5/9/13 2:30 PM, "Bruce Korb" <bkorb@xxxxxxx> wrote: >On 05/09/13 09:24, Mona Pinjani wrote: >> 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 > >That is derived from two loops in the configure script: >> 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 _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx https://lists.gnu.org/mailman/listinfo/autoconf