報錯: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 通過

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM