Linux From ScratchThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I get the error /tools/bin/env: command not found, though I cd'ed into /tools/bin which contains a file "env". Why doesn't this work? The error is slightly different than others I've seen, so I hope I don't have to start over.
Your question seems to be lacking a little context but for some basic responses .. is the file executable ? .. also it probably won't be in your PATH so you'll need to run it as './env' or '/tools/bin/env'
Your question seems to be lacking a little context but for some basic responses .. is the file executable ? .. also it probably won't be in your PATH so you'll need to run it as './env' or '/tools/bin/env'
thanks so much for replying...
sorry, but by making it executable, you mean chmod 755, correct? here is the page in the lfs book: http://www.linuxfromscratch.org/lfs/...06/chroot.html and what exactly did you mean by "won't be in your PATH"? sorry, just not sure what you mean...
As which user are you doing this? Chapter 5 needs to be done as user lfs and chapter 6 as user root.
What's the output of the following commands:
ls -l /tools/bin/{e,ho}* echo $LFS
The env command is part of the coreutils package (5.17. Coreutils-8.4). If anything went wrong in that chapter, more commands are not correct (try /tools/bin/hostname and /tools/bin/echo "X" and see if those commands work).
Thanks so much for replying, I did all of Chapter 5 as user "lfs", created at the beginning, and all of Chapter 6 as root. Here is the output of those commands:
If all three commands you tried (env, hostname and echo) failed then something must have gone wrong in chapter 5, probably the coreutils chapter.
You are still in the early stage of chapter 6 so a re-visit to chapter 5 must still be possible. Redo all the steps in chapter 5.17. Coreutils-8.4 (mind you: as user lfs!!).
I don't think any of the later packages need to be redone (the hostname part for perl is only for testing).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.