Ubuntu16.04安装32位支持库

原文链接: https://blog.csdn.net/bfboys/article/details/53013662

Ubuntu16.04版本已不支持ia32-libs的软件包,而是使用了lib32ncurses5、lib32z1软件包做为替代,所以在Ubuntu16.04版本当中应该安装执行:

apt-get install lib32ncurses5 ​

apt-get install lib32z1


详细说明如下:
Ubuntu Linux 解决 bash ./ 没有那个文件或目录 的方法

经常在ubuntu 64位下运行 ./xxx 会跳出来说没有这个文件或者目录,但是ls看又有这个文件,很是奇怪。

其实原因很简单,是因为他没有32位的运行库 ia32-libs 会出这种八杆子打不着的奇怪提示。

直接安装即可。

apt-get install ia32-libs

然而,ubuntu16.04 并不再支持 ia32-libs 的软件包。

而是用 lib32ncurses5 lib32z1​软件包代替了 ia32-libs 软件包,因此,安装lib32ncurses5 lib32z1​就可以了:

apt-get install lib32ncurses5 ​

apt-get install lib32z1​

亲测可用!

安装完查看 uname -a或getconf LONG_BIT

自己到底有没有装上32位的库

猜你喜欢

转载自blog.csdn.net/weixin_42269817/article/details/102312861