64位ubuntu安装交叉编译工具链,显示找不到命令


 

是因为Ubuntu64位版本已不支持ia32-libs的软件包,而是使用了lib32ncurses5、lib32z1软件包做为替代,

所以在Ubuntu16.04版本当中应该安装执行:

sudo apt-get install lib32ncurses5 lib32z1

sudo apt update
sudo apt install qemu-user-static
sudo update-binfmts --install i386 /usr/bin/qemu-i386-static --magic '\x7fELF\x01\x01\x01\x03\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x03\x00\x01\x00\x00\x00' --mask '\xff\xff\xff\xff\xff\xff\xff\xfc\xff\xff\xff\xff\xff\xff\xff\xff\xf8\xff\xff\xff\xff\xff\xff\xff'

 

sudo apt update
sudo service binfmt-support start

  

sudo dpkg --add-architecture i386
sudo apt update
sudo apt install gcc:i386

 转自:https://www.jianshu.com/p/3df082840b40

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM