/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.csdn.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!

你可能感兴趣的:(/bin/sh: 1: aeon-gcc: not found & error while loading shared libraries: libgcc_s.so.1问题的原因以及解决办法)