LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
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

Reply
 
LinkBack Search this Thread
Old 03-26-2002, 12:37 PM   #1
amp2000
Member
 
Registered: Oct 2001
Location: Dublin, Ireland
Distribution: Mandrake 9.0 mostly!
Posts: 303

Rep: Reputation: 30
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.
 
Old 03-26-2002, 12:55 PM   #2
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
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.
 
Old 03-26-2002, 01:03 PM   #3
amp2000
Member
 
Registered: Oct 2001
Location: Dublin, Ireland
Distribution: Mandrake 9.0 mostly!
Posts: 303

Original Poster
Rep: Reputation: 30
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
 
Old 03-26-2002, 01:51 PM   #4
amp2000
Member
 
Registered: Oct 2001
Location: Dublin, Ireland
Distribution: Mandrake 9.0 mostly!
Posts: 303

Original Poster
Rep: Reputation: 30
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
 
Old 03-26-2002, 02:09 PM   #5
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
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.
 
Old 03-27-2002, 01:34 AM   #6
amp2000
Member
 
Registered: Oct 2001
Location: Dublin, Ireland
Distribution: Mandrake 9.0 mostly!
Posts: 303

Original Poster
Rep: Reputation: 30
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.
 
Old 03-27-2002, 12:19 PM   #7
amp2000
Member
 
Registered: Oct 2001
Location: Dublin, Ireland
Distribution: Mandrake 9.0 mostly!
Posts: 303

Original Poster
Rep: Reputation: 30
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
 
Old 03-27-2002, 03:53 PM   #8
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
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.
 
Old 03-28-2002, 01:23 AM   #9
amp2000
Member
 
Registered: Oct 2001
Location: Dublin, Ireland
Distribution: Mandrake 9.0 mostly!
Posts: 303

Original Poster
Rep: Reputation: 30
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows 98 was lost when Linux 9 was installed. The partition was properly created. lereisch Linux - Software 1 06-14-2005 10:25 AM
gcc installed but not working properly cylaxzene Linux - General 4 01-30-2005 12:30 PM
You do not have PyGtk-2 properly installed flamah Linux - Newbie 5 01-06-2005 12:13 PM
Are my video drivers installed properly? preiter Linux - Newbie 5 02-06-2004 09:42 PM
font not installed properly mw55309 Linux - Newbie 0 08-14-2003 05:39 AM


All times are GMT -5. The time now is 02:12 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration