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-26-2002, 12:37 PM
|
#1
|
Member
Registered: Oct 2001
Location: Dublin, Ireland
Distribution: Mandrake 9.0 mostly!
Posts: 303
Rep:
|
Dunno if I installed kernel properly - ch 5
Im doing chapter 5 now but Im not sure if I installed the kernel properly.
I wrote a script exactly like the commands in the book, ie
#!/bin/sh
make mrpoper &&
yes "" | make config &&
blah blah blah
I made it executable & I have it in /$LFS/usr/src/linux
& I've been installing this
way the whole time cos I think it's easier to use VI for
long commands, anyway It compiles for about 2 mins & then
bombs out
saying make is exiting cos it cant find such & such a
directory.
Can anyone tell me if there is a way I can tell
it installed properly ??
or do I just have to carry on & hope
everything's OK.
Cheer's 
Last edited by amp2000; 03-26-2002 at 12:38 PM.
|
|
|
03-26-2002, 12:55 PM
|
#2
|
LFS Maintainer
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372
Rep:
|
Re: Dunno if I installed kernel properly - ch 5
Can you give us the exact error message?
You may also want to try http://search.linuxfromscratch.org to search through the mailing list archives.
|
|
|
03-26-2002, 01:03 PM
|
#3
|
Member
Registered: Oct 2001
Location: Dublin, Ireland
Distribution: Mandrake 9.0 mostly!
Posts: 303
Original Poster
Rep:
|
Thanks for the quick reply
I wish I could give you an exact error message (cant copy & paste YET)
I'll search through that link you gave me & let you know how I get on.
Cheer's
|
|
|
03-26-2002, 01:51 PM
|
#4
|
Member
Registered: Oct 2001
Location: Dublin, Ireland
Distribution: Mandrake 9.0 mostly!
Posts: 303
Original Poster
Rep:
|
Here's what I get when the compile fails:
This is the output from the 2nd time I tried to compile it
after I rebooted & ran make clean.
make[2]: Entering directory `/mnt/lfs/usr/src/linux/arch/i386/lib'
/mnt/lfs/usr/src/linux/scripts/mkdep -D__KERNEL__ -I/mnt/lfs/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -- checksum.S dec_and_lock.c delay.c getuser.S iodebug.c memcpy.c mmx.c old-checksum.c strstr.c usercopy.c > .depend
make[2]: Leaving directory `/mnt/lfs/usr/src/linux/arch/i386/lib'
make[1]: Leaving directory `/mnt/lfs/usr/src/linux'
make update-modverfile
make[1]: Entering directory `/mnt/lfs/usr/src/linux'
/mnt/lfs/usr/src/linux/include/linux/modversions.h was updated
make[1]: Leaving directory `/mnt/lfs/usr/src/linux'
mkdir: cannot create directory `/usr/include/asm': File exists
mkdir: `COPYING' exists but is not a directory
mkdir: `CREDITS' exists but is not a directory
mkdir: cannot create directory `Documentation': File exists
mkdir: `MAINTAINERS' exists but is not a directory
mkdir: `Makefile' exists but is not a directory
mkdir: `README' exists but is not a directory
mkdir: `REPORTING-BUGS' exists but is not a directory
mkdir: `Rules.make' exists but is not a directory
mkdir: `amp_setup_script' exists but is not a directory
mkdir: cannot create directory `arch': File exists
mkdir: cannot create directory `drivers': File exists
mkdir: cannot create directory `fs': File exists
mkdir: cannot create directory `include': File exists
mkdir: cannot create directory `init': File exists
mkdir: cannot create directory `ipc': File exists
mkdir: cannot create directory `kernel': File exists
mkdir: cannot create directory `lib': File exists
mkdir: cannot create directory `mm': File exists
mkdir: cannot create directory `net': File exists
mkdir: cannot create directory `scripts': File exists
cp: cannot create regular file `/usr/include/asm/a.out.h': Permission denied
cp: cannot create regular file `/usr/include/asm/apic.h': Permission denied
---------------------------
and loads more of the same
Any idea's anyone.
Cheer's
|
|
|
03-26-2002, 02:09 PM
|
#5
|
LFS Maintainer
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372
Rep:
|
Quote:
Originally posted by amp2000
Here's what I get when the compile fails:
This is the output from the 2nd time I tried to compile it
after I rebooted & ran make clean.
---------------------------
and loads more of the same
Any idea's anyone.
Cheer's
|
Looks like you might have unpacked the linux-x.y.z.tar.bz2 file as a different user. Whoever you try to run 'make clean' as (should be user 'lfs') has no access to do anything.
|
|
|
03-27-2002, 01:34 AM
|
#6
|
Member
Registered: Oct 2001
Location: Dublin, Ireland
Distribution: Mandrake 9.0 mostly!
Posts: 303
Original Poster
Rep:
|
Cheer's LFS, I installed it as lsf user but I then rebooted, started X & went in to an xterm window as lfs & ran make clean from there (It was the only way I could think of copying & pasting)
so I think there could have been 1 or 2 things I forgot to do after rebooting.
The original error I got was different to what I posted.
I'm in work now on a win machine so I'll try it again later & try post the original error.
Thanks again 
Last edited by amp2000; 03-27-2002 at 01:43 AM.
|
|
|
03-27-2002, 12:19 PM
|
#7
|
Member
Registered: Oct 2001
Location: Dublin, Ireland
Distribution: Mandrake 9.0 mostly!
Posts: 303
Original Poster
Rep:
|
I got it
It was failing when it tried to create the $LFS/usr/include/asm directory cos it already existed, so I just skipped that command & it installed.
Now I'm getting an error installing mawk 
|
|
|
03-27-2002, 03:53 PM
|
#8
|
LFS Maintainer
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372
Rep:
|
Quote:
Originally posted by amp2000
I got it
It was failing when it tried to create the $LFS/usr/include/asm directory cos it already existed, so I just skipped that command & it installed.
Now I'm getting an error installing mawk
|
First of all, stop using mawk. Use gawk. See the latest LFS book (use CVS).
Secondly, just a note "now I'm getting an error" really doesn't mean an iota to us  We need more information at the least the exact error messages you are getting.
|
|
|
03-28-2002, 01:23 AM
|
#9
|
Member
Registered: Oct 2001
Location: Dublin, Ireland
Distribution: Mandrake 9.0 mostly!
Posts: 303
Original Poster
Rep:
|
Hmmm, I wasnt using CVS, I think I'll start again, or start from scratch as they say
Quote:
Secondly, just a note "now I'm getting an error" really doesn't mean an iota to us We need more information at the least the exact error messages you are getting.
|
Nothing is more annoying than people saying they got an error & not posting it, I didnt post the error cos I wanted to try figure it out myself.
Thanks again lfs
|
|
|
All times are GMT -5. The time now is 01:11 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
|
|