查看下载完的文件夹,里面都有什么。下载了不少东西进来了。都有什么用,README-builds.html中都有说明!
附个小图:
root@ubuntu:/home/gap/jdk8u# ll
总用量 424
drwxr-xr-x 11 root root 4096 Jan 16 09:11 ./
drwxr-xr-x 28 gap gap 4096 Jan 16 09:03 ../
-rw-r--r-- 1 root root 1522 Jan 16 08:57 ASSEMBLY_EXCEPTION
drwxr-xr-x 6 root root 4096 Jan 16 08:57 common/
-rw-r--r-- 1 root root 1588 Jan 16 08:57 configure
drwxr-xr-x 6 root root 4096 Jan 16 09:03 corba/
-rwxr-xr-x 1 root root 3107 Jan 16 08:57 get_source.sh*
drwxr-xr-x 4 root root 4096 Jan 16 08:57 .hg/
-rw-r--r-- 1 root root 70 Jan 16 08:57 .hgignore
-rw-r--r-- 1 root root 50049 Jan 16 08:57 .hgtags
drwxr-xr-x 7 root root 4096 Jan 16 09:05 jaxp/
drwxr-xr-x 2 root root 4096 Jan 16 08:57 .jcheck/
drwxr-xr-x 7 root root 4096 Jan 16 09:24 jdk/
-rw-r--r-- 1 root root 19274 Jan 16 08:57 LICENSE
drwxr-xr-x 6 root root 4096 Jan 16 08:57 make/
-rw-r--r-- 1 root root 6232 Jan 16 08:57 Makefile
drwxr-xr-x 13 root root 4096 Jan 16 09:12 nashorn/
-rw-r--r-- 1 root root 1549 Jan 16 08:57 README
-rw-r--r-- 1 root root 129333 Jan 16 08:57 README-builds.html
drwxr-xr-x 3 root root 4096 Jan 16 08:57 test/
-rw-r--r-- 1 root root 153824 Jan 16 08:57 THIRD_PARTY_README
1. 确保GNU make实用程序是3.81或更高版本,例如运行“ make -version”
2. 安装 Bootstrap JDK。所有OpenJDK构建都需要访问以前发布的JDK,称为引导JDK或引导JDK。且,构建JDK 8需要使用Update 7或更高版本的JDK 7版本。
3. 依赖。
下面动手安装。
root@ubuntu:/home/gap/jdk8u# make -version
GNU Make 4.1
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
root@ubuntu:/home/gap/jdk8u# add-apt-repository ppa:openjdk-r/ppa
更多信息: https://launchpad.net/~openjdk-r/+archive/ubuntu/ppa
按回车继续或者 Ctrl+c 取消添加
gpg: 钥匙环‘/tmp/tmpv40n3wxp/secring.gpg’已建立
gpg: 钥匙环‘/tmp/tmpv40n3wxp/pubring.gpg’已建立
gpg: 下载密钥‘86F44E2A’,从 hkp 服务器 keyserver.ubuntu.com
gpg: /tmp/tmpv40n3wxp/trustdb.gpg:建立了信任度数据库
gpg: 密钥 86F44E2A:公钥“Launchpad OpenJDK builds (all archs)”已导入
gpg: 合计被处理的数量:1
gpg: 已导入:1 (RSA: 1)
OK
root@ubuntu:/home/gap/jdk8u# apt-get update
命中:1 http://mirrors.yun-idc.com/ubuntu xenial InRelease
命中:2 http://mirrors.yun-idc.com/ubuntu xenial-updates InRelease
命中:3 http://mirrors.yun-idc.com/ubuntu xenial-backports InRelease
命中:4 http://mirrors.yun-idc.com/ubuntu xenial-security InRelease
获取:5 http://archive.ubuntukylin.com:10006/ubuntukylin xenial InRelease [18.1 kB]
忽略:6 http://dl.google.com/linux/chrome/deb stable InRelease
命中:7 http://dl.google.com/linux/chrome/deb stable Release
获取:9 http://ppa.launchpad.net/openjdk-r/ppa/ubuntu xenial InRelease [17.5 kB]
获取:10 http://ppa.launchpad.net/openjdk-r/ppa/ubuntu xenial/main amd64 Packages [8,232 B]
获取:11 http://ppa.launchpad.net/openjdk-r/ppa/ubuntu xenial/main i386 Packages [8,292 B]
获取:12 http://ppa.launchpad.net/openjdk-r/ppa/ubuntu xenial/main Translation-en [1,844 B]
已下载 54.0 kB,耗时 3秒 (14.2 kB/s)
正在读取软件包列表... 完成
root@ubuntu:/home/gap/jdk8u# apt-get install openjdk-7-jdk
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
下列软件包是自动安装的并且现在不需要了:
libllvm4.0
使用'apt autoremove'来卸载它(它们)。
将会同时安装下列软件:
ca-certificates-java fonts-dejavu-extra java-common libatk-wrapper-java
libatk-wrapper-java-jni libbonobo2-0 libbonobo2-common libgif7 libgnome-2-0
libgnome2-common libgnomevfs2-0 libgnomevfs2-common libice-dev liborbit-2-0
libpthread-stubs0-dev libsctp1 libsm-dev libx11-dev libx11-doc libxau-dev
libxcb1-dev libxdmcp-dev libxt-dev openjdk-7-jre openjdk-7-jre-headless
x11proto-core-dev x11proto-input-dev x11proto-kb-dev xorg-sgml-doctools
xtrans-dev
建议安装:
default-jre libbonobo2-bin desktop-base libgnomevfs2-bin libgnomevfs2-extra
gamin | fam gnome-mime-data libice-doc lksctp-tools libsm-doc libxcb-doc
libxt-doc openjdk-7-demo openjdk-7-source visualvm icedtea-7-plugin
icedtea-7-jre-jamvm sun-java6-fonts fonts-ipafont-gothic
fonts-ipafont-mincho ttf-wqy-microhei | ttf-wqy-zenhei fonts-indic
下列【新】软件包将被安装:
ca-certificates-java fonts-dejavu-extra java-common libatk-wrapper-java
libatk-wrapper-java-jni libbonobo2-0 libbonobo2-common libgif7 libgnome-2-0
libgnome2-common libgnomevfs2-0 libgnomevfs2-common libice-dev liborbit-2-0
libpthread-stubs0-dev libsctp1 libsm-dev libx11-dev libx11-doc libxau-dev
libxcb1-dev libxdmcp-dev libxt-dev openjdk-7-jdk openjdk-7-jre
openjdk-7-jre-headless x11proto-core-dev x11proto-input-dev x11proto-kb-dev
xorg-sgml-doctools xtrans-dev
升级了 0 个软件包,新安装了 31 个软件包,要卸载 0 个软件包,有 7 个软件包未被升级。
需要下载 61.8 MB 的归档。
解压缩后会消耗 108 MB 的额外空间。
您希望继续执行吗? [Y/n] y
获取:1 http://mirrors.yun-idc.com/ubuntu xenial/main amd64 libbonobo2-common all 2.32.1-3 [34.7 kB]
获取:2 http://mirrors.yun-idc.com/ubuntu xenial/main amd64 liborbit-2-0 amd64 1:2.14.19-1build1 [140 kB]
获取:3 http://mirrors.yun-idc.com/ubuntu xenial/main amd64 libbonobo2-0 amd64 2.32.1-3 [211 kB]
获取:4 http://mirrors.yun-idc.com/ubuntu xenial-updates/main amd64 ca-certificates-java all 20160321ubuntu1 [12.5 kB]
获取:5 http://mirrors.yun-idc.com/ubuntu xenial/main amd64 java-common all 0.56ubuntu2 [7,742 B]
获取:6 http://mirrors.yun-idc.com/ubuntu xenial/main amd64 libsctp1 amd64 1.0.16+dfsg-3 [8,088 B]
获取:7 http://mirrors.yun-idc.com/ubuntu xenial/main amd64 fonts-dejavu-extra all 2.35-1 [1,749 kB]
获取:8 http://ppa.launchpad.net/openjdk-r/ppa/ubuntu xenial/main amd64 openjdk-7-jre-headless amd64 7u95-2.6.4-3 [39.4 MB]
获取:9 http://mirrors.yun-idc.com/ubuntu xenial/universe amd64 libatk-wrapper-java all 0.33.3-6 [33.9 kB]
获取:10 http://mirrors.yun-idc.com/ubuntu xenial/universe amd64 libatk-wrapper-java-jni amd64 0.33.3-6 [27.4 kB]
获取:11 http://mirrors.yun-idc.com/ubuntu xenial-updates/main amd64 libgif7 amd64 5.1.4-0.3~16.04 [30.5 kB]
获取:12 http://mirrors.yun-idc.com/ubuntu xenial/main amd64 libgnomevfs2-common amd64 1:2.24.4-6.1ubuntu1 [23.0 kB]
获取:13 http://mirrors.yun-idc.com/ubuntu xenial/main amd64 libgnomevfs2-0 amd64 1:2.24.4-6.1ubuntu1 [213 kB]
获取:14 http://mirrors.yun-idc.com/ubuntu xenial/main amd64 libgnome2-common all 2.32.1-5ubuntu1 [33.5 kB]
获取:15 http://mirrors.yun-idc.com/ubuntu xenial/main amd64 libgnome-2-0 amd64 2.32.1-5ubuntu1 [53.7 kB]
获取:16 http://mirrors.yun-idc.com/ubuntu xenial/main amd64 xorg-sgml-doctools all 1:1.11-1 [12.9 kB]
获取:17 http://mirrors.yun-idc.com/ubuntu xenial-updates/main amd64 x11proto-core-dev all 7.0.31-1~ubuntu16.04.2 [254 kB]
获取:18 http://mirrors.yun-idc.com/ubuntu xenial/main amd64 libice-dev amd64 2:1.0.9-1 [44.9 kB]
获取:19 http://mirrors.yun-idc.com/ubuntu xenial/main amd64 libpthread-stubs0-dev amd64 0.3-4 [4,068 B]
获取:20 http://mirrors.yun-idc.com/ubuntu xenial/main amd64 libsm-dev amd64 2:1.2.2-1 [16.2 kB]
获取:21 http://mirrors.yun-idc.com/ubuntu xenial/main amd64 libxau-dev amd64 1:1.0.8-1 [11.1 kB]
获取:22 http://mirrors.yun-idc.com/ubuntu xenial/main amd64 libxdmcp-dev amd64 1:1.1.2-1.1 [25.1 kB]
获取:23 http://mirrors.yun-idc.com/ubuntu xenial/main amd64 x11proto-input-dev all 2.3.1-1 [118 kB]
获取:24 http://mirrors.yun-idc.com/ubuntu xenial/main amd64 x11proto-kb-dev all 1.0.7-0ubuntu1 [224 kB]
获取:25 http://mirrors.yun-idc.com/ubuntu xenial/main amd64 xtrans-dev all 1.3.5-1 [70.5 kB]
获取:26 http://mirrors.yun-idc.com/ubuntu xenial/main amd64 libxcb1-dev amd64 1.11.1-1ubuntu1 [74.2 kB]
获取:27 http://mirrors.yun-idc.com/ubuntu xenial-updates/main amd64 libx11-dev amd64 2:1.6.3-1ubuntu2.1 [640 kB]
获取:28 http://mirrors.yun-idc.com/ubuntu xenial-updates/main amd64 libx11-doc all 2:1.6.3-1ubuntu2.1 [1,470 kB]
获取:29 http://mirrors.yun-idc.com/ubuntu xenial/main amd64 libxt-dev amd64 1:1.1.5-0ubuntu1 [394 kB]
获取:30 http://ppa.launchpad.net/openjdk-r/ppa/ubuntu xenial/main amd64 openjdk-7-jre amd64 7u95-2.6.4-3 [173 kB]
获取:31 http://ppa.launchpad.net/openjdk-r/ppa/ubuntu xenial/main amd64 openjdk-7-jdk amd64 7u95-2.6.4-3 [16.3 MB]
已下载 61.8 MB,耗时 8分 8秒 (126 kB/s)
正在从软件包中解出模板:100%
正在选中未选择的软件包 libbonobo2-common。
(正在读取数据库 ... 系统当前共安装有 220305 个文件和目录。)
正准备解包 .../libbonobo2-common_2.32.1-3_all.deb ...
正在解包 libbonobo2-common (2.32.1-3) ...
正在选中未选择的软件包 liborbit-2-0:amd64。
正准备解包 .../liborbit-2-0_1%3a2.14.19-1build1_amd64.deb ...
正在解包 liborbit-2-0:amd64 (1:2.14.19-1build1) ...
正在选中未选择的软件包 libbonobo2-0:amd64。
正准备解包 .../libbonobo2-0_2.32.1-3_amd64.deb ...
正在解包 libbonobo2-0:amd64 (2.32.1-3) ...
正在选中未选择的软件包 ca-certificates-java。
正准备解包 .../ca-certificates-java_20160321ubuntu1_all.deb ...
正在解包 ca-certificates-java (20160321ubuntu1) ...
正在选中未选择的软件包 java-common。
正准备解包 .../java-common_0.56ubuntu2_all.deb ...
正在解包 java-common (0.56ubuntu2) ...
正在选中未选择的软件包 libsctp1:amd64。
正准备解包 .../libsctp1_1.0.16+dfsg-3_amd64.deb ...
正在解包 libsctp1:amd64 (1.0.16+dfsg-3) ...
正在选中未选择的软件包 openjdk-7-jre-headless:amd64。
正准备解包 .../openjdk-7-jre-headless_7u95-2.6.4-3_amd64.deb ...
正在解包 openjdk-7-jre-headless:amd64 (7u95-2.6.4-3) ...
正在选中未选择的软件包 fonts-dejavu-extra。
正准备解包 .../fonts-dejavu-extra_2.35-1_all.deb ...
正在解包 fonts-dejavu-extra (2.35-1) ...
正在选中未选择的软件包 libatk-wrapper-java。
正准备解包 .../libatk-wrapper-java_0.33.3-6_all.deb ...
正在解包 libatk-wrapper-java (0.33.3-6) ...
正在选中未选择的软件包 libatk-wrapper-java-jni:amd64。
正准备解包 .../libatk-wrapper-java-jni_0.33.3-6_amd64.deb ...
正在解包 libatk-wrapper-java-jni:amd64 (0.33.3-6) ...
正在选中未选择的软件包 libgif7:amd64。
正准备解包 .../libgif7_5.1.4-0.3~16.04_amd64.deb ...
正在解包 libgif7:amd64 (5.1.4-0.3~16.04) ...
正在选中未选择的软件包 libgnomevfs2-common。
正准备解包 .../libgnomevfs2-common_1%3a2.24.4-6.1ubuntu1_amd64.deb ...
正在解包 libgnomevfs2-common (1:2.24.4-6.1ubuntu1) ...
正在选中未选择的软件包 libgnomevfs2-0:amd64。
正准备解包 .../libgnomevfs2-0_1%3a2.24.4-6.1ubuntu1_amd64.deb ...
正在解包 libgnomevfs2-0:amd64 (1:2.24.4-6.1ubuntu1) ...
正在选中未选择的软件包 libgnome2-common。
正准备解包 .../libgnome2-common_2.32.1-5ubuntu1_all.deb ...
正在解包 libgnome2-common (2.32.1-5ubuntu1) ...
正在选中未选择的软件包 libgnome-2-0:amd64。
正准备解包 .../libgnome-2-0_2.32.1-5ubuntu1_amd64.deb ...
正在解包 libgnome-2-0:amd64 (2.32.1-5ubuntu1) ...
正在选中未选择的软件包 xorg-sgml-doctools。
正准备解包 .../xorg-sgml-doctools_1%3a1.11-1_all.deb ...
正在解包 xorg-sgml-doctools (1:1.11-1) ...
正在选中未选择的软件包 x11proto-core-dev。
正准备解包 .../x11proto-core-dev_7.0.31-1~ubuntu16.04.2_all.deb ...
正在解包 x11proto-core-dev (7.0.31-1~ubuntu16.04.2) ...
正在选中未选择的软件包 libice-dev:amd64。
正准备解包 .../libice-dev_2%3a1.0.9-1_amd64.deb ...
正在解包 libice-dev:amd64 (2:1.0.9-1) ...
正在选中未选择的软件包 libpthread-stubs0-dev:amd64。
正准备解包 .../libpthread-stubs0-dev_0.3-4_amd64.deb ...
正在解包 libpthread-stubs0-dev:amd64 (0.3-4) ...
正在选中未选择的软件包 libsm-dev:amd64。
正准备解包 .../libsm-dev_2%3a1.2.2-1_amd64.deb ...
正在解包 libsm-dev:amd64 (2:1.2.2-1) ...
正在选中未选择的软件包 libxau-dev:amd64。
正准备解包 .../libxau-dev_1%3a1.0.8-1_amd64.deb ...
正在解包 libxau-dev:amd64 (1:1.0.8-1) ...
正在选中未选择的软件包 libxdmcp-dev:amd64。
正准备解包 .../libxdmcp-dev_1%3a1.1.2-1.1_amd64.deb ...
正在解包 libxdmcp-dev:amd64 (1:1.1.2-1.1) ...
正在选中未选择的软件包 x11proto-input-dev。
正准备解包 .../x11proto-input-dev_2.3.1-1_all.deb ...
正在解包 x11proto-input-dev (2.3.1-1) ...
正在选中未选择的软件包 x11proto-kb-dev。
正准备解包 .../x11proto-kb-dev_1.0.7-0ubuntu1_all.deb ...
正在解包 x11proto-kb-dev (1.0.7-0ubuntu1) ...
正在选中未选择的软件包 xtrans-dev。
正准备解包 .../xtrans-dev_1.3.5-1_all.deb ...
正在解包 xtrans-dev (1.3.5-1) ...
正在选中未选择的软件包 libxcb1-dev:amd64。
正准备解包 .../libxcb1-dev_1.11.1-1ubuntu1_amd64.deb ...
正在解包 libxcb1-dev:amd64 (1.11.1-1ubuntu1) ...
正在选中未选择的软件包 libx11-dev:amd64。
正准备解包 .../libx11-dev_2%3a1.6.3-1ubuntu2.1_amd64.deb ...
正在解包 libx11-dev:amd64 (2:1.6.3-1ubuntu2.1) ...
正在选中未选择的软件包 libx11-doc。
正准备解包 .../libx11-doc_2%3a1.6.3-1ubuntu2.1_all.deb ...
正在解包 libx11-doc (2:1.6.3-1ubuntu2.1) ...
正在选中未选择的软件包 libxt-dev:amd64。
正准备解包 .../libxt-dev_1%3a1.1.5-0ubuntu1_amd64.deb ...
正在解包 libxt-dev:amd64 (1:1.1.5-0ubuntu1) ...
正在选中未选择的软件包 openjdk-7-jre:amd64。
正准备解包 .../openjdk-7-jre_7u95-2.6.4-3_amd64.deb ...
正在解包 openjdk-7-jre:amd64 (7u95-2.6.4-3) ...
正在选中未选择的软件包 openjdk-7-jdk:amd64。
正准备解包 .../openjdk-7-jdk_7u95-2.6.4-3_amd64.deb ...
正在解包 openjdk-7-jdk:amd64 (7u95-2.6.4-3) ...
正在处理用于 man-db (2.7.5-1) 的触发器 ...
正在处理用于 libc-bin (2.23-0ubuntu10) 的触发器 ...
正在处理用于 ca-certificates (20170717~16.04.2) 的触发器 ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
正在处理用于 fontconfig (2.11.94-0ubuntu1.1) 的触发器 ...
正在处理用于 gconf2 (3.2.6-3ubuntu6) 的触发器 ...
正在处理用于 bamfdaemon (0.5.3~bzr0+16.04.20180209-0ubuntu1) 的触发器 ...
Rebuilding /usr/share/applications/bamf-2.index...
正在处理用于 desktop-file-utils (0.22-1ubuntu5.2) 的触发器 ...
正在处理用于 gnome-menus (3.13.3-6ubuntu3.1) 的触发器 ...
正在处理用于 mime-support (3.59ubuntu1) 的触发器 ...
正在处理用于 hicolor-icon-theme (0.15-0ubuntu1.1) 的触发器 ...
正在设置 libbonobo2-common (2.32.1-3) ...
正在设置 liborbit-2-0:amd64 (1:2.14.19-1build1) ...
正在设置 libbonobo2-0:amd64 (2.32.1-3) ...
正在设置 java-common (0.56ubuntu2) ...
正在设置 libsctp1:amd64 (1.0.16+dfsg-3) ...
正在设置 fonts-dejavu-extra (2.35-1) ...
正在设置 libatk-wrapper-java (0.33.3-6) ...
正在设置 libatk-wrapper-java-jni:amd64 (0.33.3-6) ...
正在设置 libgif7:amd64 (5.1.4-0.3~16.04) ...
正在设置 libgnomevfs2-common (1:2.24.4-6.1ubuntu1) ...
正在设置 libgnomevfs2-0:amd64 (1:2.24.4-6.1ubuntu1) ...
正在设置 libgnome2-common (2.32.1-5ubuntu1) ...
正在设置 libgnome-2-0:amd64 (2.32.1-5ubuntu1) ...
正在设置 xorg-sgml-doctools (1:1.11-1) ...
正在设置 x11proto-core-dev (7.0.31-1~ubuntu16.04.2) ...
正在设置 libice-dev:amd64 (2:1.0.9-1) ...
正在设置 libpthread-stubs0-dev:amd64 (0.3-4) ...
正在设置 libsm-dev:amd64 (2:1.2.2-1) ...
正在设置 libxau-dev:amd64 (1:1.0.8-1) ...
正在设置 libxdmcp-dev:amd64 (1:1.1.2-1.1) ...
正在设置 x11proto-input-dev (2.3.1-1) ...
正在设置 x11proto-kb-dev (1.0.7-0ubuntu1) ...
正在设置 xtrans-dev (1.3.5-1) ...
正在设置 libxcb1-dev:amd64 (1.11.1-1ubuntu1) ...
正在设置 libx11-dev:amd64 (2:1.6.3-1ubuntu2.1) ...
正在设置 libx11-doc (2:1.6.3-1ubuntu2.1) ...
正在设置 libxt-dev:amd64 (1:1.1.5-0ubuntu1) ...
正在设置 openjdk-7-jre-headless:amd64 (7u95-2.6.4-3) ...
update-alternatives: 使用 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/rmid 来在自动模式中提供 /usr/bin/rmid (rmid)
update-alternatives: 使用 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 来在自动模式中提供 /usr/bin/java (java)
update-alternatives: 使用 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/keytool 来在自动模式中提供 /usr/bin/keytool (keytool)
update-alternatives: 使用 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/pack200 来在自动模式中提供 /usr/bin/pack200 (pack200)
update-alternatives: 使用 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/rmiregistry 来在自动模式中提供 /usr/bin/rmiregistry (rmiregistry)
update-alternatives: 使用 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/unpack200 来在自动模式中提供 /usr/bin/unpack200 (unpack200)
update-alternatives: 使用 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/orbd 来在自动模式中提供 /usr/bin/orbd (orbd)
update-alternatives: 使用 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/servertool 来在自动模式中提供 /usr/bin/servertool (servertool)
update-alternatives: 使用 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/tnameserv 来在自动模式中提供 /usr/bin/tnameserv (tnameserv)
update-alternatives: 使用 /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/jexec 来在自动模式中提供 /usr/bin/jexec (jexec)
正在设置 openjdk-7-jre:amd64 (7u95-2.6.4-3) ...
update-alternatives: 使用 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/policytool 来在自动模式中提供 /usr/bin/policytool (policytool)
正在设置 openjdk-7-jdk:amd64 (7u95-2.6.4-3) ...
update-alternatives: 使用 /usr/lib/jvm/java-7-openjdk-amd64/bin/idlj 来在自动模式中提供 /usr/bin/idlj (idlj)
update-alternatives: 使用 /usr/lib/jvm/java-7-openjdk-amd64/bin/wsimport 来在自动模式中提供 /usr/bin/wsimport (wsimport)
update-alternatives: 使用 /usr/lib/jvm/java-7-openjdk-amd64/bin/rmic 来在自动模式中提供 /usr/bin/rmic (rmic)
update-alternatives: 使用 /usr/lib/jvm/java-7-openjdk-amd64/bin/jinfo 来在自动模式中提供 /usr/bin/jinfo (jinfo)
update-alternatives: 使用 /usr/lib/jvm/java-7-openjdk-amd64/bin/jsadebugd 来在自动模式中提供 /usr/bin/jsadebugd (jsadebugd)
update-alternatives: 使用 /usr/lib/jvm/java-7-openjdk-amd64/bin/native2ascii 来在自动模式中提供 /usr/bin/native2ascii (native2ascii)
update-alternatives: 使用 /usr/lib/jvm/java-7-openjdk-amd64/bin/jstat 来在自动模式中提供 /usr/bin/jstat (jstat)
update-alternatives: 使用 /usr/lib/jvm/java-7-openjdk-amd64/bin/javac 来在自动模式中提供 /usr/bin/javac (javac)
update-alternatives: 使用 /usr/lib/jvm/java-7-openjdk-amd64/bin/javah 来在自动模式中提供 /usr/bin/javah (javah)
update-alternatives: 使用 /usr/lib/jvm/java-7-openjdk-amd64/bin/jstack 来在自动模式中提供 /usr/bin/jstack (jstack)
update-alternatives: 使用 /usr/lib/jvm/java-7-openjdk-amd64/bin/jrunscript 来在自动模式中提供 /usr/bin/jrunscript (jrunscript)
update-alternatives: 使用 /usr/lib/jvm/java-7-openjdk-amd64/bin/javadoc 来在自动模式中提供 /usr/bin/javadoc (javadoc)
update-alternatives: 使用 /usr/lib/jvm/java-7-openjdk-amd64/bin/javap 来在自动模式中提供 /usr/bin/javap (javap)
update-alternatives: 使用 /usr/lib/jvm/java-7-openjdk-amd64/bin/jar 来在自动模式中提供 /usr/bin/jar (jar)
update-alternatives: 使用 /usr/lib/jvm/java-7-openjdk-amd64/bin/extcheck 来在自动模式中提供 /usr/bin/extcheck (extcheck)
update-alternatives: 使用 /usr/lib/jvm/java-7-openjdk-amd64/bin/schemagen 来在自动模式中提供 /usr/bin/schemagen (schemagen)
update-alternatives: 使用 /usr/lib/jvm/java-7-openjdk-amd64/bin/jps 来在自动模式中提供 /usr/bin/jps (jps)
update-alternatives: 使用 /usr/lib/jvm/java-7-openjdk-amd64/bin/xjc 来在自动模式中提供 /usr/bin/xjc (xjc)
update-alternatives: 使用 /usr/lib/jvm/java-7-openjdk-amd64/bin/jarsigner 来在自动模式中提供 /usr/bin/jarsigner (jarsigner)
update-alternatives: 使用 /usr/lib/jvm/java-7-openjdk-amd64/bin/jmap 来在自动模式中提供 /usr/bin/jmap (jmap)
update-alternatives: 使用 /usr/lib/jvm/java-7-openjdk-amd64/bin/appletviewer 来在自动模式中提供 /usr/bin/appletviewer (appletviewer)
update-alternatives: 使用 /usr/lib/jvm/java-7-openjdk-amd64/bin/jconsole 来在自动模式中提供 /usr/bin/jconsole (jconsole)
update-alternatives: 使用 /usr/lib/jvm/java-7-openjdk-amd64/bin/jstatd 来在自动模式中提供 /usr/bin/jstatd (jstatd)
update-alternatives: 使用 /usr/lib/jvm/java-7-openjdk-amd64/bin/jhat 来在自动模式中提供 /usr/bin/jhat (jhat)
update-alternatives: 使用 /usr/lib/jvm/java-7-openjdk-amd64/bin/jdb 来在自动模式中提供 /usr/bin/jdb (jdb)
update-alternatives: 使用 /usr/lib/jvm/java-7-openjdk-amd64/bin/serialver 来在自动模式中提供 /usr/bin/serialver (serialver)
update-alternatives: 使用 /usr/lib/jvm/java-7-openjdk-amd64/bin/wsgen 来在自动模式中提供 /usr/bin/wsgen (wsgen)
update-alternatives: 使用 /usr/lib/jvm/java-7-openjdk-amd64/bin/jcmd 来在自动模式中提供 /usr/bin/jcmd (jcmd)
正在设置 ca-certificates-java (20160321ubuntu1) ...
Adding debian:DigiCert_Assured_ID_Root_G2.pem
Adding debian:Deutsche_Telekom_Root_CA_2.pem
Adding debian:EE_Certification_Centre_Root_CA.pem
Adding debian:COMODO_ECC_Certification_Authority.pem
Adding debian:Security_Communication_EV_RootCA1.pem
Adding debian:Baltimore_CyberTrust_Root.pem
Adding debian:ssl-cert-snakeoil.pem
Adding debian:Certum_Root_CA.pem
Adding debian:OpenTrust_Root_CA_G2.pem
Adding debian:Verisign_Class_3_Public_Primary_Certification_Authority_-_G3.pem
Adding debian:Go_Daddy_Root_Certificate_Authority_-_G2.pem
Adding debian:LuxTrust_Global_Root_2.pem
Adding debian:AddTrust_Public_Services_Root.pem
Adding debian:Certplus_Root_CA_G2.pem
Adding debian:GeoTrust_Universal_CA_2.pem
Adding debian:Comodo_Trusted_Services_root.pem
Adding debian:Security_Communication_RootCA2.pem
Adding debian:Izenpe.com.pem
Adding debian:QuoVadis_Root_CA.pem
Adding debian:QuoVadis_Root_CA_2_G3.pem
Adding debian:AddTrust_External_Root.pem
Adding debian:Swisscom_Root_CA_2.pem
Adding debian:TeliaSonera_Root_CA_v1.pem
Adding debian:QuoVadis_Root_CA_1_G3.pem
Adding debian:T-TeleSec_GlobalRoot_Class_2.pem
Adding debian:Staat_der_Nederlanden_Root_CA_-_G3.pem
Adding debian:UTN_USERFirst_Hardware_Root_CA.pem
Adding debian:OpenTrust_Root_CA_G3.pem
Adding debian:QuoVadis_Root_CA_3_G3.pem
Adding debian:Camerfirma_Chambers_of_Commerce_Root.pem
Adding debian:DigiCert_Global_Root_G2.pem
Adding debian:ePKI_Root_Certification_Authority.pem
Adding debian:Security_Communication_Root_CA.pem
Adding debian:GlobalSign_ECC_Root_CA_-_R5.pem
Adding debian:COMODO_Certification_Authority.pem
Adding debian:AffirmTrust_Commercial.pem
Adding debian:Trustis_FPS_Root_CA.pem
Adding debian:CA_Disig_Root_R1.pem
Adding debian:Entrust_Root_Certification_Authority.pem
Adding debian:GlobalSign_Root_CA_-_R2.pem
Adding debian:DigiCert_Global_Root_G3.pem
Adding debian:DST_Root_CA_X3.pem
Adding debian:COMODO_RSA_Certification_Authority.pem
Adding debian:GeoTrust_Primary_Certification_Authority.pem
Adding debian:USERTrust_ECC_Certification_Authority.pem
Adding debian:AC_RAIZ_FNMT-RCM.pem
Adding debian:SwissSign_Silver_CA_-_G2.pem
Adding debian:ISRG_Root_X1.pem
Adding debian:DST_ACES_CA_X6.pem
Adding debian:AddTrust_Qualified_Certificates_Root.pem
Adding debian:Certinomis_-_Root_CA.pem
Adding debian:TWCA_Global_Root_CA.pem
Adding debian:Starfield_Services_Root_Certificate_Authority_-_G2.pem
Adding debian:DigiCert_Global_Root_CA.pem
Adding debian:Amazon_Root_CA_3.pem
Adding debian:AffirmTrust_Premium_ECC.pem
Adding debian:Visa_eCommerce_Root.pem
Adding debian:Comodo_AAA_Services_root.pem
Adding debian:Atos_TrustedRoot_2011.pem
Adding debian:thawte_Primary_Root_CA_-_G2.pem
Adding debian:Buypass_Class_3_Root_CA.pem
Adding debian:AffirmTrust_Networking.pem
Adding debian:E-Tugra_Certification_Authority.pem
Adding debian:Certplus_Root_CA_G1.pem
Adding debian:D-TRUST_Root_Class_3_CA_2_EV_2009.pem
Adding debian:Entrust.net_Premium_2048_Secure_Server_CA.pem
Adding debian:CNNIC_ROOT.pem
Adding debian:GeoTrust_Universal_CA.pem
Adding debian:Global_Chambersign_Root_-_2008.pem
Adding debian:Certplus_Class_2_Primary_CA.pem
Adding debian:Sonera_Class_2_Root_CA.pem
Adding debian:TURKTRUST_Certificate_Services_Provider_Root_2007.pem
Adding debian:OpenTrust_Root_CA_G1.pem
Adding debian:Certum_Trusted_Network_CA_2.pem
Adding debian:certSIGN_ROOT_CA.pem
Adding debian:TUBITAK_Kamu_SM_SSL_Kok_Sertifikasi_-_Surum_1.pem
Adding debian:Camerfirma_Global_Chambersign_Root.pem
Adding debian:TWCA_Root_Certification_Authority.pem
Adding debian:GlobalSign_ECC_Root_CA_-_R4.pem
Adding debian:ACEDICOM_Root.pem
Adding debian:OISTE_WISeKey_Global_Root_GA_CA.pem
Adding debian:QuoVadis_Root_CA_2.pem
Adding debian:Swisscom_Root_EV_CA_2.pem
Adding debian:Staat_der_Nederlanden_Root_CA_-_G2.pem
Adding debian:GeoTrust_Primary_Certification_Authority_-_G3.pem
Adding debian:Entrust_Root_Certification_Authority_-_EC1.pem
Adding debian:China_Internet_Network_Information_Center_EV_Certificates_Root.pem
Adding debian:Comodo_Secure_Services_root.pem
Adding debian:CA_Disig_Root_R2.pem
Adding debian:Hongkong_Post_Root_CA_1.pem
Adding debian:Network_Solutions_Certificate_Authority.pem
Adding debian:IdenTrust_Public_Sector_Root_CA_1.pem
Adding debian:GlobalSign_Root_CA.pem
Adding debian:Actalis_Authentication_Root_CA.pem
Adding debian:DigiCert_Trusted_Root_G4.pem
Adding debian:Hellenic_Academic_and_Research_Institutions_RootCA_2011.pem
Adding debian:SecureSign_RootCA11.pem
Adding debian:EC-ACC.pem
Adding debian:Go_Daddy_Class_2_CA.pem
Adding debian:Certum_Trusted_Network_CA.pem
Adding debian:Hellenic_Academic_and_Research_Institutions_RootCA_2015.pem
Adding debian:VeriSign_Class_3_Public_Primary_Certification_Authority_-_G5.pem
Adding debian:CFCA_EV_ROOT.pem
Adding debian:Certigna.pem
Adding debian:T-TeleSec_GlobalRoot_Class_3.pem
Adding debian:Amazon_Root_CA_1.pem
Adding debian:USERTrust_RSA_Certification_Authority.pem
Adding debian:DigiCert_High_Assurance_EV_Root_CA.pem
Adding debian:GeoTrust_Primary_Certification_Authority_-_G2.pem
Adding debian:VeriSign_Class_3_Public_Primary_Certification_Authority_-_G4.pem
Adding debian:PSCProcert.pem
Adding debian:DigiCert_Assured_ID_Root_G3.pem
Adding debian:thawte_Primary_Root_CA_-_G3.pem
Adding debian:ACCVRAIZ1.pem
Adding debian:Microsec_e-Szigno_Root_CA_2009.pem
Adding debian:TÜRKTRUST_Elektronik_Sertifika_Hizmet_Sağlayıcısı_H5.pem
Adding debian:TÜBİTAK_UEKAE_Kök_Sertifika_Hizmet_Sağlayıcısı_-_Sürüm_3.pem
Adding debian:Autoridad_de_Certificacion_Firmaprofesional_CIF_A62634068.pem
Adding debian:Secure_Global_CA.pem
Adding debian:D-TRUST_Root_Class_3_CA_2_2009.pem
Adding debian:Chambers_of_Commerce_Root_-_2008.pem
Adding debian:SecureTrust_CA.pem
Adding debian:VeriSign_Universal_Root_Certification_Authority.pem
Adding debian:IdenTrust_Commercial_Root_CA_1.pem
Adding debian:Hellenic_Academic_and_Research_Institutions_ECC_RootCA_2015.pem
Adding debian:Starfield_Class_2_CA.pem
Adding debian:Cybertrust_Global_Root.pem
Adding debian:thawte_Primary_Root_CA.pem
Adding debian:Staat_der_Nederlanden_EV_Root_CA.pem
Adding debian:Buypass_Class_2_Root_CA.pem
Adding debian:Taiwan_GRCA.pem
Adding debian:AddTrust_Low-Value_Services_Root.pem
Adding debian:Amazon_Root_CA_2.pem
Adding debian:OISTE_WISeKey_Global_Root_GB_CA.pem
Adding debian:Certinomis_-_Autorité_Racine.pem
Adding debian:AffirmTrust_Premium.pem
Adding debian:GlobalSign_Root_CA_-_R3.pem
Adding debian:NetLock_Arany_=Class_Gold=_Főtanúsítvány.pem
Adding debian:Amazon_Root_CA_4.pem
Adding debian:Swisscom_Root_CA_1.pem
Adding debian:DigiCert_Assured_ID_Root_CA.pem
Adding debian:QuoVadis_Root_CA_3.pem
Adding debian:SwissSign_Gold_CA_-_G2.pem
Adding debian:SZAFIR_ROOT_CA2.pem
Adding debian:XRamp_Global_CA_Root.pem
Adding debian:GeoTrust_Global_CA.pem
Adding debian:Starfield_Root_Certificate_Authority_-_G2.pem
Adding debian:GeoTrust_Global_CA_2.pem
Adding debian:Entrust_Root_Certification_Authority_-_G2.pem
done.
正在处理用于 libc-bin (2.23-0ubuntu10) 的触发器 ...
正在处理用于 ca-certificates (20170717~16.04.2) 的触发器 ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
done.
root@ubuntu:/home/gap/jdk8u# java -version
java version "1.7.0_95"
OpenJDK Runtime Environment (IcedTea 2.6.4) (7u95-2.6.4-3)
OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)
root@ubuntu:/home/gap/jdk8u# apt install alsa
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
注意,选中 'alsa-base' 而非 'alsa'
alsa-base 已经是最新版 (1.0.25+dfsg-0ubuntu5)。
下列软件包是自动安装的并且现在不需要了:
libllvm4.0
使用'apt autoremove'来卸载它(它们)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 7 个软件包未被升级。
root@ubuntu:/home/gap/jdk8u# apt install cups
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
cups 已经是最新版 (2.1.3-4ubuntu0.6)。
下列软件包是自动安装的并且现在不需要了:
libllvm4.0
使用'apt autoremove'来卸载它(它们)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 7 个软件包未被升级。
alsa,cups安装时,提示已经有了。freetype, xrender.报错,没关系。可以暂时不安装,在执行make指令时,如果缺少库,按提醒再安装。
configure配置大都选择默认的即可。
bash ./configure --enable-debug --with-target-bits=64
root@ubuntu:/home/gap/jdk8u# mkdir /home/gap/build
root@ubuntu:/home/gap/jdk8u# export LANG=C
root@ubuntu:/home/gap/jdk8u# export ALLOW_DOWNLOADS=true
root@ubuntu:/home/gap/jdk8u# export ALT_OUTPUTDIR=/home/gap/build
root@ubuntu:/home/gap/jdk8u# bash ./configure --enable-debug --with-target-bits=64
Running generated-configure.sh
configure: Configuration created at Wed Jan 16 10:46:03 CST 2019.
configure: configure script generated at timestamp 1544009140.
checking for basename... /usr/bin/basename
checking for bash... /bin/bash
checking for cat... /bin/cat
checking for chmod... /bin/chmod
checking for cmp... /usr/bin/cmp
checking for comm... /usr/bin/comm
checking for cp... /bin/cp
checking for cut... /usr/bin/cut
checking for date... /bin/date
checking for gdiff... no
checking for diff... /usr/bin/diff
checking for dirname... /usr/bin/dirname
checking for echo... /bin/echo
checking for expr... /usr/bin/expr
checking for file... /usr/bin/file
checking for find... /usr/bin/find
checking for head... /usr/bin/head
checking for ln... /bin/ln
checking for ls... /bin/ls
checking for mkdir... /bin/mkdir
checking for mktemp... /bin/mktemp
checking for mv... /bin/mv
checking for nawk... /usr/bin/nawk
checking for printf... /usr/bin/printf
checking for rm... /bin/rm
checking for sh... /bin/sh
checking for sort... /usr/bin/sort
checking for tail... /usr/bin/tail
checking for tar... /bin/tar
checking for tee... /usr/bin/tee
checking for touch... /usr/bin/touch
checking for tr... /usr/bin/tr
checking for uname... /bin/uname
checking for uniq... /usr/bin/uniq
checking for wc... /usr/bin/wc
checking for which... /usr/bin/which
checking for xargs... /usr/bin/xargs
checking for gawk... no
checking for mawk... mawk
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for a sed that does not truncate output... /bin/sed
checking for cygpath... no
checking for greadlink... no
checking for readlink... /bin/readlink
checking for df... /bin/df
checking for SetFile... no
checking for cpio... /bin/cpio
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking openjdk-build os-cpu... linux-x86_64
checking openjdk-target os-cpu... linux-x86_64
configure: --with-target-bits are set to build platform address size; argument has no meaning
checking compilation type... native
checking for top-level directory... /home/gap/jdk8u
checking for presence of closed sources... no
checking if closed source is suppressed (openjdk-only)... no
checking which variant of the JDK to build... normal
checking which interpreter of the JVM to build... template
checking which variants of the JVM to build... server
checking which debug level to use... fastdebug
checking for sysroot...
checking for toolchain path...
checking for extra path...
checking where to store configuration... in default location
checking what configuration name to use... linux-x86_64-normal-server-fastdebug
checking for apt-get... apt-get
checking for gmake... no
checking for make... /usr/bin/make
configure: Testing potential make at /usr/bin/make, found using make in PATH
configure: Using GNU make 3.81 (or later) at /usr/bin/make (version: GNU Make 4.1)
checking if find supports -delete... yes
checking for unzip... /usr/bin/unzip
checking for zip... /usr/bin/zip
checking for ldd... /usr/bin/ldd
checking for readelf... /usr/bin/readelf
checking for hg... /usr/bin/hg
checking for stat... /usr/bin/stat
checking for time... /usr/bin/time
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for 7z... no
checking for unzip... unzip
checking for wget... wget
checking headful support... include support for both headful and headless
checking for javac... /usr/bin/javac
checking for java... /usr/bin/java
configure: Found potential Boot JDK using java(c) in PATH
checking for Boot JDK... /usr/lib/jvm/java-7-openjdk-amd64
checking Boot JDK version... java version "1.7.0_95" OpenJDK Runtime Environment (IcedTea 2.6.4) (7u95-2.6.4-3) OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)
checking for java in Boot JDK... ok
checking for javac in Boot JDK... ok
checking for javah in Boot JDK... ok
checking for javap in Boot JDK... ok
checking for jar in Boot JDK... ok
checking for rmic in Boot JDK... ok
checking for native2ascii in Boot JDK... ok
checking if Boot JDK is 32 or 64 bits... 64
checking flags for boot jdk java command ...
checking flags for boot jdk java command for big workloads... -Xms64M -Xmx1600M -XX:ThreadStackSize=1536 -XX:PermSize=32m -XX:MaxPermSize=160m
checking flags for boot jdk java command for small workloads... -XX:+UseSerialGC -Xms32M -Xmx512M
configure: Using default toolchain gcc (GNU Compiler Collection)
checking for gcc... /usr/bin/gcc
checking resolved symbolic links for CC... /usr/bin/gcc-5
checking if CC is disguised ccache... no, keeping CC
configure: Using gcc C compiler version 5.4.0 [gcc (Ubuntu 5.4.0-6ubuntu1~16.04.11) 5.4.0 20160609]
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/gcc accepts -g... yes
checking for /usr/bin/gcc option to accept ISO C89... none needed
checking for g++... /usr/bin/g++
checking resolved symbolic links for CXX... /usr/bin/g++-5
checking if CXX is disguised ccache... no, keeping CXX
configure: Using gcc C++ compiler version 5.4.0 [g++ (Ubuntu 5.4.0-6ubuntu1~16.04.11) 5.4.0 20160609]
checking whether we are using the GNU C++ compiler... yes
checking whether /usr/bin/g++ accepts -g... yes
checking how to run the C preprocessor... /usr/bin/gcc -E
checking how to run the C++ preprocessor... /usr/bin/g++ -E
checking for ar... ar
configure: Rewriting AR to "/usr/bin/ar"
checking for strip... strip
configure: Rewriting STRIP to "/usr/bin/strip"
checking for otool... no
checking for nm... nm
configure: Rewriting NM to "/usr/bin/nm"
checking for gobjcopy... no
checking for objcopy... objcopy
configure: Rewriting OBJCOPY to "/usr/bin/objcopy"
checking for gobjdump... no
checking for objdump... objdump
configure: Rewriting OBJDUMP to "/usr/bin/objdump"
checking for broken SuSE 'ld' which only understands anonymous version tags in executables... no
checking for jtreg... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking size of int *... 8
checking for target address size... 64 bits
checking whether byte ordering is bigendian... no
checking if the C++ compiler supports "-std=gnu++98 -Werror"... yes
checking if the C compiler supports "-m64"... yes
checking if the C++ compiler supports "-m64"... yes
checking if both compilers support "-m64"... yes
checking if the C compiler supports "-m64"... yes
checking if the C++ compiler supports "-m64"... yes
checking if both compilers support "-m64"... yes
checking if we should generate debug symbols... true
checking if we should zip debug-info files... yes
checking what type of native debug symbols to use (this will override previous settings)... not specified
configure: --with-native-debug-symbols not specified. Using values from --disable-debug-symbols and --disable-zip-debug-info
checking what is not needed on Linux?... pulse
checking for X... libraries , headers
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for X11/extensions/shape.h... no
configure: error: Could not find all X11 headers (shape.h Xrender.h XTest.h Intrinsic.h). You might be able to fix this by running 'sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev'.
configure exiting with result code 1
最后提示少什么,那就安装什么。
root@ubuntu:/home/gap/jdk8u# sudo apt-get install libxext-dev libxrender-dev libxtst-dev libxt-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libxt-dev is already the newest version (1:1.1.5-0ubuntu1).
libxt-dev set to manually installed.
The following package was automatically installed and is no longer required:
libllvm4.0
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
libxfixes-dev libxi-dev x11proto-fixes-dev x11proto-record-dev x11proto-render-dev x11proto-xext-dev
Suggested packages:
libxext-doc
The following NEW packages will be installed:
libxext-dev libxfixes-dev libxi-dev libxrender-dev libxtst-dev x11proto-fixes-dev x11proto-record-dev x11proto-render-dev
x11proto-xext-dev
0 upgraded, 9 newly installed, 0 to remove and 7 not upgraded.
Need to get 599 kB of archives.
After this operation, 2,595 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://mirrors.yun-idc.com/ubuntu xenial/main amd64 x11proto-xext-dev all 7.3.0-1 [212 kB]
Get:2 http://mirrors.yun-idc.com/ubuntu xenial/main amd64 libxext-dev amd64 2:1.3.3-1 [82.1 kB]
Get:3 http://mirrors.yun-idc.com/ubuntu xenial/main amd64 x11proto-fixes-dev all 1:5.0-2ubuntu2 [14.2 kB]
Get:4 http://mirrors.yun-idc.com/ubuntu xenial/main amd64 libxfixes-dev amd64 1:5.0.1-2 [10.9 kB]
Get:5 http://mirrors.yun-idc.com/ubuntu xenial/main amd64 libxi-dev amd64 2:1.7.6-1 [184 kB]
Get:6 http://mirrors.yun-idc.com/ubuntu xenial/main amd64 x11proto-render-dev all 2:0.11.1-2 [20.1 kB]
Get:7 http://mirrors.yun-idc.com/ubuntu xenial/main amd64 libxrender-dev amd64 1:0.9.9-0ubuntu1 [24.5 kB]
Get:8 http://mirrors.yun-idc.com/ubuntu xenial/main amd64 x11proto-record-dev all 1.14.2-1 [33.6 kB]
Get:9 http://mirrors.yun-idc.com/ubuntu xenial/main amd64 libxtst-dev amd64 2:1.2.2-1 [17.0 kB]
Fetched 599 kB in 0s (687 kB/s)
Selecting previously unselected package x11proto-xext-dev.
(Reading database ... 222724 files and directories currently installed.)
Preparing to unpack .../x11proto-xext-dev_7.3.0-1_all.deb ...
Unpacking x11proto-xext-dev (7.3.0-1) ...
Selecting previously unselected package libxext-dev:amd64.
Preparing to unpack .../libxext-dev_2%3a1.3.3-1_amd64.deb ...
Unpacking libxext-dev:amd64 (2:1.3.3-1) ...
Selecting previously unselected package x11proto-fixes-dev.
Preparing to unpack .../x11proto-fixes-dev_1%3a5.0-2ubuntu2_all.deb ...
Unpacking x11proto-fixes-dev (1:5.0-2ubuntu2) ...
Selecting previously unselected package libxfixes-dev:amd64.
Preparing to unpack .../libxfixes-dev_1%3a5.0.1-2_amd64.deb ...
Unpacking libxfixes-dev:amd64 (1:5.0.1-2) ...
Selecting previously unselected package libxi-dev.
Preparing to unpack .../libxi-dev_2%3a1.7.6-1_amd64.deb ...
Unpacking libxi-dev (2:1.7.6-1) ...
Selecting previously unselected package x11proto-render-dev.
Preparing to unpack .../x11proto-render-dev_2%3a0.11.1-2_all.deb ...
Unpacking x11proto-render-dev (2:0.11.1-2) ...
Selecting previously unselected package libxrender-dev:amd64.
Preparing to unpack .../libxrender-dev_1%3a0.9.9-0ubuntu1_amd64.deb ...
Unpacking libxrender-dev:amd64 (1:0.9.9-0ubuntu1) ...
Selecting previously unselected package x11proto-record-dev.
Preparing to unpack .../x11proto-record-dev_1.14.2-1_all.deb ...
Unpacking x11proto-record-dev (1.14.2-1) ...
Selecting previously unselected package libxtst-dev:amd64.
Preparing to unpack .../libxtst-dev_2%3a1.2.2-1_amd64.deb ...
Unpacking libxtst-dev:amd64 (2:1.2.2-1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up x11proto-xext-dev (7.3.0-1) ...
Setting up libxext-dev:amd64 (2:1.3.3-1) ...
Setting up x11proto-fixes-dev (1:5.0-2ubuntu2) ...
Setting up libxfixes-dev:amd64 (1:5.0.1-2) ...
Setting up libxi-dev (2:1.7.6-1) ...
Setting up x11proto-render-dev (2:0.11.1-2) ...
Setting up libxrender-dev:amd64 (1:0.9.9-0ubuntu1) ...
Setting up x11proto-record-dev (1.14.2-1) ...
Setting up libxtst-dev:amd64 (2:1.2.2-1) ...
又执行,bash ./configure --enable-debug --with-target-bits=64 ,最后提示少,那就安装什么。
root@ubuntu:/home/gap/jdk8u# sudo apt-get install libcups2-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
libllvm4.0
Use 'sudo apt autoremove' to remove it.
The following NEW packages will be installed:
libcups2-dev
0 upgraded, 1 newly installed, 0 to remove and 7 not upgraded.
Need to get 238 kB of archives.
After this operation, 1,233 kB of additional disk space will be used.
Get:1 http://mirrors.yun-idc.com/ubuntu xenial-updates/main amd64 libcups2-dev amd64 2.1.3-4ubuntu0.6 [238 kB]
Fetched 238 kB in 1s (236 kB/s)
Selecting previously unselected package libcups2-dev:amd64.
(Reading database ... 223011 files and directories currently installed.)
Preparing to unpack .../libcups2-dev_2.1.3-4ubuntu0.6_amd64.deb ...
Unpacking libcups2-dev:amd64 (2.1.3-4ubuntu0.6) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up libcups2-dev:amd64 (2.1.3-4ubuntu0.6) ...
又执行,bash ./configure --enable-debug --with-target-bits=64 ,最后提示少,那就安装什么。
root@ubuntu:/home/gap/jdk8u# sudo apt-get install libfreetype6-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
libllvm4.0
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
libpng12-dev zlib1g-dev
The following NEW packages will be installed:
libfreetype6-dev libpng12-dev zlib1g-dev
0 upgraded, 3 newly installed, 0 to remove and 7 not upgraded.
Need to get 1,307 kB of archives.
After this operation, 5,253 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://mirrors.yun-idc.com/ubuntu xenial-updates/main amd64 zlib1g-dev amd64 1:1.2.8.dfsg-2ubuntu4.1 [168 kB]
Get:2 http://mirrors.yun-idc.com/ubuntu xenial-updates/main amd64 libpng12-dev amd64 1.2.54-1ubuntu1.1 [183 kB]
Get:3 http://mirrors.yun-idc.com/ubuntu xenial-updates/main amd64 libfreetype6-dev amd64 2.6.1-0.1ubuntu2.3 [956 kB]
Fetched 1,307 kB in 0s (1,923 kB/s)
Selecting previously unselected package zlib1g-dev:amd64.
(Reading database ... 223034 files and directories currently installed.)
Preparing to unpack .../zlib1g-dev_1%3a1.2.8.dfsg-2ubuntu4.1_amd64.deb ...
Unpacking zlib1g-dev:amd64 (1:1.2.8.dfsg-2ubuntu4.1) ...
Selecting previously unselected package libpng12-dev:amd64.
Preparing to unpack .../libpng12-dev_1.2.54-1ubuntu1.1_amd64.deb ...
Unpacking libpng12-dev:amd64 (1.2.54-1ubuntu1.1) ...
Selecting previously unselected package libfreetype6-dev:amd64.
Preparing to unpack .../libfreetype6-dev_2.6.1-0.1ubuntu2.3_amd64.deb ...
Unpacking libfreetype6-dev:amd64 (2.6.1-0.1ubuntu2.3) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for doc-base (0.10.7) ...
Processing 1 added doc-base file...
Setting up zlib1g-dev:amd64 (1:1.2.8.dfsg-2ubuntu4.1) ...
Setting up libpng12-dev:amd64 (1.2.54-1ubuntu1.1) ...
Setting up libfreetype6-dev:amd64 (2.6.1-0.1ubuntu2.3) ...
又执行,bash ./configure --enable-debug --with-target-bits=64 ,最后提示少,那就安装什么。
root@ubuntu:/home/gap/jdk8u# sudo apt-get install libasound2-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
libllvm4.0
Use 'sudo apt autoremove' to remove it.
Suggested packages:
libasound2-doc
The following NEW packages will be installed:
libasound2-dev
0 upgraded, 1 newly installed, 0 to remove and 7 not upgraded.
Need to get 114 kB of archives.
After this operation, 544 kB of additional disk space will be used.
Get:1 http://mirrors.yun-idc.com/ubuntu xenial/main amd64 libasound2-dev amd64 1.1.0-0ubuntu1 [114 kB]
Fetched 114 kB in 0s (970 kB/s)
Selecting previously unselected package libasound2-dev:amd64.
(Reading database ... 223301 files and directories currently installed.)
Preparing to unpack .../libasound2-dev_1.1.0-0ubuntu1_amd64.deb ...
Unpacking libasound2-dev:amd64 (1.1.0-0ubuntu1) ...
Setting up libasound2-dev:amd64 (1.1.0-0ubuntu1) ...
又执行,bash ./configure --enable-debug --with-target-bits=64 ,这回不少东西了。
root@ubuntu:/home/gap/jdk8u# bash ./configure --enable-debug --with-target-bits=64
Running generated-configure.sh
configure: Configuration created at Wed Jan 16 10:58:48 CST 2019.
configure: configure script generated at timestamp 1544009140.
checking for basename... /usr/bin/basename
checking for bash... /bin/bash
checking for cat... /bin/cat
checking for chmod... /bin/chmod
checking for cmp... /usr/bin/cmp
checking for comm... /usr/bin/comm
checking for cp... /bin/cp
checking for cut... /usr/bin/cut
checking for date... /bin/date
checking for gdiff... no
checking for diff... /usr/bin/diff
checking for dirname... /usr/bin/dirname
checking for echo... /bin/echo
checking for expr... /usr/bin/expr
checking for file... /usr/bin/file
checking for find... /usr/bin/find
checking for head... /usr/bin/head
checking for ln... /bin/ln
checking for ls... /bin/ls
checking for mkdir... /bin/mkdir
checking for mktemp... /bin/mktemp
checking for mv... /bin/mv
checking for nawk... /usr/bin/nawk
checking for printf... /usr/bin/printf
checking for rm... /bin/rm
checking for sh... /bin/sh
checking for sort... /usr/bin/sort
checking for tail... /usr/bin/tail
checking for tar... /bin/tar
checking for tee... /usr/bin/tee
checking for touch... /usr/bin/touch
checking for tr... /usr/bin/tr
checking for uname... /bin/uname
checking for uniq... /usr/bin/uniq
checking for wc... /usr/bin/wc
checking for which... /usr/bin/which
checking for xargs... /usr/bin/xargs
checking for gawk... no
checking for mawk... mawk
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for a sed that does not truncate output... /bin/sed
checking for cygpath... no
checking for greadlink... no
checking for readlink... /bin/readlink
checking for df... /bin/df
checking for SetFile... no
checking for cpio... /bin/cpio
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking openjdk-build os-cpu... linux-x86_64
checking openjdk-target os-cpu... linux-x86_64
configure: --with-target-bits are set to build platform address size; argument has no meaning
checking compilation type... native
checking for top-level directory... /home/gap/jdk8u
checking for presence of closed sources... no
checking if closed source is suppressed (openjdk-only)... no
checking which variant of the JDK to build... normal
checking which interpreter of the JVM to build... template
checking which variants of the JVM to build... server
checking which debug level to use... fastdebug
checking for sysroot...
checking for toolchain path...
checking for extra path...
checking where to store configuration... in default location
checking what configuration name to use... linux-x86_64-normal-server-fastdebug
checking for apt-get... apt-get
checking for gmake... no
checking for make... /usr/bin/make
configure: Testing potential make at /usr/bin/make, found using make in PATH
configure: Using GNU make 3.81 (or later) at /usr/bin/make (version: GNU Make 4.1)
checking if find supports -delete... yes
checking for unzip... /usr/bin/unzip
checking for zip... /usr/bin/zip
checking for ldd... /usr/bin/ldd
checking for readelf... /usr/bin/readelf
checking for hg... /usr/bin/hg
checking for stat... /usr/bin/stat
checking for time... /usr/bin/time
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for 7z... no
checking for unzip... unzip
checking for wget... wget
checking headful support... include support for both headful and headless
checking for javac... /usr/bin/javac
checking for java... /usr/bin/java
configure: Found potential Boot JDK using java(c) in PATH
checking for Boot JDK... /usr/lib/jvm/java-7-openjdk-amd64
checking Boot JDK version... java version "1.7.0_95" OpenJDK Runtime Environment (IcedTea 2.6.4) (7u95-2.6.4-3) OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)
checking for java in Boot JDK... ok
checking for javac in Boot JDK... ok
checking for javah in Boot JDK... ok
checking for javap in Boot JDK... ok
checking for jar in Boot JDK... ok
checking for rmic in Boot JDK... ok
checking for native2ascii in Boot JDK... ok
checking if Boot JDK is 32 or 64 bits... 64
checking flags for boot jdk java command ...
checking flags for boot jdk java command for big workloads... -Xms64M -Xmx1600M -XX:ThreadStackSize=1536 -XX:PermSize=32m -XX:MaxPermSize=160m
checking flags for boot jdk java command for small workloads... -XX:+UseSerialGC -Xms32M -Xmx512M
configure: Using default toolchain gcc (GNU Compiler Collection)
checking for gcc... /usr/bin/gcc
checking resolved symbolic links for CC... /usr/bin/gcc-5
checking if CC is disguised ccache... no, keeping CC
configure: Using gcc C compiler version 5.4.0 [gcc (Ubuntu 5.4.0-6ubuntu1~16.04.11) 5.4.0 20160609]
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/gcc accepts -g... yes
checking for /usr/bin/gcc option to accept ISO C89... none needed
checking for g++... /usr/bin/g++
checking resolved symbolic links for CXX... /usr/bin/g++-5
checking if CXX is disguised ccache... no, keeping CXX
configure: Using gcc C++ compiler version 5.4.0 [g++ (Ubuntu 5.4.0-6ubuntu1~16.04.11) 5.4.0 20160609]
checking whether we are using the GNU C++ compiler... yes
checking whether /usr/bin/g++ accepts -g... yes
checking how to run the C preprocessor... /usr/bin/gcc -E
checking how to run the C++ preprocessor... /usr/bin/g++ -E
checking for ar... ar
configure: Rewriting AR to "/usr/bin/ar"
checking for strip... strip
configure: Rewriting STRIP to "/usr/bin/strip"
checking for otool... no
checking for nm... nm
configure: Rewriting NM to "/usr/bin/nm"
checking for gobjcopy... no
checking for objcopy... objcopy
configure: Rewriting OBJCOPY to "/usr/bin/objcopy"
checking for gobjdump... no
checking for objdump... objdump
configure: Rewriting OBJDUMP to "/usr/bin/objdump"
checking for broken SuSE 'ld' which only understands anonymous version tags in executables... no
checking for jtreg... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking size of int *... 8
checking for target address size... 64 bits
checking whether byte ordering is bigendian... no
checking if the C++ compiler supports "-std=gnu++98 -Werror"... yes
checking if the C compiler supports "-m64"... yes
checking if the C++ compiler supports "-m64"... yes
checking if both compilers support "-m64"... yes
checking if the C compiler supports "-m64"... yes
checking if the C++ compiler supports "-m64"... yes
checking if both compilers support "-m64"... yes
checking if we should generate debug symbols... true
checking if we should zip debug-info files... yes
checking what type of native debug symbols to use (this will override previous settings)... not specified
configure: --with-native-debug-symbols not specified. Using values from --disable-debug-symbols and --disable-zip-debug-info
checking what is not needed on Linux?... pulse
checking for X... libraries , headers
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for X11/extensions/shape.h... yes
checking for X11/extensions/Xrender.h... yes
checking for X11/extensions/XTest.h... yes
checking for X11/Intrinsic.h... yes
checking cups/cups.h usability... yes
checking cups/cups.h presence... yes
checking for cups/cups.h... yes
checking cups/ppd.h usability... yes
checking cups/ppd.h presence... yes
checking for cups/ppd.h... yes
checking for FREETYPE... yes
checking for freetype... yes (using pkg-config)
checking if we can compile and link with freetype... yes
checking if we should bundle freetype... no
checking for ALSA... yes
checking for main in -ljpeg... no
configure: Will use jpeg decoder bundled with the OpenJDK source
checking for which giflib to use... bundled
checking for compress in -lz... yes
checking for which zlib to use... bundled
checking for cos in -lm... yes
checking for dlopen in -ldl... yes
checking if dynamic link of stdc++ is possible... yes
checking if static link of stdc++ is possible... yes
checking how to link with libstdc++... static
checking if elliptic curve crypto implementation is present... yes
checking for number of cores... 4
checking for memory size... 3933 MB
checking for appropriate number of jobs to run in parallel... 3
checking whether to use sjavac... no
checking that precompiled headers work... yes
checking is ccache enabled... no
checking if build directory is on local disk... yes
configure: creating /home/gap/jdk8u/build/linux-x86_64-normal-server-fastdebug/config.status
config.status: creating /home/gap/jdk8u/build/linux-x86_64-normal-server-fastdebug/spec.gmk
config.status: creating /home/gap/jdk8u/build/linux-x86_64-normal-server-fastdebug/hotspot-spec.gmk
config.status: creating /home/gap/jdk8u/build/linux-x86_64-normal-server-fastdebug/bootcycle-spec.gmk
config.status: creating /home/gap/jdk8u/build/linux-x86_64-normal-server-fastdebug/compare.sh
config.status: creating /home/gap/jdk8u/build/linux-x86_64-normal-server-fastdebug/spec.sh
config.status: creating /home/gap/jdk8u/build/linux-x86_64-normal-server-fastdebug/Makefile
config.status: creating /home/gap/jdk8u/build/linux-x86_64-normal-server-fastdebug/config.h
config.status: /home/gap/jdk8u/build/linux-x86_64-normal-server-fastdebug/config.h is unchanged
====================================================
A new configuration has been successfully created in
/home/gap/jdk8u/build/linux-x86_64-normal-server-fastdebug
using configure arguments '--enable-debug --with-target-bits=64'.
Configuration summary:
* Debug level: fastdebug
* JDK variant: normal
* JVM variants: server
* OpenJDK target: OS: linux, CPU architecture: x86, address length: 64
Tools summary:
* Boot JDK: java version "1.7.0_95" OpenJDK Runtime Environment (IcedTea 2.6.4) (7u95-2.6.4-3) OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode) (at /usr/lib/jvm/java-7-openjdk-amd64)
* Toolchain: gcc (GNU Compiler Collection)
* C Compiler: Version 5.4.0 (at /usr/bin/gcc)
* C++ Compiler: Version 5.4.0 (at /usr/bin/g++)
Build performance summary:
* Cores to use: 3
* Memory limit: 3933 MB
WARNING: You have old-style ALT_ environment variables set.
These are not respected, and will be ignored. It is recommended
that you clean your environment. The following variables are set:
ALT_OUTPUTDIR=/home/gap/build
WARNING: The result of this configuration has overridden an older
configuration. You *should* run 'make clean' to make sure you get a
proper build. Failure to do so might result in strange build problems.
这一篇写到这里吧,太长了。这里就一个事,配置选项,通过。bash ./configure