CentOS software installation error: and lib and ld linux. so. 2: bad ELF interpreter

  • 2020-05-27 07:57:23
  • OfStack

CentOS software installation error: /lib/ ld-linux. so. 2: bad ELF interpreter

Environment:


[orangle@localhost Downloads]$ uname -m&&uname -r
x86_64
2.6.32-220.el6.x86_64
[orangle@localhost Downloads]$ cat /etc/redhat-release 
CentOS release 6.2 (Final)


1 error occurred while using


bash: /usr/local/bin/rar: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

This is because 32-bit programs are installed on 64-bit systems

Solutions:


yum install glibc.i686

Continue installing packages after reinstalling with the following class error


error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
yum install libstdc++.so.6

Thank you for reading, I hope to help you, thank you for your support of this site!


Related articles: