LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   How do i get sed working once in chroot env? (https://www.linuxquestions.org/questions/linux-from-scratch-13/how-do-i-get-sed-working-once-in-chroot-env-683391/)

cambo87 11-14-2008 11:00 AM

How do i get sed working once in chroot env?
 
Hi all, I spent most of last night getting up to chapter 6 in the linux from scratch book on the live cd (its v6.2 of the book).

Today I've got myself up to chapter 6.9 and went to run the sed command and it came back and said "bash: sed command not found" :eek: I probably have messed up the sed install in chapter 5 but I don't fancy wiping the whole system and starting again. Is there any way to fix this? I've tried searching the lfs mailing lists and FAQ's and this forum but have found nothing so far, so any help or pointers to the right source would be much appreciated! :)

Cheers again

kevinalm 11-14-2008 01:17 PM

Oops! double post.

kevinalm 11-14-2008 01:32 PM

If it were me, I would try to install sed to /tools from within the chroot environment. First check your path and whether sed is in /tools (/tools/bin/sed iirc). If it's not in /tools and your $PATH (in chroot) is ok, the try to install sed like this from within chroot.

./configure --prefix=/tools
make
make install

Not sure if it will work, but if it does it shouldn't pollute the system too badly. Especially, since sed gets reinstalled again fairly early in the final pass.

Good luck.

cambo87 11-14-2008 02:57 PM

Got it working by just doing an alt-f2 to another shell which is the standard root login for the cd and installed it the usual way. Im annoyed I never thought of it at the time!! Happens to the best of us I suppose... :p

Thanks again for your help


All times are GMT -5. The time now is 08:19 AM.