LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 02-12-2002, 09:13 PM   #1
Chijtska
Member
 
Registered: Jan 2002
Location: High Falls, GA
Distribution: Mandrake8.2, FreeBSD, Solaris
Posts: 362

Rep: Reputation: 30
Book says to install the same packages again?????


Book says to install the same packages again?????

I find that by following the book it tells you to install most of the packages again once you have chrooted to $LFS... what gives?

not good.... not many browsers for this thread im afraid... not near as many "gurus" as i was lead to believe... :-)
 
Old 02-12-2002, 11:31 PM   #2
dj_relentless
Member
 
Registered: Jan 2002
Location: NZ, AKL
Distribution: Redhat 7.1
Posts: 168

Rep: Reputation: 30
And what is the difference between being chroot'd and not being chroot'd? Do a bit of reading and you'll answer your own question..

Don't forget to delete the source dirs of the packages and re-extract them. It might save some headaches while installing them..Well it would have for me..
 
Old 02-13-2002, 12:09 AM   #3
Chijtska
Member
 
Registered: Jan 2002
Location: High Falls, GA
Distribution: Mandrake8.2, FreeBSD, Solaris
Posts: 362

Original Poster
Rep: Reputation: 30
"Don't forget to delete the source dirs of the packages and re-extract them. It might save some headaches while installing them..Well it would have for me.."

re-extracting? the delting i get but ive never heard of re-extracting packages before
 
Old 02-13-2002, 12:16 AM   #4
dj_relentless
Member
 
Registered: Jan 2002
Location: NZ, AKL
Distribution: Redhat 7.1
Posts: 168

Rep: Reputation: 30
Figure of speech...
if you've extracted the files once..then you could consider it re-extracting..or you could just call it extracting twice..or you could call it twin-extraction..or re-extraction..

and don't worry the lfs maintainer god does read and post in this forum and he's usually right, never anything i asked that he didn't answer bar my own stupidity but i think lfs is young right now so consider yourself a pioneer, in a years time they'll thousands of us.. I definatly haven't regretted doing this, and if my games get better frame rates using a custom system then it'll all be worth it..
 
Old 02-13-2002, 09:54 AM   #5
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
Quote:
Originally posted by dj_relentless
Figure of speech...
if you've extracted the files once..then you could consider it re-extracting..or you could just call it extracting twice..or you could call it twin-extraction..or re-extraction..

and don't worry the lfs maintainer god does read and post in this forum and he's usually right, never anything i asked that he didn't answer bar my own stupidity but i think lfs is young right now so consider yourself a pioneer, in a years time they'll thousands of us.. I definatly haven't regretted doing this, and if my games get better frame rates using a custom system then it'll all be worth it..
What makes you think there aren't already thousands of LFS'ers out there?

At the _very least_ there are 2870 LFS'ers who have registered at http://linuxfromscratch.org/cgi-bin/lfscounter.cgi but judging from website and ftp log files at http://stats.linuxfromscratch.org there are thousands more who've at least downloaded the book at one time (it's impossible to tell if they use LFS at this present time).
 
Old 02-13-2002, 09:57 AM   #6
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
Re: Book says to install the same packages again?????

Quote:
Originally posted by Chijtska
Book says to install the same packages again?????

I find that by following the book it tells you to install most of the packages again once you have chrooted to $LFS... what gives?

not good.... not many browsers for this thread im afraid... not near as many "gurus" as i was lead to believe... :-)
Yes you install certain packages twice. First in chapter 5 you link them statically so they can be used in the chroot'ed environment without Glibc present. Also, those programs are compiled using your distribution's compiler and therefore considered 'tainted'. We re-compile those packages using the LFS compiler so that everything is "clean".

This is all explained here:
http://linuxfromscratch.org/view/3.2...whystatic.html

And to clarify the re-extracting term:

when you run "tar xvfj file.tar.bz2" (or something similar) you unpack the tar archive. Another word for unpacking is extracting (you extract files from the tar file and save it as seperate files outside the tar file).

re-extracting simply means unpacking the tar file for a second time (the first time being in chapter 5, the second time being in chapter 6 when a couple of packages are reinstalled).


I hope this all clears is up?
 
Old 02-13-2002, 02:33 PM   #7
Chijtska
Member
 
Registered: Jan 2002
Location: High Falls, GA
Distribution: Mandrake8.2, FreeBSD, Solaris
Posts: 362

Original Poster
Rep: Reputation: 30
why would you need to re-extract the package when youve already unpacked it?
 
Old 02-13-2002, 03:43 PM   #8
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
Quote:
Originally posted by Chijtska
why would you need to re-extract the package when youve already unpacked it?
Because the unpacked package from chapter 5 is already been used to compile the package with. You should not re-use a used source tree, especially not in the case where you're on a different system (when you are inside chroot you're in a totally different environment than when you're in your Redhat or whatever distro. Files are different, settings are different, etc).

This, by the way, is explained in "Chapter 2 - Important Information - How to install Software"
 
Old 02-13-2002, 10:36 PM   #9
Chijtska
Member
 
Registered: Jan 2002
Location: High Falls, GA
Distribution: Mandrake8.2, FreeBSD, Solaris
Posts: 362

Original Poster
Rep: Reputation: 30
so then when i first download the packages i should place them in /usr/src/sources then unpack them as i need them and then even delete the extracted folders and then when i move on to the later chapter i re-extract them and install from inside the $LFS shell?
 
Old 02-15-2002, 03:55 PM   #10
dj_relentless
Member
 
Registered: Jan 2002
Location: NZ, AKL
Distribution: Redhat 7.1
Posts: 168

Rep: Reputation: 30
Hey that is an impressive user base, and you'd definatly be right that not everyone that installed it registers the fact on the web site must be quite a few more...
wow..
Maybe you should start having birthdays for it
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Mandrake Update/Install Packages/Remove Packages wslyhbb Mandriva 2 03-15-2004 10:43 AM
4.1 book work for 5.0 install shanenin Linux From Scratch 1 01-21-2004 06:45 PM
book/ reference to learn how to compile, install softwares? sirpelidor Linux - Software 2 10-29-2003 07:29 AM
LFS 4.1 book install hung at section 6.14: Glibc-2.3.1 SparceMatrix Linux From Scratch 4 05-30-2003 05:56 PM
LFS 3.2 book, but LFS packages 3.0 CragStar Linux From Scratch 2 04-07-2002 04:15 PM


All times are GMT -5. The time now is 01:05 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration