开发板上二进制文件执行出错
bash: ./hello-arm: No such file or directory
error while loading shared libraries: libc.so.6: cannot open shared
原因:没有加载libc.so.6
解决方法:把libc.so.6,libc.2.3.2.so,ld-linux.so.2,ld-2.3.2.so拷贝到 /lib
设置环境变量
export PATH=/lib:$PATH
export LD_LIBRARY_PATH=/lib:$LD_LIBRARY_PATH
阅读(1595) | 评论(0) | 转发(0) |