LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   using a chroot environment to install software in LFS (https://www.linuxquestions.org/questions/linux-from-scratch-13/using-a-chroot-environment-to-install-software-in-lfs-833987/)

jmc1987 09-23-2010 06:27 AM

using a chroot environment to install software in LFS
 
Okay I got a working LFS system now and I am trying to install some x window software and I am just wondering if it would cause any issues by using the LFS CD to boot up and chroot into my LFS.

Also I would like to know if I mounted the drive under 64bit ubuntu would It still compile correctly on a 32bit LFS?

Thanks again

corbis_demon 09-23-2010 08:19 AM

Well, building further packages from inside the chroot environment should be no different than building the base system packages. So yes, unless noted otherwise ( I guess for Qt), you shouldn't have a problem. Your post doesn't indicate as much, so I suggest you try out the BLFS book to install other packages. As for building on a 64-bit OS, I haven't tried it so can't advise you there.

EDIT: I guess you can build 32-bit packages on a 64-bit platform. A multi-lib setup is required, though. You can refer to the CLFS project for further information on setting up a multi-lib environment.

druuna 09-23-2010 10:01 AM

Hi,
Quote:

Originally Posted by jmc1987 (Post 4106591)
Okay I got a working LFS system now and I am trying to install some x window software and I am just wondering if it would cause any issues by using the LFS CD to boot up and chroot into my LFS.

Why would you want to do that?

If you have a working/bootable LFS system, you can install software without chrooting. Just boot into LFS, cd to your sources directory (or wherever you placed your packages) and start configuring/making/installing.

LFS is just a very basic linux system. Have a look at BLFS. All extras and goodies are mentioned there, including dependencies (which most often are also in the BLFS book).

Quote:

Also I would like to know if I mounted the drive under 64bit ubuntu would It still compile correctly on a 32bit LFS?
Haven't tried this, but like I stated before: If you have a bootable/working LFS, why bother?

Hope this helps.

jmc1987 09-23-2010 12:11 PM

@corbis Thanks that is what I needed to know

@drunna I wanted to do it that way for kinda of a silly aka lazy reason. So I can copy and paste links and md5s mostley installing Xorg which I found out so far its a real pain lol. So much stuff. Thanks anyways.

and yes I am using the BLFS

druuna 09-23-2010 12:31 PM

Hi,
Quote:

Originally Posted by jmc1987 (Post 4106884)
I wanted to do it that way for kinda of a silly aka lazy reason. So I can copy and paste links and md5s mostley installing Xorg which I found out so far its a real pain lol. So much stuff.

This is what I do as first steps when starting with BLFS; I install these 2 packages (both mentioned in BLFS):

1 - GPM (General Purpose Mouse daemon) - Has no dependencies, it does give you copy and paste functionality.

2 -Lynx (text based browser) - Forget about the optional dependencies for now, you can always reinstall this package later on (if you wish to do so).

Now you are ready to build BLFS the easy way, no more typing everything yourself :)

Use Lynx to read the BLFS book and have the possibility to copy/paste to another terminal and have the possibility to get on the internet (assuming you have a working network).

Hope this helps.


All times are GMT -5. The time now is 08:00 PM.