LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 11-26-2008, 07:24 AM   #1
Geemo
LQ Newbie
 
Registered: Nov 2008
Posts: 12

Rep: Reputation: 0
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
 
Old 11-26-2008, 07:35 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
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?
 
Old 11-26-2008, 07:55 AM   #3
Geemo
LQ Newbie
 
Registered: Nov 2008
Posts: 12

Original Poster
Rep: Reputation: 0
This is the version

lfslivecd-x86-6.3-r2145.iso
 
Old 11-26-2008, 07:57 AM   #4
Geemo
LQ Newbie
 
Registered: Nov 2008
Posts: 12

Original Poster
Rep: Reputation: 0
Also I'm using the a guide for LFS but im stock in 6.7
 
Old 11-26-2008, 09:15 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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
 
Old 11-26-2008, 09:24 AM   #6
Geemo
LQ Newbie
 
Registered: Nov 2008
Posts: 12

Original Poster
Rep: Reputation: 0
I dont get the idea quite well. Can you explain a little more pls. =)
 
Old 11-26-2008, 09:41 AM   #7
kevinalm
Member
 
Registered: Oct 2003
Location: Iowa
Distribution: LFS 5.0, building 6.3, win98se, multiboot
Posts: 288

Rep: Reputation: 30
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.
 
Old 11-26-2008, 09:42 AM   #8
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
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.
 
Old 11-30-2008, 06:12 PM   #9
Geemo
LQ Newbie
 
Registered: Nov 2008
Posts: 12

Original Poster
Rep: Reputation: 0
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
 
Old 11-30-2008, 06:19 PM   #10
claudius753
Member
 
Registered: Jan 2004
Distribution: Mac OS X 10.6.4 "Snow Leopard", Win 7, Ubuntu 10.04
Posts: 322

Rep: Reputation: 31
Quote:
Originally Posted by kevinalm View Post
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?
 
Old 11-30-2008, 06:23 PM   #11
Geemo
LQ Newbie
 
Registered: Nov 2008
Posts: 12

Original Poster
Rep: Reputation: 0
I dont understand. Can you answer more clearly pls.
 
Old 11-30-2008, 06:27 PM   #12
claudius753
Member
 
Registered: Jan 2004
Distribution: Mac OS X 10.6.4 "Snow Leopard", Win 7, Ubuntu 10.04
Posts: 322

Rep: Reputation: 31
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.
 
Old 11-30-2008, 06:31 PM   #13
Geemo
LQ Newbie
 
Registered: Nov 2008
Posts: 12

Original Poster
Rep: Reputation: 0
man thx i know it was a stupid mistake but thanksreally thanks thankssss!!

=)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linus trademarks Linux rvijay Linux - News 13 09-05-2005 04:58 PM
Linux 2.6.6 Linus T Releases BenneJezzerette Slackware 12 03-29-2005 02:32 PM
Save LINUX and Linus - need your help here shazam75 Linux - News 6 01-29-2005 09:02 PM
ali aladdin v agp stinks :scratch: :scratch: :scratch: Mr Marmmalade Linux - Hardware 1 07-08-2003 05:11 AM
Linus Linux Announcement ddpicard General 7 12-17-2001 02:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration