Ubuntu16.0.4LTS 64位上运行32位程序,提示No such file or directory?错误的解决办法
2017-04-11 21:07
1236 查看
转载地址http://blog.csdn.net/qq_33704587/article/details/53484228
今天在ubuntu64位机器上跑小甲鱼VIM练习小程序(32位的...),提示错误(我的是:libncursesw.so.5缺少这个动态链接库),原因当然很简单,因为缺少32库导致的....
百度,谷歌,stackoverflow上搜了好长时间,接近一上午
终于搞定了,大致步骤如下,应该是可以精简的
1、确定有一个64位架构的内核
[plain] view
plain copy
dpkg --print-architecture
http://write.blog.csdn.net/postedit?ref=toolbar&ticket=ST-26448-PcHHuBZE0Ze5iGqM59ci-passport.csdn.net 会提示:amd64
2、确认打开多架构支持功能
[plain] view
plain copy
dpkg --print-foreign-architectures
输出:i386
附:打开多架构支持步骤:
[plain] view
plain copy
sudo dpkg --add-architecture i386
sudo apt -get update
3、检查拥有的库文件是否需要更新版本
[plain] view
plain copy
sudo apt-get dist-upgrade
4、执行下面语句安装:重要
[plain] view
plain copy
sudo apt install lib32ncursesw5 lib32ncursesw5-dev
5、此时在执行应该就可以了
后记:没有大神给解答问题,屌丝只能去google,百度等,由此可以知道成为大神的路是孤独的,要学会品味这份孤独~,为所有的大神们点赞
参考链接:
http://jingyan.baidu.com/article/7082dc1c539c15e40a89bd3e.html http://www.linuxdiyf.com/ href="http://lib.csdn.net/base/linux" target=_blank>Linux/21656.html
http://bbs.csdn href="http://lib.csdn.net/base/dotnet" target=_blank>.NET/topics/310138192
今天在ubuntu64位机器上跑小甲鱼VIM练习小程序(32位的...),提示错误(我的是:libncursesw.so.5缺少这个动态链接库),原因当然很简单,因为缺少32库导致的....
百度,谷歌,stackoverflow上搜了好长时间,接近一上午
终于搞定了,大致步骤如下,应该是可以精简的
1、确定有一个64位架构的内核
[plain] view
plain copy
dpkg --print-architecture
http://write.blog.csdn.net/postedit?ref=toolbar&ticket=ST-26448-PcHHuBZE0Ze5iGqM59ci-passport.csdn.net 会提示:amd64
2、确认打开多架构支持功能
[plain] view
plain copy
dpkg --print-foreign-architectures
输出:i386
附:打开多架构支持步骤:
[plain] view
plain copy
sudo dpkg --add-architecture i386
sudo apt -get update
3、检查拥有的库文件是否需要更新版本
[plain] view
plain copy
sudo apt-get dist-upgrade
4、执行下面语句安装:重要
[plain] view
plain copy
sudo apt install lib32ncursesw5 lib32ncursesw5-dev
5、此时在执行应该就可以了
后记:没有大神给解答问题,屌丝只能去google,百度等,由此可以知道成为大神的路是孤独的,要学会品味这份孤独~,为所有的大神们点赞
参考链接:
http://jingyan.baidu.com/article/7082dc1c539c15e40a89bd3e.html http://www.linuxdiyf.com/ href="http://lib.csdn.net/base/linux" target=_blank>Linux/21656.html
http://bbs.csdn href="http://lib.csdn.net/base/dotnet" target=_blank>.NET/topics/310138192
相关文章推荐
- Ubuntu16.0.4LTS 64位上运行32位程序,提示No such file or directory?错误的解决办法
- 64位Ubuntu运行32位程序时报文件不存在(No such file or Directory)的一种解决办法
- Linux运行shell脚本提示No such file or directory错误的解决办法
- Linux运行脚本命令提示No such file or directory错误的解决办法
- 32位ubuntu 12.04 下 error: gnu/stubs-32.h: No such file or directory错误解决办法
- 64位linux系统无法运行Android sdk的adb和aapt,提示No such file or directory的解决办法
- unable to execute No such file or directory,32位linux编译的程序在64位linux运行不了
- 在Linux下生成GUID的程序,及编译错误 “uuid/uuid.h: No such file or directory” 的解决办法。
- 64位linux下编译32位程序的错误“error: gnu/stubs-32.h: No such file or directory”
- 在Ubuntu安装完成后更改默认的语言LANG,出现Cannot set LC_CTYPE to default locale: No such file or directory错误的解决办法
- Ubuntu 14.04 LTS 解决adb无法运行 提示adb: No such file or directory 安装ia32-libs
- 在git bash中输入git init 提示错误信息: fatal: open /dev/null or dup failed: No such file or directory的解决办法
- 在Ubuntu安装完成后更改默认的语言LANG,出现Cannot set LC_CTYPE to default locale: No such file or directory错误的解决办法
- Ubuntu 14.04 LTS 解决adb无法运行 提示adb: No such file or directory 安装ia32-libs
- SlickEdit在64bit Ubuntu下运行vsinst安装程序出现"No such file or directory"的解决方法
- Ubuntu 14.04 LTS 解决adb无法运行 提示adb: No such file or directory 安装ia32-libs
- 三种关于Linux执行.sh文件,提示No such file or directory错误的解决办法
- VS2012与VS2015同时安装用VS2012创建MFC程序时弹出编译错误”fatal error C1083: 无法打开包括文件:“mprapidef.h”: No such file or directory”的解决办法
- 在Ubuntu安装完成后更改默认的语言LANG,出现Cannot set LC_CTYPE to default locale: No such file or directory错误的解决办法
- Linux中编译文件时提示:arm-elf-gcc: leds.o : No such file or directory 错误的解决办法