Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
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.


  Search this Thread
Old 07-19-2003, 10:00 AM   #1
Registered: Jun 2003
Distribution: Slackware 9.1 / Debian Sid
Posts: 57

Rep: Reputation: 15
Question Problem Installing Linux-2.4.20 headers

While on the step Installing Linux-2.4.20 headers , and trying to run the make mrproper command, I can't get past this error.
I only found one other post that had sort of the same problem, and the solution there did not work for me. (ln -s /bin/bash /bin/sh) It told me /bin/sh already existed.

Here is the error:

I have no name!:/# cd /usr/src
I have no name!:/usr/src# cd linux-2.4.20/
I have no name!:/usr/src/linux-2.4.20# make mrproper
/bin/sh: sed: command not found
Makefile:254: arch//Makefile: No such file or directory
make: *** No rule to make target `arch//Makefile'. Stop.
I have no name!:/usr/src/linux-2.4.20#

Here is my environment, if that helps:

I have no name!:/usr/src/linux-2.4.20# printenv
CFFLAGS=-03 -march=athlon-xp -mfpmath=sse
I have no name!:/usr/src/linux-2.4.20#

I've come too far to quit now, any help would be greatly appreciated.
Old 07-19-2003, 10:14 AM   #2
Senior Member
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
you have to be root.
Old 07-19-2003, 01:26 PM   #3
Registered: Jun 2003
Distribution: Slackware 9.1 / Debian Sid
Posts: 57

Original Poster
Rep: Reputation: 15
I was root when I did the chroot command, and from what I understand, I should still be root. I tried the su command but that doesn't seem to be working yet. I did a whoami and it came back with this:

I have no name!:/usr/src/linux-2.4.20# whoami
whoami: cannot find username for UID 0

Isn't user 0 root?

BTW, I am using Mandrake 9.1 as the host system if that means anything, i've heard it is not as LFS-friendly as other distro's
Old 07-19-2003, 02:27 PM   #4
Senior Member
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Rep: Reputation: 47
I just started an LFS project. I'm not up to the header installation part yet, but looking at your error, am I correct that your problem here started when the process could not find the command 'sed' ?

Is sed in your path in Mandrake 9.1? Are the persmissions set for it?

My slackware system has sed in /bin and a link to it in /usr/bin.

Just a thought.

Edit: Oh, I see there's a step for installing sed for the LFS system in ch. 5.20 of the book. The sed I found was from my slackware system, since I haven't installed sed on LFS yet.

Last edited by itsjustme; 07-19-2003 at 02:31 PM.
Old 07-19-2003, 03:04 PM   #5
Registered: Jun 2003
Distribution: Slackware 9.1 / Debian Sid
Posts: 57

Original Poster
Rep: Reputation: 15
Well thank you very much itsjustme,
your reply made me start looking for sed and it was nowhere to be found.
Not sure how I missed it in chapter five but I did.
Just went back and installed it and the mrproper worked fine, one more hurdle crossed.

Thanks again


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Kernel Headers for SUSE Linux 9.2 budda-bless Linux - Newbie 3 01-21-2005 01:05 AM
Installing Kernel Headers gadams33 Linux - Newbie 1 08-06-2004 07:54 PM
Linux headers problem znif Linux From Scratch 4 06-26-2004 12:02 PM
installing kde headers leandroohf Slackware 0 01-15-2004 09:16 PM
Installing kernel headers gigs_42 Linux - Software 1 03-07-2003 07:22 AM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 07:23 AM.

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