LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Book says to install the same packages again????? (http://www.linuxquestions.org/questions/linux-from-scratch-13/book-says-to-install-the-same-packages-again-14151/)

Chijtska 02-12-2002 08:13 PM

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... :-)

dj_relentless 02-12-2002 10:31 PM

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..

Chijtska 02-12-2002 11:09 PM

"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

dj_relentless 02-12-2002 11:16 PM

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..

lfslinux 02-13-2002 08:54 AM

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).

lfslinux 02-13-2002 08:57 AM

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?

Chijtska 02-13-2002 01:33 PM

why would you need to re-extract the package when youve already unpacked it?

lfslinux 02-13-2002 02:43 PM

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"

Chijtska 02-13-2002 09:36 PM

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?

dj_relentless 02-15-2002 02:55 PM

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 :)


All times are GMT -5. The time now is 12:50 PM.