LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 11-14-2008, 11:00 AM   #1
cambo87
LQ Newbie
 
Registered: Nov 2008
Distribution: ubuntu 8.04
Posts: 2

Rep: Reputation: 0
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" 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
 
Old 11-14-2008, 01:17 PM   #2
kevinalm
Member
 
Registered: Oct 2003
Location: Iowa
Distribution: LFS 5.0, building 6.3, win98se, multiboot
Posts: 288

Rep: Reputation: 30
Oops! double post.

Last edited by kevinalm; 11-14-2008 at 01:44 PM. Reason: Accidental double post, sorry
 
Old 11-14-2008, 01:32 PM   #3
kevinalm
Member
 
Registered: Oct 2003
Location: Iowa
Distribution: LFS 5.0, building 6.3, win98se, multiboot
Posts: 288

Rep: Reputation: 30
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.
 
Old 11-14-2008, 02:57 PM   #4
cambo87
LQ Newbie
 
Registered: Nov 2008
Distribution: ubuntu 8.04
Posts: 2

Original Poster
Rep: Reputation: 0
Thumbs up

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

Thanks again for your help

Last edited by cambo87; 11-14-2008 at 02:59 PM. Reason: im a doof :)
 
  


Reply



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
Glibc testsuit failed in chroot env rangalo Linux From Scratch 7 02-12-2006 11:32 AM
etc of the host changes while working in chroot env sharmashikha Linux From Scratch 3 06-15-2005 12:20 PM
intaling GCC-3.3.3. in chroot env FAILS tests xtrem Linux From Scratch 1 02-18-2005 12:24 PM
help? gettext fails test under chroot env jobesd Linux From Scratch 2 01-19-2005 07:13 PM
chroot problem (thinks 'env' is a directory) d33pdream Linux - General 1 02-23-2003 02:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration