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.
ill stop there...with this --prefix=/static, shouldn't this be --prefix=$lfs/static? otherwise gcc will try and install into the host distro's /static directory...wouldn't it?
just needing to know if i need to add $lfs or not, hopefully i can get a quick reply
--prefix=/static: This is NOT a typo. GCC hard codes some paths while compiling and so we need to pass /static as the prefix during ./configure. We pass the real install prefix during the make install command later.
Read down the page a bit. That's straight off the Ch 5 GCC info/install page
I'm in chapter 6, and copying the kernel headers...i issue the commands it says, and im in the root of the directory tree (/) in the chroot environment...
when i issue them i get the error:
make : *** No rule to make target 'mrproper'. Stop.
i get the feeling im meant to be in some source code directory, but the manual doesn't state where?
The root of the kernel source is probably what it means. I'm not sure exactly where it's at so I can't take a peek to make sure. But yeah, it probably means the root of the kernel source, so:
/usr/src/sources/linux-2.4.20/
Is where you are meant to be.
That's my guess as this is sometimes referred to in some of the how-to's and is meant the kernel source's root
Bloody hell, I've been installing everything fine up until now!!
Another problem:
Chapter 6: Installing Man-Pages
It says to just issue make install...but how can you do this when there is no makefile?!!
I've tried ./configure but it tells me to use it with ./configure -ask...is that right?
if i do that then i get questions like Do you have the nroff source for man pages? [Yes]
idk!! So i just select yes.
troff command to use [troff -mandoc]: ACK!!! I don't know! i just hit enter
then it spits out at me straight after i hit enter:
./configure: /static/bin/awk: No such file or directory
./configure: /test: =:unary operator expected
./configure: /static/bin/awk: No such file or directory
Ok...i think i'll stop there, because that shouldn't be happening....
how am i _meant_ to compile Man files?
But when i issue just: make install from the /usr/src/sources/man-1.5k directory it gives me this error:
make: *** No rule to make target 'install'. Stop.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.