Hi everybody,
I'm having trouble using bzip2 in the chroot enviroment in chapter 6.
I compiled bzip2 in chapter 5 and it worked wounderfull. I try to execute my compiled bzip2 in the host enviroment, and all is working nicely.
But once I chroot, it stops to work and returns a error message that doesn't help me any further.
Code:
bash: bzip2: No such file or directory
I tried every thing, I went directly into the /tools/bin dir and did a
./bzip2, it returnes the same problem. Then I checked my path:
Code:
$: echo $PATH
/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin
it is like the file bzip2 doesn't exist, but it is there, I checked with a
Code:
ls -l /tools/bin/bzip2
I was so desperate, that I desided to put some lines into the main function in bzip2.c just to see if they where executed, but the program doesn't even get to that point.
What can I do?
Any help is greatly apreciated