[lfs-support] xz: No such file or directory

JIA Pei jp4work at gmail.com
Tue Jan 1 17:15:14 PST 2013


Hi, Ken:

Happy new year !!
Thank you so much for your detailed reply. That helps a lot !!!! My thought
is much clearer now.

Yes, I did use different directories for *build pass 1* and *build pass 2*;
and before moving to chapter 6, I *mv* all the *temporary* folders to
another folder named *temp*, that ensures all packages are rebuilt freshly
in chapter 6, using the tools built from chapter 5.


But, what do you mean by *(e.g. leaving the system, and reloading it)  *?
do you mean *load and remove a module* ?


BTW, why those USB flash or SD card are not intended for long-term use?
What is the trend then? Currently, all popular boards Pandaboard,
Beagleboard, RPI, are all using SD card for booting..... Can you help to
explain why you said that?


Finally, thanks gain...


Best Regards
Pei







On Tue, Jan 1, 2013 at 4:03 PM, Ken Moffat <zarniwhoop at ntlworld.com> wrote:

> On Tue, Jan 01, 2013 at 03:23:21PM -0800, JIA Pei wrote:
> > Hi, all:
> >
> > I'm building LFS SVN 20130101, however, I don't know how to solve the
> > following problem:
> >
> > *root:/# xz*
> > *bash: /tools/bin/xz: No such file or directory*
> >
> > There are 2 potential causes:
> > 1) I didn't prepare the tool xz before moving to the next stage, namely,
> > chapter 6. But now, I've already re-prepared it. Still, I got the above
> > error message continuously.
> > 2) Maybe I've already prepared the tool xz before chapter6, in such a
> case,
> > xz cannot be well prepared in this SVN.
> >
> >
> > Did anybody have the same issue?
> >
> http://www.linuxfromscratch.org/lfs/faq.html#any-no-such-file
>
>  Your english is good, but you do not understand what you are doing.
> Making errors is common, and many of us have learned from our own
> errors.  But we needed to put some effort into understanding what
> went wrong.
>
>  In this specific case, from the *host* run
> ldd /tools/bin/xz
>
>  That will show you at least one link to a host library in /usr or
> /lib, instead of a link to a library in /tools.  Perhaps you have
> similar erors in other packages - as well as not correctly adjusting
> the toolchain (as mentioned in the FAQ), this can also happen if you
> stopped the build and then returned to it without setting up the
> environment correctly.
>
>  I recall you posted that your sd card had become unmounted because
> of inactivity : that is a weird thing to happen, but perhaps
> plausible for desktop distros which try to guess, wrongly, what you
> want to do.
>
>  You also said you had built LFS, but it didn't boot.  Rebuilding
> LFS in the hope that will fix the problem is silly : sometimes, a
> rebuild is needed, but until you understand *why* it won't boot you
> are grasping at straws.  Often, fixing the kernel config, or
> /etc/fstab, or the grub command line, will get a system which boots.
> It all depends on the exact error.
>
>  And finally, since you didn't respond to my earlier post, why are
> you building on a card ?  Booting removable (usb) storage is harder,
> and (cheap, consumer-grade) cards and sticks are not intended for
> long-term use with "sane" filesystems - they are built down to a
> price, and targetted at the wear patterns of FAT filesystems.
> Expect them to die suddenly.
>
>  So, I recommend you examine every package you installed in /tools
> to determine which of them are linked to host libraries, and then
> spend some time thinking about how you built them (e.g. leaving the
> system, and reloading it) so that you do not repeat the same
> procedural mistakes.  I guess by now that you have learned to remove
> the source directories (and any build directories) when building a
> package the second time, but I'll stress that again to emphasize it.
>
>  Building LFS can be quite hard, there is no need to make it harder
> for yourself.
>
> ĸen
> --
> das eine Mal als Tragödie, das andere Mal als Farce
> --
> http://linuxfromscratch.org/mailman/listinfo/lfs-support
> FAQ: http://www.linuxfromscratch.org/lfs/faq.html
> Unsubscribe: See the above information page
>



-- 

Pei JIA

Email: jp4work at gmail.com
cell:    +1 604-362-5816

Welcome to Vision Open
http://www.visionopen.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-support/attachments/20130101/0200869e/attachment.html>


More information about the lfs-support mailing list