wrong bash version??

Jeremy Huntwork jhuntwork at linuxfromscratch.org
Sun Nov 7 10:09:04 PST 2004

On Sun, 2004-11-07 at 08:08 -0800, J. Greenlees wrote: 
> okay, but we are talking only 5 lines before error.
> lfs at d142-173-80-210 lfs$echo $LFS
> /mnt/lfs
> lfs at d142-173-80-210 lfs$cd $LFS/temp/binutils-2.14/build
> lfs at d142-173-80-210 build$pwd
> /mnt/lfs/temp/binutils-2.14/build
> lfs at d142-173-80-210 build$../binutils-2.14/configure --prefix=/tools 
> --disable-nls

Well, for starters, if your current working directory
is /mnt/lfs/temp/binutils-2.14/build then the correct command to run
configure would be:

../configure --prefix=/tools --disable-nls

That's assuming that /mnt/lfs/temp/binutils-2.14 is the top-level dir
for the unpacked source of binutils. But, if that were so, you should
have gotten a 'No such file or directory' error instead.  Do you have
another binutils-2.14 directory inside /mnt/lfs/temp/binutils-2.14?

If you're trying to follow the book, you'd unpack your sources
in /mnt/lfs/temp (or actually strictly by the book, /mnt/lfs/sources) so
with binutils, that would give you automatically a
directory /mnt/lfs/temp/binutils-2.14.  Then from inside binutils-2.14,
you'd run:

mkdir ../binutils-build
cd ../binutils-build

Then the command as you typed and as the book shows would work.

> bash: ../binutils-2.14/configure /bin/sh: bad interpreter: permission denied
> then edit configure to call bash not sh just in case

But it seems you're getting permission denied errors on /bin/sh, which
is something else entirely.  Make sure that your system has mode 755
on /bin/sh. If you need to, chmod 755 /bin/sh (You may also want to
verify that /bin/sh is a symlink to bash)

> bash: ../binutils-2.14/configure /bin/bash: bad interpreter: permission 
> denied
> lfs at d142-173-80-210 build$bash --version
> GNU bash, version 2.05b.0(1)-release (i586-mandrake-linuc-gnu)
> Copyright (C) 2002 Free Software Foundation, Inc.

See how much the copy and pasting helps? ;)

Jeremy Huntwork

More information about the lfs-support mailing list