Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
What version of LFS are you using? The current version uses Linux-2.6.27.4 and doesn't include any sed's in section 6.7. In fact, I don't recall a sed when installing the Linux headers in any version of the book. Are you deviating from the instructions for a reason?
Distribution: LFS 5.0, building 6.3, win98se, multiboot
Posts: 288
Rep:
There is a typo in your sed command as you have posted. It is a capitol K in Kbuild, not lower case as you have typed kbuild. Not certain that is your problem, but that would cause the error.
Before issuing the build instructions for a package, the package should be unpacked and a cd into the created directory should be performed. If you are following the instructions in the book, then you will have downloaded all the tarballs to $LFS/sources (which becomes just /sources in chapter 6). Since you managed to successfully(?) complete section 5, we can assume your are in your chroot environment. At that point, to complete section 6.7.1 you would
Code:
cd /sources
tar xf linux-2.6.27.4.tar.bz2
cd linux-2.6.27.4
At that point, you would issue the commands as written in the book. But, this is no different than what you did in section 5, so I don't understand how you all of a sudden became confused.
root:/sources# tar -xvf linux-2.6.22.5.tar.bz2
root:/sources# cd linux-2.6.22.5
root:/sources/linux-2.6.22.5# sed -i '/scsi/d' include/kbuild
root:/sources/linux-2.6.22.5# sed:cant read include/kbuild: No such file or directory
Distribution: Mac OS X 10.6.4 "Snow Leopard", Win 7, Ubuntu 10.04
Posts: 322
Rep:
Quote:
Originally Posted by kevinalm
There is a typo in your sed command as you have posted. It is a capitol K in Kbuild, not lower case as you have typed kbuild. Not certain that is your problem, but that would cause the error.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.