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.
The --prefix=..... and -with-local-prefix=.... make sure that the package is not installed in its default location (your host in this case), but in the Temporary environment location (what chapter 5 is all about).
lfs@debian:/mnt/lfs/gcc-build/gcc-4.4.1$ sudo make install
Do _NOT_ follow this advise!!! It will probably screw up your host! If you follow this advise your newly compiled gcc pass 1 will be part of your host, and _not_ lfs....
All steps in chapter 5 should be done as user lfs and no root rights are needed whatsoever at this stage!!
Be warned!!
@David1357: This is part of an LFS build and not "just" a gcc build/install on a normal system.
The --prefix=..... and -with-local-prefix=.... make sure that the package is not installed in its default location (your host in this case), but in the Temporary environment location (what chapter 5 is all about).
Hope this helps.
None of these commands have worked with out a hitch. With a lot of help from this forum I have been able find a work around but there has not been a command yet that has not worked with out an error. when I run this I get can not create executables and to look at the log file. which I will upload. I do know it is supposed to in a jail but do not know why the command is not working.
Do _NOT_ follow this advise!!! It will probably screw up your host! If you follow this advise your newly compiled gcc pass 1 will be part of your host, and _not_ lfs....
All steps in chapter 5 should be done as user lfs and no root rights are needed whatsoever at this stage!!
Be warned!!
@David1357: This is part of an LFS build and not "just" a gcc build/install on a normal system.
Do not worry if there is one thing I understood it that it has to be done by lfs and kept seperate of my normal debian system.
LFS 6.5 is stable and works. If you follow the on-line book (and do start with the first page...), it should all work.
I do advise to use the LFS liveCD as host and not the distro you currently use.
Most common starting problems are related to having a host that is not up to specs (iv. Host System Requirements). I do believe that the problem you are having is also related to this (missing or incomplete package install on your host).
Do not deviate from the LFS book unless you know what the implications are later on.
I'm not sure what you did/didn't do to get all this working, as it is still very early in the build I would suggest starting from scratch.
Tip: Do make a backup once you finish chapter 5 (see the "Caution" part in chapter 5.32), it makes life so much easier when something goes wrong in chapter 6.
LFS 6.5 is stable and works. If you follow the on-line book (and do start with the first page...), it should all work.
I do advise to use the LFS liveCD as host and not the distro you currently use.
Most common starting problems are related to having a host that is not up to specs (iv. Host System Requirements). I do believe that the problem you are having is also related to this (missing or incomplete package install on your host).
Do not deviate from the LFS book unless you know what the implications are later on.
I'm not sure what you did/didn't do to get all this working, as it is still very early in the build I would suggest starting from scratch.
Tip: Do make a backup once you finish chapter 5 (see the "Caution" part in chapter 5.32), it makes life so much easier when something goes wrong in chapter 6.
The lfs live cd will not boot on this pc don't know why. your are right I have had to update some programs on this comp. also you are right about me not keeping everything seperated. I found a tools directory in root on my main drive. not where it should be. Is there any way to recover from this or do I need to wipe eveything and start from scratch. I can move everything back to to the second drive where they are supposed to be. but I am not sure about the symlinks.
@David1357: This is part of an LFS build and not "just" a gcc build/install on a normal system.
Got it.
From the number of posts here about LFS, it seems to be too hard for a complete novice. Trying to help a complete novice, without having run through all the steps, seems to be difficult at best, and dangerous at worst.
LFS is indeed not easy when you have little experience (in general and LFS specific).
Ok I got my hands on a comp that will boot the live cd but the live system does not come with a program to untar compressed files. since it loads into memory can I install a archive program."i.e. gzip or something."
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.