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.
OK, so I type in 'make install' as user lfs and didn't get any errors. woo hoo.
Now I'm in section 5.8.1. The book says to
mkdir ../binutils-build
well, that, of course, gives me a permission denied.
so I just drop the ../ and do 'mkdir binutils-build'. So now I have /LFS/static/binutils-build. So, I make my usual assumption and un-tar the binutils-2.13.2.tar.bz2 file into there and of course it creates yet another directory, binutils-2.13.2. Hmmm... I don't really see the need for the extra binutils-build directory. Now I am in /LFS/static/binutils-build/binutils-2.13.2.
Of course, the binutils-build directory is probably supposed to be in the /LFS directory, not the /LFS/static directory.
I should have chosen the title:
'Fun with my LFS' rather than '...first apparent problem'
Edit: Hey I just saw the other 2 replies from fancypiper and azmeen... thanks.
And followed along in the book and did the chown thing, but I think that was just for the static directory. It never said anything about chown for /LFS. (or I missed it.)
echo $LFS is /LFS (I had this setup from when I installed slackware, before I saw that the book uses /mnt/lfs.)
I am using the files provided on the LFS CD I purchased, so I should have all the correct packages for this. I copied the packages into /LFS/packages, but I was moving them into /LFS/static, just because that seemed to be the thing to do.
Where exactly is your binutils-build directory??
Mine is in /LFS/static. Should that be back up in /LFS? Or, down in /LFS/packages?
Mine would be something like: /mnt/lfs/packages/binutils-build.
Actually anywhere other than om (whatever path)/binutils/ would be a good idea.
I'd also stay out of building in $LFS/static as well... Why? Because I'd like to see what directories are being created... I just love watching them grow
If you still want to build somewhere in $LFS/static... then create another directory... something like $LFS/static/workplace where you do all your compiling. Then when you're finished you can just rm -rf $LFS/static/workplace instead of hunting down the directories you've created on the way to building your LFS system and separating them from the real core dir tree you've built.
Hmmm... OK, I think I might now be seeing the forest in those trees.
I'll un-tar the packages to, say, /LFS/packages/temp, and then, when running the configure and make commands, since they all seem to have the --prefix=$LFS/static option, the stuff that needs to be in /static will go there and everything else will be outside of that.
I'm gonna start over now, before I go any further, and use that scheme.
Originally posted by itsjustme
I'll un-tar the packages to, say, /LFS/packages/temp, and then, when running the configure and make commands, since they all seem to have the --prefix=$LFS/static option, the stuff that needs to be in /static will go there and everything else will be outside of that.
Precisely! I have a feeling that you will do well in this experiment... Good luck!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.