LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 03-13-2004, 12:03 PM   #1
Zero-0-Effect
Member
 
Registered: Sep 2002
Location: Texas
Distribution: SlackWare - Current LFS - CVS
Posts: 267

Rep: Reputation: 31
Cannot Enter chroot /usr/bin/env directory not found


I about to compile the kernel for lfs in book 5.0. I exited out of chroot last night and went to log back in using the new chroot commands given bout 2 pages before the compile kernel area. I logged out before and logged back in with them but this time it is giving me a error saying cannot change root directory to /usr/bin/env - not a directory. Here is the command Im using to log in as it is written in the book.

Book:
Code:
  chroot $LFS /usr/bin/env -i \                                              
       HOME=/root TERM=$TERM PS1='\u:\w\$ ' \                                 
       PATH=/bin:/usr/bin:/sbin:/usr/sbin \                                   
       /bin/bash --login
What im typing in the terminal after su to root:
chroot $LFS /usr/bin/env -i HOME=/root TERM=$TERM PS1='\u:\w\$ ' PATH=/bin:/usr/bin:/sbin:/usr/bin /bin/bash --login

I checked /usr/bin directory and env is in there.

Is there another way to log in so that I can finish the install or am I doing something wrong?

Last edited by Zero-0-Effect; 03-13-2004 at 12:07 PM.
 
Old 03-13-2004, 12:23 PM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 47
is your $PATH set properly??
as ROOT type: echo $LFS
what does it say??
you may have to re-set the $PATH
export LFS=/mnt/lfs
or whatever the PATH to the lfs directory is...........

Last edited by 320mb; 03-13-2004 at 12:24 PM.
 
Old 03-13-2004, 12:41 PM   #3
Zero-0-Effect
Member
 
Registered: Sep 2002
Location: Texas
Distribution: SlackWare - Current LFS - CVS
Posts: 267

Original Poster
Rep: Reputation: 31
That did it.

Thanks 320mb!
 
  


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
/usr/bin/env: bad interpreter: Permission denied Master Fox Linux - Software 8 02-09-2012 08:25 AM
sudo /usr/bin/chroot /home/chroot /bin/su - xxx| /bin/su: user xxx does not exist saavik Linux - General 3 07-04-2007 10:30 AM
chroot: cannot run command `/tools/bin/env': No such file or directory Basel Linux From Scratch 5 06-30-2006 03:00 AM
bin/bash:usr/bin/lpr NO SUCH FILE OR DIRECTORY Adibe_Hamm Linux - Newbie 3 10-14-2003 02:30 AM
chroot problem (thinks 'env' is a directory) d33pdream Linux - General 1 02-23-2003 02:11 PM


All times are GMT -5. The time now is 09:06 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