On Mon, 2017-04-24 at 11:50 -0700, Paul Rogers wrote: > I'm catching up to you guys, slowly. I'm building 7.10. Chapter 5 ran > smoothly, after catching a few script typos. I've just started Chapter > 6, building the FHS. Following a successful "install", my build scripts > immediately make a tarball of the as-built install files. That failed. > > An example case copied verbatim from the console log: > > I have no name!:/# tar czf dummy.tgz /usr > tar: tar (child): Removing leading `/' from member namesgzip: Cannot > exec > : No such file or directory > tar (child): Error is not recoverable: exiting now > tar: dummy.tgz: Cannot write: Broken pipe > tar: Child returned status 2 > tar: Error is not recoverable: exiting now > I have no name!:/# tar cf dummy.tgz /usr > tar: Removing leading `/' from member names > I have no name!:/# ls tools/bin/gzip > tools/bin/gzip > I have no name!:/# ls /tools/bin/gzip > /tools/bin/gzip > I have no name!:/# echo $PATH > bin:/usr/bin:sbin:/usr/sbin:/tools/bin > I have no name!:/# > > For some reason the tar installed in Ch5 cannot find gzip. It exists, > and is in the path. Tar makes unzipped tarballs without complaint. > -- > Paul Rogers > [email protected] > Rogers' Second Law: "Everything you do communicates." > (I do not personally endorse any additions after this line. TANSTAAFL > :-) > > -- > http://www.fastmail.com - Same, same, but different... >
Can you try creating a /bin/sh link first and then see what happens. e.g. ln -fsv bash /bin/sh tar czf dummy.tgz /usr Regards, Wayne. -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
