ubuntu 14.04 64bit安装32位运行库

时间:2022-03-22 04:30:37

有些程序在ubuntu 14.04 64bit上不能成功运行,比如arm-none-linux-gnueabi安装成功了,但运行arm-none-linux-gnueabi-gcc -v ,出现:

bash: /opt/arm-2014.05/bin/arm-none-linux-gnueabi-gcc: No such file or directory

此时需要安装ia32-libs:

 # sudo apt-get install ia32-libs

如果找不到ia32-libs,需要做如下处理:

# sudo -i
# cd /etc/apt/sources.list.d
# echo "deb http://old-releases.ubuntu.com/ubuntu/ raring main restricted universe multiverse" >ia32-libs-raring.list
# apt-get update
# apt-get install ia32-libs

要等待一段时间进行下载安装,安装成功后建议再还原:

# rm /etc/apt/sources.list.d/ia32-libs-raring.list
# apt-get update
# exit

再去运行需要32位库的程序,就会发现可以运行了。