glibc: /bin/sh: line 1: command not found

Matthew Burgess matthew at
Thu Jan 29 16:00:36 PST 2004

On Thu, 29 Jan 2004 10:59:29 +0100
Thomas Mubis <mubis at> wrote:

> make -r PARALLELMFLAGS="" CVSOPTS="" -C ../glibc-2.3.2 objdir=`pwd`
> all make[1]: Entering directory `/mnt/lfs/sources/glibc-2.3.2'
> >
> /bin/sh: line 1: command not found
> make[1]: *** [configure] Error 127
> make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.3.2'
> make: *** [all] Error 2
> lfs at lfssrv:/mnt/lfs/sources/glibc-build>

What are the three lines immediately above this?  I get:

configure: configuring in linuxthreads
configure: running /bin/sh '../../glibc-2.3.2/linuxthreads/configure'
--prefix=/tools  '--prefix=/tools' '--disable-profile'
'--enable-add-ons' '--with-headers=/tools/include'
'--with-binutils=/tools/bin' '--without-gd' --cache-file=/dev/null
make[2]: Entering directory `/path/to/glibc-build'

The only suggestions I can make are:

1) Make sure you are logged in as the "lfs" user both when unpacking
the tarballs *and* when issuing the commands in order to prevent any
permission issues.
2) Make sure you don't have any environment variables
like CFLAGS CXXFLAGS LD_FLAGS set which might confuse the makefile

Sorry for not being able to give definite answers on this.

Best regards,


More information about the lfs-support mailing list