Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to build lfs version 5.0.
Maybe I shouldn't have, but I didn't save my binutils directory, so I re-did it after chapter 5:
# Re-installation of Binutils
cd /mnt/lfs/lfs-5.0-packages
bzcat binutils-2.14.tar.bz2 | tar -xv
cd binutils-2.14
mkdir ../binutils-build
cd ../binutils-build
../binutils-2.14/configure --prefix=/tools \
--enable-shared --with-lib-path=/tools/lib
make
make check
# If there is a failure, it would look like this:
# make[1]: *** [check-binutils] Error 2
make install
make -C ld clean
make -C ld LIB_PATH=/usr/lib:/lib
# End of re-installation
Question 1 - was this a mistake? If so, do I have to start all over again?
In chapter 6, I followed the rules, and came to the Installation of the kernel headers. I unpacked linux-2.4.22, and did the following:
cd linux-2.4.22
chown -R 0:0
this didn't work, so I entered:
chown -R 0:0 /tools
and this worked.
Then I entered:
make mrproper
and this message came up:
root:/tools/lfs-packages-5.0/linux-2.4.22# make mrproper
/bin/sh: line 1: sed: command not found
Makefile:259: arch//Makefile: No such file or directory
make: *** No rule to make target `arch//Makefile'. Stop.
Question 2
Was this related to Question 1, and if not, what can I do?
Should I just start all over again?
Thanks - Peter
Is sed installed? Is it in your path?
Try "chown -R root:root ." or "chown -R 0:0 .". If you installed glibc already, typing root:root will work. Note that you have to give chown the file/directory to be chowned.
Thanks for the replies.
I did the right thing, swallowed my ego and keen sense of 'gotta gedditdonetoday', scrubbed it and started all again.
I managed to complete the whole damn thing in one session, by taking it slowly.
I think the help in the book is probably set at the right level - obviously every man (woman) and his/her dog it going to do a lfs before they are quite ready. It's always a good way to learn in my experience, but obviously a bit of a hassle of the gurus out there.
I'm now starting blfs - which seems to be the real task, but it's a hassle because I can't get my USB ADSL Speedtouch talking - but that's another forum, I guess - I've downloaded all the gunk on pppoe and ppoa - aint life fun.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.