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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
04-17-2012, 02:40 AM
|
#1
|
|
LQ Newbie
Registered: Jul 2007
Location: Texas
Distribution: Ubuntu
Posts: 10
Rep:
|
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!
|
|
|
|
04-17-2012, 02:48 AM
|
#2
|
|
LQ Veteran
Registered: Sep 2003
Location: the Netherlands
Distribution: lfs, debian, rhel
Posts: 8,714
|
Hi,
Looks like /bin/sh isn't present (should be a link to /bin/bash).
Did you forget this step in chapter 5.16:
Code:
ln -vs bash /tools/bin/sh
Hope this helps.
|
|
|
|
04-17-2012, 02:55 AM
|
#3
|
|
LQ Newbie
Registered: Jul 2007
Location: Texas
Distribution: Ubuntu
Posts: 10
Original Poster
Rep:
|
I tried that seems I did that already:
Code:
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 totally confused
|
|
|
|
04-17-2012, 03:09 AM
|
#4
|
|
LQ Veteran
Registered: Sep 2003
Location: the Netherlands
Distribution: lfs, debian, rhel
Posts: 8,714
|
Hi,
Quote:
Originally Posted by ffx77905
I tried that seems I did that already:
Code:
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?
|
|
|
|
04-17-2012, 12:08 PM
|
#5
|
|
LQ Newbie
Registered: Jul 2007
Location: Texas
Distribution: Ubuntu
Posts: 10
Original Poster
Rep:
|
Now it's telling me that the directory /tools/bin/sh does not exist. But it is there. Why can't it find it if it does exist?
|
|
|
|
04-17-2012, 12:42 PM
|
#6
|
|
LQ Veteran
Registered: Sep 2003
Location: the Netherlands
Distribution: lfs, debian, rhel
Posts: 8,714
|
Hi,
Quote:
Originally Posted by ffx77905
Now it's telling me that the directory /tools/bin/sh does not exist. But it is there. Why can't it find it if it does exist?
|
Can I assume you are still at chapter 6.7.Linux-3.2.6 API Headers?
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: Please provide more details and info next time you post.
|
|
|
|
04-17-2012, 02:47 PM
|
#7
|
|
LQ Newbie
Registered: Jul 2007
Location: Texas
Distribution: Ubuntu
Posts: 10
Original Poster
Rep:
|
Here is what I got:
Code:
root:/sources/linux-3.2.6# echo $PATH
/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin
And:
Code:
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.
|
|
|
|
04-17-2012, 02:56 PM
|
#8
|
|
Senior Member
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,562
|
What commands were you running under sudo?? there should not be any
|
|
|
|
04-17-2012, 03:05 PM
|
#9
|
|
LQ Newbie
Registered: Jul 2007
Location: Texas
Distribution: Ubuntu
Posts: 10
Original Poster
Rep:
|
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.
|
|
|
|
04-17-2012, 03:15 PM
|
#10
|
|
Senior Member
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,562
|
You could run sudo bash which will give you root,
|
|
|
|
04-17-2012, 03:19 PM
|
#11
|
|
LQ Newbie
Registered: Jul 2007
Location: Texas
Distribution: Ubuntu
Posts: 10
Original Poster
Rep:
|
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!!
|
|
|
|
04-17-2012, 03:22 PM
|
#12
|
|
Senior Member
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,562
|
As druuna mentioned the 1st part is done as user lfs then you chroot in at chapter 6.4
|
|
|
|
04-17-2012, 03:38 PM
|
#13
|
|
LQ Newbie
Registered: Jul 2007
Location: Texas
Distribution: Ubuntu
Posts: 10
Original Poster
Rep:
|
I still ge the error that lfs is not in sudoers file. It keeps me from running commands. How do i fix that.
|
|
|
|
04-17-2012, 03:42 PM
|
#14
|
|
Senior Member
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,562
|
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
|
|
|
|
04-17-2012, 03:51 PM
|
#15
|
|
LQ Newbie
Registered: Jul 2007
Location: Texas
Distribution: Ubuntu
Posts: 10
Original Poster
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:10 AM.
|
|
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
|
|