linux 配置jdk环境(出错/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory)
程序员文章站
2022-03-08 19:27:27
...
1.首先安装glibc.i686,否则会出错
yum install glibc.i686
2.下载jdk的二进制文件。
3.解压到服务器。
4.配置环境变量
vim /etc/profile
配置内容:
export JAVA_HOME=/usr/local/java/jdk1.8.0_251
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
使配置生效:
source /etc/profile
若没有安装glibc,java 查看发现报错 /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory。
推荐阅读
-
- bash: /usr/bin/ls: /lib64/ld-linux-x86-64.so.2: bad ELF interpreter: No such file or directory
-
linux 配置JAVA 环境问题(一)/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
-
Linux安装jdk后,执行命令报错:bad ELF interpreter: No such file or directory的解决办法
-
jdk安装完后报错/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
-
Linux安装jdk错误:/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
-
linux 配置jdk环境(出错/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory)
-
/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory问题解决方法
-
centos 下安装mysql出现 /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
-
Fixing /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
-
解决/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory报错