LinuxQuestions.org
Review your favorite Linux distribution.
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 06-21-2009, 08:28 PM   #1
jason87x
LQ Newbie
 
Registered: Jun 2009
Posts: 10

Rep: Reputation: 0
lfs 6.4 chroot fails


using stable lfs book version 6.4
in chapter 6, step 6.4
when typing in this step:

chroot "$LFS" /tools/bin/env -i \
HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \
/tools/bin/bash --login +h

it fails with the error something like

chroot: /tools/bin/env: file or folder not found

even though the executable file env is clearly found with a ls of /tools/bin

note that the proper /tools link and $LFS are defined

any ideas?
 
Old 08-06-2009, 04:03 PM   #2
skyguy1990
LQ Newbie
 
Registered: Aug 2009
Location: CA
Distribution: Fedora/Ubuntu/LFS/64 Studio
Posts: 9

Rep: Reputation: 0
i have spent a good 6 hours researching this problem and i've only seen people with the same problem... i have never seen anyone answer it... it seems to be a big problem because it just completely dumps out and you can't fininsh
 
Old 08-06-2009, 04:14 PM   #3
ProtoformX
Member
 
Registered: Feb 2004
Location: Canada
Distribution: LFS SVN
Posts: 334

Rep: Reputation: 33
Quote:
Originally Posted by skyguy1990 View Post
i have spent a good 6 hours researching this problem and i've only seen people with the same problem... i have never seen anyone answer it... it seems to be a big problem because it just completely dumps out and you can't fininsh
Is this with or without the live cd? Because I have finished LFS 6.4 with the live cd as my host and I had no problems, I have build it on 2 different machines without a hitch.
 
Old 08-06-2009, 04:20 PM   #4
RaptorX
Member
 
Registered: Jun 2009
Location: Emden, Germany
Distribution: Slackware 12.2, Slax 6.1
Posts: 254

Rep: Reputation: 37
I am not a guru on linux, and actually is the first time i built LFS 6.4, but this is what i would check/do in your case:

- is the env executable?
- what happens when reinstalling Core-utils?
- maybe trying ldd on /bin/env shows something missing?
- try going some steps back and copy/paste the commands, maybe while installing you mistyped something...
- maybe you forgot to do the second pass of Core-utils?

hope any of those help you out.
 
Old 08-06-2009, 04:24 PM   #5
RaptorX
Member
 
Registered: Jun 2009
Location: Emden, Germany
Distribution: Slackware 12.2, Slax 6.1
Posts: 254

Rep: Reputation: 37
In this post I believe this guy is having exactly your problem or is at least similar, and one of the answers was:

Quote:
Originally Posted by rtg View Post
Looks like you are missing some library to me.

Try running ldd on /tools/bin/gcc while being in chroot and see what is missing.

I guess that you should check on that.

Last edited by RaptorX; 08-06-2009 at 04:27 PM.
 
Old 08-06-2009, 09:38 PM   #6
skyguy1990
LQ Newbie
 
Registered: Aug 2009
Location: CA
Distribution: Fedora/Ubuntu/LFS/64 Studio
Posts: 9

Rep: Reputation: 0
i was running with a Fedora 10 host at the time... that was about 6 weeks ago and i just clean started and i got it to work... idk what the problem was...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LFS 6 Chapter 6.3 chroot error gatblast45 Linux From Scratch 8 01-01-2008 03:12 AM
LFS chroot problem sagar priyadarshi Linux - Distributions 1 10-28-2007 09:18 PM
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 12:31 AM
chroot problem in LFS shahzadiub Linux From Scratch 4 07-21-2004 11:48 AM
chroot in lfs shahzadiub Linux - Newbie 5 06-23-2004 12:08 PM


All times are GMT -5. The time now is 01:49 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration