Un script shell qui construit la source OpenJDK11 sur CentOS 7.2 avec des options de débogage.
Windows10 VirtualBox 5.2 Vagrant 2.2.0 OS invité CentOS 7.2 (cpu 2, mémoire 4 Go, disque 100 Go) OpenJDK11 jdk-11+28
#!/bin/sh
yum -y update
yum -y install java-11-openjdk-devel
yum groupinstall -y "Development Tools"
yum install -y libXtst-devel libXt-devel libXrender-devel libXi-devel cups-devel fontconfig-devel alsa-lib-devel
yum -y install epel-release
yum -y install python-devel python-pip
pip install -U pip
pip install mercurial
hg clone http://hg.openjdk.java.net/jdk/jdk11 -r jdk-11+28
cd jdk11
bash configure --with-debug-level=slowdebug --with-native-debug-symbols=internal
make CONF=linux-x86_64-normal-server-slowdebug all
build/linux-x86_64-normal-server-slowdebug/jdk/bin/java -version
Les binaires tels que les commandes java /root/jdk11/build/linux-x86_64-normal-server-slowdebug/jdk/bin Il est généré en dessous.
[root@localhost bin]# /root/jdk11/build/linux-x86_64-normal-server-slowdebug/jdk/bin/java -version
openjdk version "11-internal" 2018-09-25
OpenJDK Runtime Environment (slowdebug build 11-internal+0-adhoc.root.jdk11)
OpenJDK 64-Bit Server VM (slowdebug build 11-internal+0-adhoc.root.jdk11, mixed mode)
Recommended Posts