![]() |
LFS Chroot Problem: Make
I'm trying to run the command 'make' in the chroot. However, it turned out not to be good.
Code:
bash: /tools/bin/make: No such file or directoryI tried running the 'make' outside the chroot ($LFS/tools/bin/make) and turned out good as usual. I wonder why, I have done perfectly in chroot-ing. The sanity test before chroot-ing gives the satisfying result: Code:
[Requesting program interpreter: /tools/lib/ld-linux.so.2]Code:
/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin |
Hi,
What is the actual command you executed? - make mrproper (this is correct) or - /tools/bin/make mrproper (this is not correct) Hope this helps. |
Hi I take it you are doing 6.8, sorry to state the obvious did you do section 6.6 ok, And I presume you are doing
http://www.linuxfromscratch.org/lfs/...x-headers.html |
Quote:
|
Hi,
The error message you posted (bash: /tools/bin/make: No such file or directory) shows that bash is specifically looking for /tools/bin/make. Normally if a command cannot be found you get the following message: bash: make: No such file or directory. I cannot point you to anything specific at this moment, but you need to find out why it is specifically looking for /tools/bin/make. Hope this helps. |
Quote:
Thanks |
hi,
Quote:
The make command you use in chapter 6 (after entering the chrooted environment) is installed during chapter 5 (5.26. Make-3.82), if something went wrong it should have shown up at that point. If you are not talking about make, but packages in general: Most packages that are build in chapter 6 have a make check (or make test) step. I don't think make itself is the problem if I look at your first post. Are you sure all the commands in chapter 6 are executed correctly (mainly the chroot command, but also the steps leading up to it). Also: Check your environment once you enter the chrooted environment (echo $PATH, env, set). Hope this helps. |
Quote:
|
Quote:
I suppose, the only way to check this is look what files are there, like: $ ls -l /tools/bin You could use the list of files installed, in the package descriptions of chapter 6 to compare... |
Okay, now I'm done with that problem. It seems that reinstalling the pack is the best solution.
However, I'm now encountering another problem regarding the make. When I'm trying the make mrproper command and the make headers_check command, it wont work :( The output for those are the same, strangely: Code:
make: /bin/sh: Command not found |
Hi,
Code:
make: /bin/sh: Command not foundI'm ignoring the other errors for now, you first need to solve the one about /bin/sh not being found. Hope this helps. |
yay, it works out well after I link the /bin/sh with bash!
Thank you all! :D |
You're welcome :)
|
| All times are GMT -5. The time now is 07:20 AM. |