Linux From Scratch This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
03-17-2009, 09:14 AM
|
#1
|
LQ Newbie
Registered: Mar 2009
Location: Europe
Distribution: Debian, Gentoo, Slackware
Posts: 19
Rep:
|
LFS install using DSL or Gentoo
hi all!
i'm about to install LFS an was thinking about using Damn Small Linux or the Gentoo Linux live (minimal install) CD as the host system for installation. anyone did this before? i know of people using Knoppix, is it ok with DSL or Gentoo too? i ask this 'cause of the time needed to get LFS running.. i'd like to take advance of other's experiences, if someone tells me it doesn't work with this way.. thanks in advance!
|
|
|
03-17-2009, 02:13 PM
|
#2
|
Member
Registered: Nov 2008
Location: ~/
Distribution: Arch || Sidux
Posts: 393
Rep:
|
LFS... In my opinion at first was a blast. In fact its the reason I prefer Gentoo as a main OS. In my opinion I'd go with the SystemRescueCD. It provides the basic necessities to build, and has Minefield installed to reference the web for needed help, or to post questions about compilation errors. Bootstrapping initially for me at first was the most difficult. Always getting compilation errors. So after my second attempt I decided I needed a good live disk with a browser.
Since then I have another computer with a kvm. I guess its really about personal preference. Though you'll notice, that alot of long time Gentoo users usually suggest SystemRescuecd (it has support for 64bit & 32bit kernels) for Gentoo builds. And I think that would also be true with an LFS build.
Again it really comes down to preferences. At first I tried the Gentoo Live cd and just couldnt get it to work with my comp. Haven't tried Knoppix, but it seems like a decent choice. Maybe even Sabayon lite LiveDVD. That is now my preference for a lvie disk. It has everything I need & it has a persistence mode. So I can save settings when I reboot.
|
|
|
03-17-2009, 05:43 PM
|
#3
|
Member
Registered: Aug 2006
Distribution: Slackware
Posts: 804
Rep:
|
I have used a Gentoo live cd to do an LFS build before. Works pretty well. I believe I used the 2008.0 cd, and it was on LFS 6.3 (I think). If you use the nice little script at the beginning of LFS, it should tell you if you have all the necessary tools.
|
|
|
03-18-2009, 08:48 AM
|
#4
|
LQ Newbie
Registered: Mar 2009
Location: Europe
Distribution: Debian, Gentoo, Slackware
Posts: 19
Original Poster
Rep:
|
thanks for the hints.. i'm gonna burn a SystemRescuecd anyway i think, i gave a look at it and seems pretty interesting. Yes true, i forgot the script. well, you'll probably know what i've done at last anyway.. 'cause i'm pretty sure i'll ask more than a few s.o.s. questions!
|
|
|
03-18-2009, 01:10 PM
|
#5
|
LQ Newbie
Registered: Mar 2009
Location: Europe
Distribution: Debian, Gentoo, Slackware
Posts: 19
Original Poster
Rep:
|
well.. SystemRescueCD did not work for me, this is what i got trying to compile the fist package, binutils:
Code:
WARNING: `makeinfo' is missing on your system. You should only need it if
you modified a `.texi' or `.texinfo' file, or any other file
indirectly affecting the aspect of the manual. The spurious
call might also be the consequence of using a buggy `make' (AIX,
DU, IRIX). You might want to install the `Texinfo' package or
the `GNU make' package. Grab either from any GNU archive site.
so, a requirement is not met, didn't check the lfs script, i was pretty sure it had all what needed.
or, it is my fault, perhaps i missed something..
|
|
|
03-18-2009, 02:45 PM
|
#6
|
Member
Registered: Nov 2008
Location: ~/
Distribution: Arch || Sidux
Posts: 393
Rep:
|
Are you using the ALFS script? Or are you using the LFS guide step by step..?
I am wondering if its referring to texinfo. Which should be installed with SystemRescueCd. Try
Though you might need to emerge --sync first
Last edited by manwithaplan; 03-18-2009 at 02:48 PM.
|
|
|
03-18-2009, 07:14 PM
|
#7
|
LQ Newbie
Registered: Mar 2009
Location: Europe
Distribution: Debian, Gentoo, Slackware
Posts: 19
Original Poster
Rep:
|
I'm using the LFS 6.4 standard book (step by step). I thought SystemRescueCd would be fine, but this is the output of LFS's requirements script:
Code:
#bash version-check.sh
bash, version 3.2.39(1)-release
/bin/sh -> /bin/bash
Binutils: (GNU Binutils) 2.18
version-check.sh: line 9: bison: command not found
yacc not found
bzip2, Version 1.0.5, 10-Dec-2007.
Coreutils: 6.10
diff (GNU diffutils) 2.8.7
find (GNU findutils) 4.4.0
GNU Awk 3.1.6
/usr/bin/awk -> /bin/gawk-3.1.6
gcc (GCC) 4.2.4 (Gentoo 4.2.4 p1.0)
GNU C Library stable release version 2.7,
grep (GNU grep) 2.5.1
gzip 1.3.12
Linux version 2.6.27.19-std116 (root@catalyst) (gcc version 4.2.4 (Gentoo 4.2.4 p1.0)) #1 SMP Wed Feb 25 19:40:00 UTC 2009
m4 (GNU M4) 1.4.11
GNU Make 3.81
patch 2.5.9
Perl version='5.8.8';
GNU sed version 4.1.5
tar (GNU tar) 1.21
version-check.sh: line 30: makeinfo: command not found
Compilation OK
it's obviously bad. i must conclude it is not a valid method for building LFS, perhaps it is for building Gentoo.. haven't tried yet.
I don't quite understand what you mean with "Which should be installed with SystemRescueCd". Do you mean you thought it was in the cd, or that i should emerge it? Since it is a live cd, i wouldn't see the point in doing this. Or, should I build a customized version of the cd?
|
|
|
03-18-2009, 07:52 PM
|
#8
|
Member
Registered: Nov 2008
Location: ~/
Distribution: Arch || Sidux
Posts: 393
Rep:
|
It meant that it was included with the cd. Those tools can be easily emerged.
Bison, yacc, texinfo ...
I built a 6.3 LFS with SRCD... It shouldn't be a big deal... You just need to emerge --sync then emerge the tools you need to continue.
Code:
emerge --sync && emerge -av bison yacc texinfo
|
|
|
03-19-2009, 02:41 AM
|
#9
|
LQ Newbie
Registered: Mar 2009
Location: Europe
Distribution: Debian, Gentoo, Slackware
Posts: 19
Original Poster
Rep:
|
ok, thanks. anyway, since i'll have to divide the whole process through days, i'd have to re-emerge all the packages needed, and preparing some steps everytime i reboot. i'll try to go with an installed host, to have some of the steps done. anyway, thanks for the tips, i didn't think emerging something from a live-cd was possible at all and i didn't know SRCD wich is really great. btw, i'm corious about this.. where does it install the files when i emerge something, directly in the Ram?
|
|
|
03-19-2009, 04:47 AM
|
#10
|
Member
Registered: Nov 2008
Location: ~/
Distribution: Arch || Sidux
Posts: 393
Rep:
|
I can see how a LiveCd can be a pain when your spreading out the build process over several days.
I use SRCD for alot of repairs and fixes. And Gentoo builds. Though in your case emerging a package is no different then when using Gentoo. The entire disk is not loaded into ram unless specified at boot. I use these parameters when starting SRCD
Code:
rescue64 dodhcp setkmap=us
Then when it finishes loading I use
to configure xorg & startx. After in which I emerge --sync.
I do have 4 gigs of ram, so i have never really worried about running out of space. You can always --sync then emerge your tools. Then remove the portage ebuilds for increased storage. You just need those three tools to continue. Then you can discard the portage database by deleting /usr/portage/, this removes all distfiles and ebuilds after emerge.
Now with the LFS build, I would create small partitions on the drive and mount it. Then download all sources for the project, and add another partition for the LFS build. So you have a backup of all downloaded sources in case of a problem. [partiton1=LFS] [partition2=LFS sources] and mount them.
LFS is simple just takes time and patience. I had to leave my PC on for several days when I built it at first... Just didn't want to loose my progress.
Depending on RAM you could go with Sabayon, a Gentoo binary based distro. They make a live MCE lite edition, I've use this, aand it has a persistence mode. From there you can save all your settings and progress. Just a suggestion. You still need too update equo, & update the database and install missing build tools (takes more ram)
You should be fine emerging and syncing in SRCD. And if your concerned about space then just delete the portage files in the dir I stated above, to increase space availability in virtual memory.
|
|
|
03-22-2009, 11:28 AM
|
#11
|
LQ Newbie
Registered: Mar 2009
Location: Europe
Distribution: Debian, Gentoo, Slackware
Posts: 19
Original Poster
Rep:
|
well thank you all for the tips, i solved the problem by building a live-cd optimized for the purpose myself. got a base of gentoo and all the tools needed, plus some scripts for automating routines (like chroot, profiles etc).
|
|
|
All times are GMT -5. The time now is 06:04 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|