linux aeon gcc,/bin/sh: 1: aeon-gcc: not found & error while loading shared libraries: libgcc_s.so.1...

调用工具链aeon-gcc时系统总是提示 :/bin/sh: 1: aeon-gcc: not found,但是这个文件是存在的,并且已将它所在的路径加入到PATH环境变量中,所以决定很奇怪。通过上网查找相关的资料,获悉可能是32位的程序运行在64位的机器上导致的,通过file命令查看aeon-gcc文件的信息得知其确实为32bit程序,而我的Ubuntu 16.04是64 bit系统。然后按照网上说的安装ia32-libs, 然后系统提示ia32-libs不可用,但是可以安装着两个来代替:lib32ncurses5

lib32z1。但是安装完这两个后又出现新的问题:aeon-gcc: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such file or directory。再上网查找资料发现需要再安装其他的文件:

sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386

此后,问题解决。

参考:http://blog..net/stwstw0123/article/details/47833873

log记录如下:

owen@owen:~/test$ /tools/aeon/bin/aeon-gdb

bash: /tools/aeon/bin/aeon-gdb: No such file or directory

owen@owen:~/test$ file /tools/aeon/bin/aeon-gcc

/tools/aeon/bin/aeon-gcc: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.8, not stripped

owen@owen:~/test$ sudo apt install ia32-libs

[sudo] password for owen:

Reading package lists... Done

Building dependency tree

Reading state information... Done

Package ia32-libs is not available, but is referred to by another package.

This may mean that the package is missing, has been obsoleted, or

is only available from another source

However the following packages replace it:

lib32ncurses5 lib32z1

E: Package 'ia32-libs' has no installation candidate

owen@owen:~/test$ sudo apt install lib32ncurses5 lib32z1

安装后出现:

aeon-gcc: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such file or directory

owen@owen:~/git/Chakra3$ sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386

OK!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值