问题:
[root@linux115 server]# javac -version
-bash: /server/jdk1.7/bin/javac: /lib/ld-linux.so.2: bad ELF interpreter: 没有那个文件或目录
解决:
找到系统光盘里的rpm 包,安装下面 glibc包 和nss包:(可能有一些不用也行,但还是把下面的包都装了)
glib2-2.22.5-5.el6.i686.rpm
glib2-2.22.5-5.el6.x86_64.rpm
glib2-devel-2.22.5-5.el6.i686.rpm
glib2-devel-2.22.5-5.el6.x86_64.rpm
glibc-2.12-1.7.el6.i686.rpm
glibc-2.12-1.7.el6.x86_64.rpm
glibc-common-2.12-1.7.el6.x86_64.rpm
glibc-devel-2.12-1.7.el6.i686.rpm
glibc-devel-2.12-1.7.el6.x86_64.rpm
glibc-headers-2.12-1.7.el6.x86_64.rpm
glibc-utils-2.12-1.7.el6.x86_64.rpm
glibmm24-2.22.1-1.el6.x86_64.rpm
nss-softokn-freebl-3.12.7-1.1.el6.i686.rpm
nss-softokn-freebl-3.12.7-1.1.el6.x86_64.rpm
[root@linux115 ld-linux.so.2]# rpm -ivh * --force --nodeps
再重新测试,成功!