On 30 October 2018 at 12:10, wj193102 <wj193...@163.com> wrote: > That is my fault. I don't run the *.sh file. I copy the file "/bin/ls" from > the Linux on x86 CPUs to the Linux on non X86 CPUs. I put the file in the > new created directory, such as "/home/admin/user/test/". > Then I run the executable file,using "qemu-i386 ./ls", I get the following > error: "./ls: error while loading shared libraries: libselinux.so.1: cannot > open shared object file: No such file or directory." > How can I resolve this problem?
This is because you need not just the guest executable, but all the DLLs, data files and other things it requires. The easiest way to set this up is to use a chroot. There should be some tutorials on the web that you can look for to tell you how to set this up. thanks -- PMM