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 - Distributions > Linux From Scratch
User Name
Password
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


Reply
  Search this Thread
Old 05-27-2008, 03:51 AM   #1
dushyant88
LQ Newbie
 
Registered: May 2008
Posts: 2

Rep: Reputation: 0
stuck at ch6.7.1 linux api headers LFS6.3


hi

I am stuck at ch6.7.1 installation of Linux API Headers

i run the command

sed -i '/scsi/d' include/Kbuild

and i get the following error

sed: can't read include/Kbuild: No such file or directory


I have chroot into system succesfully.
I got no error when compiling Linux API Headers in chapter 5!

Please can anyone tell me what i did wrong?

Thanks

Dushyant
 
Old 05-27-2008, 04:50 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

- Did you unpack linux-2.6.22.5.tar.bz2 and enter the created directory before issueing the sed command?

- Is the target file present ($LFS/<sourcedir>/linux-2.6.22.5/include/Kbuild)?

- Are you using linux-2.6.22.5.tar.bz2 or a newer kernel version?

Hope this helps.
 
Old 11-30-2008, 06:09 AM   #3
Geemo
LQ Newbie
 
Registered: Nov 2008
Posts: 12

Rep: Reputation: 0
Im having the same problem and i just checkd and saw

$LFS/sources/linux-2.6.22.5/include/kbuild

I dont know why. Pls help
 
Old 11-30-2008, 06:17 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Which directory are you in when issuing the command (have you checked my previous answer)?

You should enter the command while in: $LFS/sources/linux-2.6.22.5

Hope this helps.
 
Old 11-30-2008, 06:23 PM   #5
Geemo
LQ Newbie
 
Registered: Nov 2008
Posts: 12

Rep: Reputation: 0
well this is what I do:

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:37 PM   #6
Geemo
LQ Newbie
 
Registered: Nov 2008
Posts: 12

Rep: Reputation: 0
thx to all i just solve my problem. =)
 
Old 06-05-2010, 07:16 PM   #7
Jenniferpr
LQ Newbie
 
Registered: Apr 2010
Posts: 1

Rep: Reputation: 0
Unhappy How did you solve your problem

Quote:
Originally Posted by Geemo View Post
thx to all i just solve my problem. =)
Hi~Geemo,
I am having the same problem with you.
I follow each chapter's instruction step by step From Chapter 1 to Chapter 6. I did not encounter any errors before Chapter 6.7 in the past.

The book version I am using is "LFS_6.3".
The version of LiveCD I am using is "lfslivecd-x86-6.3-r2160.iso"


After I done " exec /tools/bin/bash --login +h " from Ch6.6.Creating Essential Files and Symlinks(in page 81)
The prompt of "I have no name!" changed to "root:/#"

Then, I keep typing the last 3 commands of Ch6.6 Creating Essential Files and Symlinks as below.

touch /var/run/utmp /var/log/{btmp,lastlog,wtmp}
chgrp -v utmp /var/run/utmp /var/log/lastlog
chmod -v 664 /var/run/utmp /var/log/lastlog



Before 6.7.Linux-2.6.22.5 API Headers I double check my status as below.

root:/# ls
bin dev home lost+found mnt proc sbin srv tmp usr
boot etc lib media opt root sources sys tools var

root:/# cd /usr/include
root:/usr/include# ls
root:/usr/include# cd /
root:/# ls
bin dev home lost+found mnt proc sbin srv tmp usr
boot etc lib media opt root sources sys tools var

Then I start to do the fist command of 6.7.1.Installation of Linux API Headers as below.


root:/# sed -i '/scsi/d' include/Kbuild
sed: can't read include/Kbuild: No such file or directory


Any help I will appreciate it.
 
Old 06-06-2010, 04:14 AM   #8
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Quote:
Then I start to do the fist command of 6.7.1.Installation of Linux API Headers as below.

root:/# sed -i '/scsi/d' include/Kbuild
sed: can't read include/Kbuild: No such file or directory
@Jenniferpr: Did you unpack the linux-2.6.22.5.tar.bz2 file, enter the created directory before executing the commands shown?

cd $LFS/sources
tar jxf linux-2.6.22.5.tar.bz2
cd inux-2.6.22.5
sed -i '/scsi/d' include/Kbuild
.
.
.


Hope this helps.
 
1 members found this post helpful.
  


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
Another LFS newb is stuck: Linux API headers won't install smoochie Linux From Scratch 19 06-13-2008 11:26 AM
Installation of Linux API Headers... crik91 Linux From Scratch 7 01-05-2008 03:11 PM
make headers_check errors [LFS V6.3, Sect 6.7 Linux-2.6.22.5 API Headers] michealoc Linux From Scratch 1 10-11-2007 09:03 AM
Installation of Linux API Headers martinwprior Linux From Scratch 3 09-28-2007 01:19 AM
"make headers_check" gives errors during "5.5.1 Installation of Linux API headers " void_man() Linux From Scratch 3 09-26-2007 09:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 06:15 PM.

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