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.
|
 |
04-05-2005, 11:53 AM
|
#1
|
Member
Registered: Mar 2002
Distribution: Debian, Kubuntu
Posts: 311
Rep:
|
Understand lfs
I'd really like to get lfs working but I'm running into some problems that to me don't make sense.
For instance mkdir tools and then creating a symlink to root. Not only does this not make sense but it doesn't work. There's another symlink that I can't locate at the moment where you link to c. That doesn't work for me either
What am I missing?
|
|
|
04-05-2005, 07:12 PM
|
#2
|
Member
Registered: May 2003
Location: The States
Distribution: Gentoo
Posts: 245
Rep:
|
It's been a while since I used LFS. Creating symlinks always seemed a bit strange because of the ordering of the arguments for the ln command. I am positive that if you follow the books instructions exactly then you can overcome your difficulties.
Try man ln if you really want to understand how to use the ln command.
|
|
|
04-07-2005, 02:43 PM
|
#3
|
Member
Registered: Mar 2005
Distribution: Slackware 10.1
Posts: 123
Rep:
|
Dude, thats just the problem! We are following the book to the letter. The lfs manual is riddled with wholes and misinformation, thats what I've been trying to tell you guys. Look, it may be that you former lfs builders used an older manual and maybe that manual was a little more precise, but 6.0 is a mess!!!
|
|
|
04-08-2005, 12:42 AM
|
#4
|
Member
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561
Rep:
|
If you are referring to this section:
http://lfs.osuosl.org/lfs/view/6.0/c...gtoolsdir.html
Then if that doesn't work, what it wants a link on the root (ie /) of your "current" filesystem that points to $LFS/tools. So just do this instead:
Code:
ln -s $LFS/tools /tools
And here is the "ls -l /tools" listing:
Code:
lrwxrwxrwx 1 root root 14 Apr 8 00:39 tools -> /mnt/lfs/tools
Last edited by DaHammer; 04-08-2005 at 12:44 AM.
|
|
|
04-08-2005, 09:59 PM
|
#5
|
Senior Member
Registered: Jun 2004
Posts: 2,553
Rep:
|
Quote:
Originally posted by matthewa
Dude, thats just the problem! We are following the book to the letter. The lfs manual is riddled with wholes and misinformation, thats what I've been trying to tell you guys. Look, it may be that you former lfs builders used an older manual and maybe that manual was a little more precise, but 6.0 is a mess!!!
|
no it's not a mess -- it all works perfectly
export LFS=/mnt/lfs
mkdir $LFS/tools
ln [OPTION]... TARGET... DIRECTORY
ln -s $LFS/tools /
it seems like if you guys can't get this basic stuff you shouldn't be doing lfs but wait till you understand stuff better
the book is flawless and we should thank the wonderfull people that made it but recognize lfs is not for beginners
|
|
|
04-09-2005, 02:00 AM
|
#6
|
Member
Registered: Mar 2005
Distribution: Slackware 10.1
Posts: 123
Rep:
|
Flawless? Ok.......we'll skip that argument altogether because it's obvious that the Linux community has to much pride to admit when there actually is a flaw!
Let's move on to the real point here. I really don't consider myself a Linux Beginner! I have been running on Linux systems for over two years now, RedHat.........Suse..........Mandrake.............FedoraCore..............SystemRescue (which I use nearly every day in my business).........Knoppix.............knoppix-STD.......and a whole host of others. Yes, I am a beginner when it comes to building a Linux system from the ground up. Thats why I began the lfs experience, and believe me it was an experience! My quest was to learn more about how Linux worked internally. My results...........: (other than the fact that eaach time I tried to post a help post in this forum on the topic I got some smart-ass answer):
I experienced problems at every single stage of the book, not because Im a beginner, but rather the information contained within the book is out-of-place, misinformed, and just plain wrong! Heres an example...........It begins by telling you about how you need to partition your harddrive for the build, then download the packages and patches, then set up your working environment ................ THEN IT TELLS YOU THAT YOU NEED A CERTAIN KERNEL ON THE HOST COMPUTER COMPILED A CERTAIN WAY!!!!!!!!!!........HUH? Should'nt that have been the first piece of information? Now, doesnt that kinda negate all that work you just did? Now you gotta do it all again if you dont have the right kernel!
So, tell me this............if a beginner wants to learn to build a Linux System........how is that beginner supose to learn when the teacher fails to convey the lesson properly?
Another question......Do you really think that this is the only way to build a Linux system? I guess all of the popular Linux distros were built this way to huh?..........Wrong!
There are other ways........there are better ways...........and I have found them. My system is up and running. Took me all of two days and the information was concise and to the point.
|
|
|
04-09-2005, 02:33 AM
|
#7
|
Member
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561
Rep:
|
While I agree that the host requirements should have been mentioned earlier in the book, prehaps in the prerequisites, not meeting those requirements hardly forces you to start all over. And if you're not comfortable in upgrading your host's kernel and/or gcc, you could always just download the LFS Live CD and instantly solve all your problems. It's also a generally good idea to skim through something first vs just starting it.
Is the LFS 6.0 book perfect? No. But given an adequate host, most any level user with a little common sense can do it. But sure you are likely to run into road blocks along the way. That's just part of the "learning process", if you ask me.
|
|
|
04-17-2005, 02:15 PM
|
#8
|
Member
Registered: Jul 2004
Location: Florida
Distribution: Slackware
Posts: 32
Rep:
|
nothing personal, matthewa, but you need to sit down. the only commands you have to "do all over again" are:
export LFS=/lfs/mount
mount /dev/hda? $LFS
su -lfs
doesn't sound like too tough a job for a linux stud like you, does it? it's a fine book and if you actually read the thing instead of just looking at the commands it states on p.38:
"In other words, more advanced techniques could be used to build the system."
Your rant about how "there are better ways" shows you weren't paying much attention to the text, just the commands, so i'm not surprised your lfs build attempts thus far have tanked.
finally, you contend that the book is "out-of-place, misinformed, and wrong" and then back it with a singular argument that you should have been told you needed a 2.6 kernel earlier on in the book. and then whine about all the extra work you have to do (three commands, ooooh..) because of this horrific mistake that proves lfs is an idiot's paradise. eesh. like i said, just sit down. you're not that good.
besides, i'm wondering why a self-described linux champ like yourself would be running a 2.4 kernel in the first place...-)
|
|
|
04-18-2005, 10:57 PM
|
#9
|
Senior Member
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914
Rep:
|
Hey Hey Hey now.... What chu' got against a 2.4 kernel?  They are a hell of alot more stable then that steaming pile of 2.6....
Seriously tho... I myself found the book to be straight forward and didn't have any problems but that doesn't mean other people are going to have the same expierences... We all need to blow some steam off now and again.
|
|
|
04-19-2005, 01:59 AM
|
#10
|
Member
Registered: Jul 2004
Location: Florida
Distribution: Slackware
Posts: 32
Rep:
|
lol, lfs has at times driven me nuts, definitely. i guess what steamed me most was the "better ways" comment, the book has a specific disclaimer regarding that so it seemed a totally unfair and cheap shot.
I hear that the 2.6 is now too big to put on a floppy. ugh. not really what i wanted to hear but oh well...-)
|
|
|
04-19-2005, 07:58 AM
|
#11
|
Member
Registered: Mar 2002
Location: West (By God) Virginia
Distribution: Debian Squeeze - Sid
Posts: 281
Rep:
|
[QUOTE]Originally posted by matthewa
.THEN IT TELLS YOU THAT YOU NEED A CERTAIN KERNEL ON THE HOST COMPUTER COMPILED A CERTAIN WAY!!!!!!!!!!........HUH?
Where did it say that? Never seen it till I got to BLFS and it was talking about installing X.
I installed lfs 6.0 with a 2.4 kernel on my host with NO problems.
|
|
|
04-19-2005, 09:48 AM
|
#12
|
Senior Member
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914
Rep:
|
Interesting... It does say that you need a matching kernel on your host along with a certain gcc or higher in order to build LFS....
|
|
|
04-23-2005, 02:33 AM
|
#13
|
Member
Registered: Mar 2005
Posts: 44
Rep:
|
Hi all,
hmm..seems to be a long debate abt LFS.......here are my coments....
first of all, i would agree that LFS is not the only way to build a linux distribution..u do have many ways but i would say LFS is the THE BEST in uderstanding how a linux system is build......
ofcourse it is clear that Beginners CANNOT build LFS without any FLAWS!......they have a long way to go...for example.......it is not wise to say "i cant understand how the hell to compile kernel" after going to kernel compilation chapter!................i think i made it clear.........
i think there are few flaws but that am damn sure would be related to ur host's system and not LFS's error.........and if there would be any change the LFS guys have asked to check with a URL, for example when u do 'make check' for gcc, for i686 machines they have given specific URL to check with the test summaries and there also to be done with some optimization tweak if Athlon machines.....so here if u r a beginner u cant BLAME LFS to be wrong!
ofcourse it is not i didnt get any error...........i just started LFS 6.0 last week and now becoz of a simple error now i have to rebuild my LFS system!!.....the mistake was GCC was not installed in the LFS system.........probably i shud have missed the 'ln -s gcc /tools/bin/cc" becoz there was no cc file...i cant tell this to be an error of LFS but it shud my mistake!...........
the GCC and GLibc are very important and it is always wise to know what these 2 are and how they are configured for a machine.....those static and dynamic concepts are really important...
people can try Busybox before going to LFS also becoz that does provide a basic root filesystem and utils working........ http://www.busybox.net/ , this is just for ur understanding and IT IS NOT ANOTHER OPTION!
anyway post ur comments friends.....
with regards,
C.C.Chakkaradeep
|
|
|
All times are GMT -5. The time now is 03:15 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
|
|