Chapter 5 - Installing GCC...
with the installation command we're meant to enter:
patch -Np1 -i ../gcc3.2.patch && patch -Np1 -i ../gcc3.2-nofixincludes-2.path && mkdir ../gcc-build && cd ../gcc-build && ../gcc-3.2/configure --prefix=/static 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 :) |
Quote:
Read down the page a bit. That's straight off the Ch 5 GCC info/install page ;) Cool |
ROFL! thanks for that MasterC! :) From now on I'll read a little bit down the page..:D
|
ha ha ha, ;) I've been there thinking that, otherwise I wouldn't have known :D
You're welcome, and have fun! Cool |
Hmmmm, I've run into another problem:
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 Cool |
Thanks for that.
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? :cry: |
Man files aren't compiled, they are simply text files copied over to a specific location.
So you change to the man-pages package: make install That's it. All make install does is copy the files to the directory necessary. Cool |
btw, I'd unpack it again, just to make sure it's fresh and that you didn't mess anything up when you tried:
./configure And other things. Cool |
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. :cry: |
Yeah, that's because you are in the wrong package ;)
It's man-pages-1.52 So: /usr/src/sources/man-pages-1.52: make install ;) Unless of course you are here: http://www.linuxfromscratch.org/view...ter06/man.html Which of course would have the directions listed on that page ;) Cool |
ROFLMAO!
/me SLAPS SELF HARD!!! Thank god your here to point out my stupid mistakes MasterC ::D Thanks dude! |
Ha ha ha, :D you're welcome ;)
|
Lets see if this one can be worked out too :)
Chapter 6 - Installing Glibc I've patched it fine, I've ran ./configure --with-these-options fine...but when i issue make i get these errors: Code:
/sysdeps/unix/Subdirs > /usr/src/sources/glibc-build/sysd-dirs-tmp /static/bin/gawk? what is it? i don't remember installing anything called gawk...or even any stages to install something called gawk... Edit: I remember now installing Gawk....I did a search and it turns out there is a file in /static/bin/gawk...idk what make is complaining about?! |
Ya got me! IDK either. Here's some tips though (glibc dorked me up too):
I think I went and installed GAWK at this point, it has no dependencies anyway. Another, make sure you unpacked the linux-threads package in the glibc directory. Also, see if you can poke around the mail-lists I think that's where I found my solution with my glibc problem(s). Cool |
All times are GMT -5. The time now is 01:41 PM. |