[Seek Help] jdk17运行不了
Tofloor
poster avatar
捕风
deepin
2022-12-10 07:23
Author

2023-01-07


sudo apt install g++
sudo apt install bison -y

wget http://ftp.gnu.org/gnu/glibc/glibc-2.29.tar.gz 
tar -zxvf glibc-2.29.tar.gz
cd 
mkdir build
cd build 
../configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin


然后就是make报错了
image.png

按照教程下载,编译了GLIBC_2.29。然后系统没起来。重新全盘安装了 20.8还是不行。

image.png

Reply Favorite View the author
All Replies
deepin
2022-12-10 09:07
#1

Selinux解决的方法有两个:

1、直接输入:/usr/sbin/setenforce 0 意思是关闭SELINUX,但是这个只是会话级别的设置;

2、全局设置关闭SELINUX,通过编辑/etc/sysconfig/selinux文件,将SELINUX参数修改成disabled.

Reply View the author
deepin
2022-12-10 09:08
#2

如果还是不能解决问题,要查看一下jdk的环境变量设置方法、Java version的正确验证方式。

Reply View the author
liwl
deepin
2022-12-10 09:38
#3

这么麻烦?只需要三步就行了,下载bin压缩包,解压,添加环境变量。就可以了。

Reply View the author
black_white_bear
deepin
2022-12-10 17:15
#4

JDK启动没有找到GLIBC

  • 你可以把编译好的GLIBC文件放置到/usr/lib下试试
Reply View the author
2023开始学习
deepin
2022-12-10 20:54
#5

有个文件记录了加载库文件的路径。可以把你编译的文件的路径加进去。

可以看看https:/blog.csdn.net/ababab12345/article/details/123480925

Reply View the author
130******48
deepin
2022-12-12 18:25
#6

apt里不可能没有17吧?

Reply View the author