Cannot install Linux API Headers in LFS 7.1 chapter 6.7
Linux From ScratchThis 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.
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.
Cannot install Linux API Headers in LFS 7.1 chapter 6.7
So I'm on 6.7 of LFS 7.1 using Ubuntu 11.10 as my host system and when I was trying to install the API headers this is what I got.
Code:
root:/sources/linux-3.2.6# make mrproper
make: /bin/sh: Command not found
make: /bin/sh: Command not found
Makefile:567: /sources/linux-3.2.6/arch//Makefile: No such file or directory
make: /bin/sh: Command not found
make: /bin/sh: Command not found
make: /bin/sh: Command not found
make: /bin/sh: Command not found
make: /bin/sh: Command not found
make: /bin/sh: Command not found
make: /bin/sh: Command not found
make: /bin/sh: Command not found
make: execvp: /sources/linux-3.2.6/scripts/gcc-goto.sh: Permission denied
make: /bin/sh: Command not found
make: *** No rule to make target `/sources/linux-3.2.6/arch//Makefile'. Stop.
I can only assume I typed something wrong previously. Thank you!
root:/sources/linux-3.2.6# ln -vs bash /tools/bin/sh
ln: failed to create symbolic link `/tools/bin/sh': File exists
I'm not sure what you are doing, but you cannot execute the mentioned ln -vs ... command from within the chrooted environment (the command is from chapter 5).
Chapter 5 is done as user lfs and sets up a temporary environment. (Most of) Chapter 6 is done as root user and from within a chrooted environment (this step: 6.4. Entering the Chroot Environment). Are you sure the PATH setting is correct?
Did you have any problems in the previous steps leading up to chapter 6.7? Especially when you enter the chrooted environment (6.4. Entering the Chroot Environment)
If you are at chapter 6.7: What is the output of the following commands:
Code:
echo $PATH
id
Please provide more details and info next time you post.
root:/sources/linux-3.2.6# id
uid=0(root) gid=0(root) groups=0(root)
The only problem I had was with the user you create in the book "lfs". At one point I discovered that I couldn't use "sudo" with that user and that the commands run under sudo did not work. I was getting the error:
Code:
lfs is not in sudoers file. This incident will be reported
So I just switched to the user profile I created with my Ubuntu install originally. Which makes me wonder which commands I ran earlier that did not run because of that error.
I'm on Ubuntu so when running certain commands like mount or even when I chroot I have to sudo. I figured it out in 6.2 when running:
Code:
mkdir -v $LFS/{dev,proc,sys}
That when trying to sudo as my lfs user that the error mentioned in my last post was stopping the command from doing anything. So i switched users. Now if there is something I missed that would keep from having to sudo constanly that would be great.
Well that would have been useful when I started I Think I might just start over I need to go over that again anyway not sure what commands might not have been run. Thanks everyone for your help!!
What are you trying to do and where are you in the book? I logged in as my ubuntu user the sudo su which gives me the root user.
If you open 2 terminals you can run them seperate
Running commands like in the first part of chapter 6 as the lfs user dont work I dont have permission and it makes me use sudo which doesnt work because im not in the sudoers file. I can do anything as my normal Ubuntu user but does that hurt anything if it's not run as user lfs.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.