Ubuntu16.0.4LTS 64位上运行32位程序,提示No such file or directory?错误的解决办法

来源:互联网 发布:成女脸型数据 编辑:程序博客网 时间:2024/05/19 19:56

转载地址http://blog.csdn.net/qq_33704587/article/details/53484228

今天在ubuntu64位机器上跑小甲鱼VIM练习小程序(32位的...),提示错误(我的是:libncursesw.so.5缺少这个动态链接库),原因当然很简单,因为缺少32库导致的....

百度,谷歌,stackoverflow上搜了好长时间,接近一上午委屈

终于搞定了,大致步骤如下,应该是可以精简的

1、确定有一个64位架构的内核

[plain] view plain copy
  1. dpkg --print-architecture  
http://write.blog.csdn.net/postedit?ref=toolbar&ticket=ST-26448-PcHHuBZE0Ze5iGqM59ci-passport.csdn.net
会提示:amd64

2、确认打开多架构支持功能

[plain] view plain copy
  1. dpkg --print-foreign-architectures  

输出:i386

附:打开多架构支持步骤:

[plain] view plain copy
  1. sudo dpkg --add-architecture i386   
  2.   
  3. sudo apt -get update  

3、检查拥有的库文件是否需要更新版本

[plain] view plain copy
  1. sudo apt-get dist-upgrade  

4、执行下面语句安装:重要

[plain] view plain copy
  1. sudo apt install lib32ncursesw5 lib32ncursesw5-dev  

5、此时在执行应该就可以了大笑


后记:没有大神给解答问题,屌丝只能去google,百度等,由此可以知道成为大神的路是孤独的,要学会品味这份孤独~,为所有的大神们点赞微笑


参考链接:

http://jingyan.baidu.com/article/7082dc1c539c15e40a89bd3e.html

http://www.linuxdiyf.com/Linux/21656.html

http://bbs.csdn.NET/topics/310138192


0 0
原创粉丝点击