报错:error while loading shared libraries: libz.so.1: cannot open shared object file

  • OS: Kali linux
  • Compile toolchian: arm-none-linux-gnueabi
  •  
  • # arm-none-linux-gnueabi-gcc hook.c
  • arm-linux-gcc 交叉编译报错:
  • error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
  •  
  • 这个问题就是你64位的操作系统没有32位的类库,而android的SDK是要32位支持的,如果没装就只能是报上面的错!
  •  
  • 解决:
  • # sudo apt-get update
  • # sudo apt-get install lib32z1
  •  
  • 这时候编译:arm-none-linux-gnueabi-gcc hook.c 通过

 

posted @ 2020-09-08 14:21  张达嘛  阅读(2141)  评论(0编辑  收藏  举报