问题描述
执行./qemu-mips ./hello_mips时报错。
错误信息
error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
解决方案
find / -name "libc.so.6"
显示信息/usr/mips-linux-gnu/lib/libc.so.6export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/mips-linux-gnu/lib
路径就是上面找到的路径source /etc/profile
使其生效。
要是还不行,就直接cp过去。