解决chroot: failed to run command ‘./qemu-mips’: No such file or directory问题

by Netfairy - 2017-03-07

原因是qemu-mips依赖的链接库找不到,我们用

ldd ./qemu-mips
查看它依赖哪些库文件,结果如下

linux-vdso.so.1 (0x00007ffd8a999000)
	libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f6407f1e000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f6407d16000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f6407a12000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f64077f5000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f6407457000)
	libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f64071e2000)
	/lib64/ld-linux-x86-64.so.2 (0x000055693f1f4000)
然后分别把它复制到(以qemu-mips所在目录为根目录)相应目录下,问题解决。