0

bash: bld: line 11: syntax error: unexpected end of file

I'M gettting the above when I source the attached script file. Can someone please let me know what I've got wrong here? Thanks The script file was build from the commands here > http://www.linuxfromscratch.org/lfs/view/stable/chapter06/gmp.html

Attachments
( ./configure --prefix=/usr --enable-cxx --enable-mpbsd 2>&1 | tee configure-gmp.log && exit $PIPESTATUS ) &&
( make                                                  2>&1 | tee make-gmp.log      && exit $PIPESTATUS ) &&
( make check 2>&1 | tee gmp-check-log                                                                      &&
awk '/tests passed/{total+=$2} ; END{print total}' gmp-check-log                                           &&
( make install                                          2>&1 | tee make-install.log  && exit $PIPESTATUS ) &&
mkdir -v /usr/share/doc/gmp-5.0.4                                                                          &&
cp    -v doc/{isa_abi_headache,configuration} doc/*.html \
/usr/share/doc/gmp-5.0.4          &&
date > ../FLAG                    &&
echo GOOD
3
Contributors
3
Replies
4
Views
5 Years
Discussion Span
Last Post by Kwetal
0

What distribution+version of Linux, and which kernel, are you running? This problem is usually due to a missing new-line at the end of the command stream. Edit the file, and add a new line at the bottom, then save the file and try again.

0

It's a Linux from scratch distro, the host OS is just a CLI Debian. I re checked my script file in vi and I didn't see any new line characters or spaces at the end of any of the lines.

http://www.linuxfromscratch.org/

Edited by lewashby

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.