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.
|
 |
07-19-2003, 10:00 AM
|
#1
|
Member
Registered: Jun 2003
Distribution: Slackware 9.1 / Debian Sid
Posts: 57
Rep:
|
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
PWD=/usr/src/linux-2.4.20
PS1=\u:\w\$
CXXFLAGS=$CFFLAGS
OLDPWD=/usr/src
SHLVL=1
CFFLAGS=-03 -march=athlon-xp -mfpmath=sse
HOME=/root
TERM=xterm
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/static/bin
_=/static/bin/printenv
I have no name!:/usr/src/linux-2.4.20#
I've come too far to quit now, any help would be greatly appreciated.
|
|
|
07-19-2003, 10:14 AM
|
#2
|
Senior Member
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185
Rep:
|
you have to be root.
|
|
|
07-19-2003, 01:26 PM
|
#3
|
Member
Registered: Jun 2003
Distribution: Slackware 9.1 / Debian Sid
Posts: 57
Original Poster
Rep:
|
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
|
|
|
07-19-2003, 02:27 PM
|
#4
|
Senior Member
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571
Rep:
|
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.
|
|
|
07-19-2003, 03:04 PM
|
#5
|
Member
Registered: Jun 2003
Distribution: Slackware 9.1 / Debian Sid
Posts: 57
Original Poster
Rep:
|
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 
|
|
|
All times are GMT -5. The time now is 05:52 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
|
|