Linux - Newbie This 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.
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.
|
 |
11-26-2008, 07:24 AM
|
#1
|
LQ Newbie
Registered: Nov 2008
Posts: 12
Rep:
|
6.7 Linus From Scratch, package linux-2.6.22.5
Can you give me a little explain of how to install this pls.
I am installing Linux-2.6.22.5 I do this:
cp -v linux-2.6.22.5.tar.gz $LFS/sources
tar -xvf linux-2.6.22.5.tar.gz
cd linux-2.6.22.5
sed '/scsi/d' include/kbuild
sed: can't read include/kbuild
I hope someone can help me
|
|
|
11-26-2008, 07:35 AM
|
#2
|
ReliaFree Maintainer
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
|
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?
|
|
|
11-26-2008, 07:55 AM
|
#3
|
LQ Newbie
Registered: Nov 2008
Posts: 12
Original Poster
Rep:
|
This is the version
lfslivecd-x86-6.3-r2145.iso
|
|
|
11-26-2008, 07:57 AM
|
#4
|
LQ Newbie
Registered: Nov 2008
Posts: 12
Original Poster
Rep:
|
Also I'm using the a guide for LFS but im stock in 6.7
|
|
|
11-26-2008, 09:15 AM
|
#5
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
LFS 6.3 § 6.7
You must be in that directory "linux-2.6.22.5 API Headers"
'cd "path-to"/linux-2.6.22.5....'
This goes for all commands in 6.7.1
|
|
|
11-26-2008, 09:24 AM
|
#6
|
LQ Newbie
Registered: Nov 2008
Posts: 12
Original Poster
Rep:
|
I dont get the idea quite well. Can you explain a little more pls. =)
|
|
|
11-26-2008, 09:41 AM
|
#7
|
Member
Registered: Oct 2003
Location: Iowa
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.
|
|
|
11-26-2008, 09:42 AM
|
#8
|
ReliaFree Maintainer
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
|
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.
|
|
|
11-30-2008, 06:12 PM
|
#9
|
LQ Newbie
Registered: Nov 2008
Posts: 12
Original Poster
Rep:
|
well this is how I do it:
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
I'm trying but i dont know what to do. Pls help
|
|
|
11-30-2008, 06:19 PM
|
#10
|
Member
Registered: Jan 2004
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.
|
Have you tried this suggestion?
|
|
|
11-30-2008, 06:23 PM
|
#11
|
LQ Newbie
Registered: Nov 2008
Posts: 12
Original Poster
Rep:
|
I dont understand. Can you answer more clearly pls.
|
|
|
11-30-2008, 06:27 PM
|
#12
|
Member
Registered: Jan 2004
Distribution: Mac OS X 10.6.4 "Snow Leopard", Win 7, Ubuntu 10.04
Posts: 322
Rep:
|
In your command you are typing
Code:
sed -i '/scsi/d' include/kbuild
You need to use a capital K instead of lowercase k
Code:
sed -i '/scsi/d' include/Kbuild
Last edited by claudius753; 11-30-2008 at 06:42 PM.
|
|
|
11-30-2008, 06:31 PM
|
#13
|
LQ Newbie
Registered: Nov 2008
Posts: 12
Original Poster
Rep:
|
man thx i know it was a stupid mistake but thanksreally thanks thankssss!!
=)

|
|
|
All times are GMT -5. The time now is 03:55 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
|
|