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 10-18-2019, 06:35 PM   #1
gclark14
LQ Newbie
 
Registered: Oct 2019
Posts: 5

Rep: Reputation: Disabled
Question 6.7.1. Installation of Linux API Headers


Hey guys. Currently running in the chrooted environment. I see we are to run make on the directory that I understand to be $LFS/sources/Linux-5.2.8. Problem is I deleted the directory after making in chapter 5. Was I not supposed to be deleting these directories after each compilation? It said to delete it unless otherwise told not to. With that being said, what would my steps be to remedying this situation?

http://www.linuxfromscratch.org/lfs/...x-headers.html
 
Old 10-19-2019, 11:15 AM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi
You will still have the linux tarball, just re untar again, and do this with all the packages. Yes you are correct to remove the untarred dir wwhen it is built.
 
1 members found this post helpful.
Old 10-19-2019, 12:04 PM   #3
gclark14
LQ Newbie
 
Registered: Oct 2019
Posts: 5

Original Poster
Rep: Reputation: Disabled
Ok great thank you. I’ll have to switch user to lfs in order to decompress the files. Should not be a problem correct?
 
Old 10-19-2019, 12:07 PM   #4
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
root will untar them
 
Old 10-19-2019, 12:15 PM   #5
gclark14
LQ Newbie
 
Registered: Oct 2019
Posts: 5

Original Poster
Rep: Reputation: Disabled
Am I not supposed to be using root in the chrooted environment? When trying to untar them I end up with

Code:
(lfs chroot) root:/sources# ls linux-5.2.8.tar.xz       
linux-5.2.8.tar.xz
(lfs chroot) root:/sources# tar -xvf linux-5.2.8.tar.xz 
tar (child): xz: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
(lfs chroot) root:/sources#
 
Old 10-19-2019, 12:31 PM   #6
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
FYI
chroot is root, something else has gone wrong, proberbly ch 6.6
 
Old 10-19-2019, 12:51 PM   #7
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
did you reboot before starting ch 6?

Last edited by spiky0011; 10-19-2019 at 12:52 PM.
 
Old 10-19-2019, 12:53 PM   #8
gclark14
LQ Newbie
 
Registered: Oct 2019
Posts: 5

Original Poster
Rep: Reputation: Disabled
Not specifically between chapters 5 and chapter 6. I had rebooted previously though.
 
Old 10-19-2019, 01:12 PM   #9
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
reboot the system
set LFS for root
mount lfs partition
do ch6.2.2 and 6.2.3 and then chroot in again

Last edited by spiky0011; 10-19-2019 at 01:13 PM.
 
Old 10-19-2019, 01:40 PM   #10
gclark14
LQ Newbie
 
Registered: Oct 2019
Posts: 5

Original Poster
Rep: Reputation: Disabled
So strange I did try that again to no avail. I think at this point it wouldn't hurt to start from scratch. A good learning experience on the second pass.
 
Old 10-19-2019, 03:32 PM   #11
hendrickxm
Member
 
Registered: Feb 2014
Posts: 344

Rep: Reputation: Disabled
If you have to start from scratch, save some time and try using Keith's tools-tarballs from his LiveCD project. 8.2 can be used to build either systemd/sysV. 9.0 can only be used for sysV, as is because ch5 sysV no longer has util-linux. You could however build it once chrooted.
Set the $LFS, make the /mnt/lfs/tools dir, untar the tools tarball to /mnt/lfs/tools and continue from ch6.2.
And yes, you should always remove the dir from an untarred source after installing the package.
So basically untar, make, make install and remove the dir.

Last edited by hendrickxm; 10-19-2019 at 03:35 PM.
 
Old 10-20-2019, 06:57 AM   #12
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,156

Rep: Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857
Quote:
Originally Posted by hendrickxm View Post
... 9.0 can only be used for sysV, as is because ch5 sysV no longer has util-linux ...
Noticed util-linux was dropped from tool chain, i have no interest in systemd but i will put util-linux back into the 9.0 tools on the cd, 'cos i'm a nice guy i need to make some minor tweaks to it anyway, i'll post in the bootcd thread when its done. Thanks for that info.
 
  


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
[SOLVED] Chapter 6.7. Linux-3.16.2 API Headers , errors on installation of API headers JimmyJ1776 Linux From Scratch 9 02-17-2015 09:29 PM
Problem with 6.7.1. Installation of Linux API Headers basheer Linux From Scratch 5 10-15-2010 02:29 PM
Installation of Linux API Headers... crik91 Linux From Scratch 7 01-05-2008 03:11 PM
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 07:30 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