LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   LFS 7.1 Chapter 6.8 man pages, no tarball available (http://www.linuxquestions.org/questions/linux-from-scratch-13/lfs-7-1-chapter-6-8-man-pages-no-tarball-available-4175442230/)

engineer 12-19-2012 06:42 PM

LFS 7.1 Chapter 6.8 man pages, no tarball available
 
So, I'm going through the install process without any further issues, and then I arrive at 6.8, where I am supposed to install the man pages for the utilities and programs.

It seems that when I downloaded the tarballs from the wget list, for whatever reason, the download failed (or was somehow deleted) for the man pages tarball.

Now that I am in the chroot environment, with no wget to work with, is there a way to download this tarball so that I can install the package? I'm a bit afraid of leaving the chroot environment, since I have heard issues with people not being able to properly get back in, or somehow contaminate the LFS system.

Can you please advise if the best course of action is to leave the chroot jail (if so, how I would go about doing that, and get back in safely), download the package to the /mnt/lfs/sources directory, and then re-enter the chroot environment to install?

I've never used this chroot env, so any advice is appreciated!

stoat 12-19-2012 09:56 PM

You're doing all this in a terminal in the host. So can't you open another terminal, use the host to download the file to /mnt/lfs/sources, go back to your original terminal, and soldier on? I can only do this in my head here at the moment, but it's working in there.

P.S.: For next time, run md5sum on the md5sums file (found where you got the wget-list file) before starting. It's not only a good idea to verify the downloads, but it would have alerted you to the missing tarball.

P.P.S.: I usually have to exit from and return to the chroot environment while building LFS. I never had a problem. To exit: logout, umount the virtual filesystems, and umount $LFS. To return: export the LFS variable again, mount the partition at $LFS again, mount the virtual filesystems (see sections 6.2.2 & 6.2.3), and run the same chroot commands again for the chapter you were in. Those are slightly different for chapter 6 (see section 6.4) and 7 (see section 6.65).

engineer 12-19-2012 10:03 PM

Well, since I'm in the chroot environment, can I just "su" back to the original user? I'm not sure of the proper commands to leave the chroot and re-enter without messing anything up... If the commands in the book to enter the chroot will still apply for re-entering later, I can use those, but what about leaving? Is there anything I need to do before I simply su to my host user, or will that even work?

stoat 12-19-2012 10:21 PM

What I meant was to leave that terminal you're working in alone for a minute, open another terminal in the host, and download the file as your normal user in the host using the host's utilities. Once the file you need is in /mnt/lfs/sources, go back to the terminal you were working in and continue. Maybe I'm just sleepy or something and not thinking clearly. I certainly can't duplicate the situation and try it right now.

druuna 12-20-2012 01:07 AM

Sometimes, for whatever reason, a specific package cannot be downloaded from the site(s) mentioned in the book. If that is the case you can have a look here:

- LFS Packages

Individual package are available, but also a tarbal with all packages (and patches).

About the chrooted environment and leaving it: As stoat mentioned already, you don't have to leave. Use a second (third ...) terminal. If you do leave the chrooted environment (exit, ctrl-d) then chroot back into it once you're done. Do make sure you use the correct chroot command.

engineer 12-20-2012 07:51 AM

Okay, perfect. I didn't realize that I could simply open up another terminal window, although I suppose it makes perfect sense.

Will try this tonight and press onwards.

Thanks again.

engineer 12-20-2012 06:01 PM

I opened a new terminal window, downloaded the file (the URL in the wget list was bad, so I used the link above to get the file) and put it into the /mnt/lfs/sources directory, and proceeded with the build without issue. Thanks for all the help.

Now, I'm installing glibc--14.2 SBU!!!

engineer 12-20-2012 06:02 PM

I opened a new terminal window, downloaded the file (the URL in the wget list was bad, so I used the link above to get the file) and put it into the /mnt/lfs/sources directory, and proceeded with the build without issue. Thanks for all the help.

Now, I'm installing glibc--14.2 SBU!!!


All times are GMT -5. The time now is 03:27 PM.