ppc64le处理器国产power8服务器CentOS7.2安装open-jdk

ppc64le处理器国产power8服务器CentOS7.2安装open-jdk

上篇说到安装ibm-jdk,那么这篇将带你安装openjdk

开始

先卸载已存在的 jdk

[root@admin ~]# java -version
-bash: java: command not found
[root@admin ~]# 
[root@admin ~]# 
[root@admin ~]# 
[root@admin ~]# 
[root@admin ~]# su -c "yum install java-1.8.0-openjdk"
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package java-1.8.0-openjdk.ppc64le 1:1.8.0.232.b09-0.el7_7 will be installed
--> Processing Dependency: java-1.8.0-openjdk-headless(ppc-64) = 1:1.8.0.232.b09-0.el7_7 for package: 1:java-1.8.0-openjdk-1.8.0.232.b09-0.el7_7.ppc64le
--> Processing Dependency: xorg-x11-fonts-Type1 for package: 1:java-1.8.0-openjdk-1.8.0.232.b09-0.el7_7.ppc64le
--> Processing Dependency: libjvm.so(SUNWprivate_1.1)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.232.b09-0.el7_7.ppc64le
--> Processing Dependency: libjpeg.so.62(LIBJPEG_6.2)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.232.b09-0.el7_7.ppc64le
--> Processing Dependency: libjava.so(SUNWprivate_1.1)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.232.b09-0.el7_7.ppc64le
--> Processing Dependency: libXcomposite(ppc-64) for package: 1:java-1.8.0-openjdk-1.8.0.232.b09-0.el7_7.ppc64le
--> Processing Dependency: gtk2(ppc-64) for package: 1:java-1.8.0-openjdk-1.8.0.232.b09-0.el7_7.ppc64le
--> Processing Dependency: fontconfig(ppc-64) for package: 1:java-1.8.0-openjdk-1.8.0.232.b09-0.el7_7.ppc64le
--> Processing Dependency: libjvm.so()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.232.b09-0.el7_7.ppc64le
--> Processing Dependency: libjpeg.so.62()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.232.b09-0.el7_7.ppc64le
--> Processing Dependency: libjava.so()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.232.b09-0.el7_7.ppc64le
--> Processing Dependency: libgif.so.4()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.232.b09-0.el7_7.ppc64le
--> Processing Dependency: libXtst.so.6()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.232.b09-0.el7_7.ppc64le
--> Processing Dependency: libXrender.so.1()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.232.b09-0.el7_7.ppc64le
--> Processing Dependency: libXi.so.6()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.232.b09-0.el7_7.ppc64le
--> Processing Dependency: libXext.so.6()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.232.b09-0.el7_7.ppc64le
--> Processing Dependency: libX11.so.6()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.232.b09-0.el7_7.ppc64le
--> Running transaction check
---> Package fontconfig.ppc64le 0:2.13.0-4.3.el7 will be installed
--> Processing Dependency: fontpackages-filesystem for package: fontconfig-2.13.0-4.3.el7.ppc64le
--> Processing Dependency: dejavu-sans-fonts for package: fontconfig-2.13.0-4.3.el7.ppc64le
---> Package giflib.ppc64le 0:4.1.6-9.el7 will be installed
--> Processing Dependency: libSM.so.6()(64bit) for package: giflib-4.1.6-9.el7.ppc64le
--> Processing Dependency: libICE.so.6()(64bit) for package: giflib-4.1.6-9.el7.ppc64le
---> Package gtk2.ppc64le 0:2.24.31-1.el7 will be installed
--> Processing Dependency: pango >= 1.20.0-1 for package: gtk2-2.24.31-1.el7.ppc64le
--> Processing Dependency: libtiff >= 3.6.1 for package: gtk2-2.24.31-1.el7.ppc64le
--> Processing Dependency: libXrandr >= 1.2.99.4-2 for package: gtk2-2.24.31-1.el7.ppc64le
--> Processing Dependency: atk >= 1.29.4-2 for package: gtk2-2.24.31-1.el7.ppc64le
--> Processing Dependency: hicolor-icon-theme for package: gtk2-2.24.31-1.el7.ppc64le
--> Processing Dependency: gtk-update-icon-cache for package: gtk2-2.24.31-1.el7.ppc64le
--> Processing Dependency: libpangoft2-1.0.so.0()(64bit) for package: gtk2-2.24.31-1.el7.ppc64le
--> Processing Dependency: libpangocairo-1.0.so.0()(64bit) for package: gtk2-2.24.31-1.el7.ppc64le
--> Processing Dependency: libpango-1.0.so.0()(64bit) for package: gtk2-2.24.31-1.el7.ppc64le
--> Processing Dependency: libgdk_pixbuf-2.0.so.0()(64bit) for package: gtk2-2.24.31-1.el7.ppc64le
--> Processing Dependency: libcups.so.2()(64bit) for package: gtk2-2.24.31-1.el7.ppc64le
--> Processing Dependency: libcairo.so.2()(64bit) for package: gtk2-2.24.31-1.el7.ppc64le
--> Processing Dependency: libatk-1.0.so.0()(64bit) for package: gtk2-2.24.31-1.el7.ppc64le
--> Processing Dependency: libXrandr.so.2()(64bit) for package: gtk2-2.24.31-1.el7.ppc64le
--> Processing Dependency: libXinerama.so.1()(64bit) for package: gtk2-2.24.31-1.el7.ppc64le
--> Processing Dependency: libXfixes.so.3()(64bit) for package: gtk2-2.24.31-1.el7.ppc64le
--> Processing Dependency: libXdamage.so.1()(64bit) for package: gtk2-2.24.31-1.el7.ppc64le
--> Processing Dependency: libXcursor.so.1()(64bit) for package: gtk2-2.24.31-1.el7.ppc64le
---> Package java-1.8.0-openjdk-headless.ppc64le 1:1.8.0.232.b09-0.el7_7 will be installed
--> Processing Dependency: tzdata-java >= 2015d for package: 1:java-1.8.0-openjdk-headless-1.8.0.232.b09-0.el7_7.ppc64le
--> Processing Dependency: copy-jdk-configs >= 3.3 for package: 1:java-1.8.0-openjdk-headless-1.8.0.232.b09-0.el7_7.ppc64le
--> Processing Dependency: pcsc-lite-libs(ppc-64) for package: 1:java-1.8.0-openjdk-headless-1.8.0.232.b09-0.el7_7.ppc64le
--> Processing Dependency: lksctp-tools(ppc-64) for package: 1:java-1.8.0-openjdk-headless-1.8.0.232.b09-0.el7_7.ppc64le
--> Processing Dependency: jpackage-utils for package: 1:java-1.8.0-openjdk-headless-1.8.0.232.b09-0.el7_7.ppc64le
---> Package libX11.ppc64le 0:1.6.7-2.el7 will be installed
--> Processing Dependency: libX11-common >= 1.6.7-2.el7 for package: libX11-1.6.7-2.el7.ppc64le
--> Processing Dependency: libxcb.so.1()(64bit) for package: libX11-1.6.7-2.el7.ppc64le
---> Package libXcomposite.ppc64le 0:0.4.4-4.1.el7 will be installed
---> Package libXext.ppc64le 0:1.3.3-3.el7 will be installed
---> Package libXi.ppc64le 0:1.7.9-1.el7 will be installed
---> Package libXrender.ppc64le 0:0.9.10-1.el7 will be installed
---> Package libXtst.ppc64le 0:1.2.3-1.el7 will be installed
---> Package libjpeg-turbo.ppc64le 0:1.2.90-8.el7 will be installed
---> Package xorg-x11-fonts-Type1.noarch 0:7.5-9.el7 will be installed
--> Processing Dependency: ttmkfdir for package: xorg-x11-fonts-Type1-7.5-9.el7.noarch
--> Processing Dependency: ttmkfdir for package: xorg-x11-fonts-Type1-7.5-9.el7.noarch
--> Processing Dependency: mkfontdir for package: xorg-x11-fonts-Type1-7.5-9.el7.noarch
--> Processing Dependency: mkfontdir for package: xorg-x11-fonts-Type1-7.5-9.el7.noarch
--> Running transaction check
---> Package atk.ppc64le 0:2.28.1-1.el7 will be installed
---> Package cairo.ppc64le 0:1.15.12-4.el7 will be installed
--> Processing Dependency: libpixman-1.so.0()(64bit) for package: cairo-1.15.12-4.el7.ppc64le
--> Processing Dependency: libGL.so.1()(64bit) for package: cairo-1.15.12-4.el7.ppc64le
--> Processing Dependency: libEGL.so.1()(64bit) for package: cairo-1.15.12-4.el7.ppc64le
---> Package copy-jdk-configs.noarch 0:3.3-10.el7_5 will be installed
---> Package cups-libs.ppc64le 1:1.6.3-40.el7 will be installed
--> Processing Dependency: libavahi-common.so.3()(64bit) for package: 1:cups-libs-1.6.3-40.el7.ppc64le
--> Processing Dependency: libavahi-client.so.3()(64bit) for package: 1:cups-libs-1.6.3-40.el7.ppc64le
---> Package dejavu-sans-fonts.noarch 0:2.33-6.el7 will be installed
--> Processing Dependency: dejavu-fonts-common = 2.33-6.el7 for package: dejavu-sans-fonts-2.33-6.el7.noarch
---> Package fontpackages-filesystem.noarch 0:1.44-8.el7 will be installed
---> Package gdk-pixbuf2.ppc64le 0:2.36.12-3.el7 will be installed
--> Processing Dependency: libjasper.so.1()(64bit) for package: gdk-pixbuf2-2.36.12-3.el7.ppc64le
---> Package gtk-update-icon-cache.ppc64le 0:3.22.30-3.el7 will be installed
---> Package hicolor-icon-theme.noarch 0:0.12-7.el7 will be installed
---> Package javapackages-tools.noarch 0:3.4.1-11.el7 will be installed
--> Processing Dependency: python-javapackages = 3.4.1-11.el7 for package: javapackages-tools-3.4.1-11.el7.noarch
--> Processing Dependency: libxslt for package: javapackages-tools-3.4.1-11.el7.noarch
---> Package libICE.ppc64le 0:1.0.9-9.el7 will be installed
---> Package libSM.ppc64le 0:1.2.2-2.el7 will be installed
---> Package libX11-common.noarch 0:1.6.7-2.el7 will be installed
---> Package libXcursor.ppc64le 0:1.1.15-1.el7 will be installed
---> Package libXdamage.ppc64le 0:1.1.4-4.1.el7 will be installed
---> Package libXfixes.ppc64le 0:5.0.3-1.el7 will be installed
---> Package libXinerama.ppc64le 0:1.1.3-2.1.el7 will be installed
---> Package libXrandr.ppc64le 0:1.5.1-2.el7 will be installed
---> Package libtiff.ppc64le 0:4.0.3-32.el7 will be installed
--> Processing Dependency: libjbig.so.2.0()(64bit) for package: libtiff-4.0.3-32.el7.ppc64le
---> Package libxcb.ppc64le 0:1.13-1.el7 will be installed
--> Processing Dependency: libXau.so.6()(64bit) for package: libxcb-1.13-1.el7.ppc64le
---> Package lksctp-tools.ppc64le 0:1.0.17-2.el7 will be installed
---> Package pango.ppc64le 0:1.42.4-4.el7_7 will be installed
--> Processing Dependency: libthai(ppc-64) >= 0.1.9 for package: pango-1.42.4-4.el7_7.ppc64le
--> Processing Dependency: libXft(ppc-64) >= 2.0.0 for package: pango-1.42.4-4.el7_7.ppc64le
--> Processing Dependency: harfbuzz(ppc-64) >= 1.4.2 for package: pango-1.42.4-4.el7_7.ppc64le
--> Processing Dependency: fribidi(ppc-64) >= 1.0 for package: pango-1.42.4-4.el7_7.ppc64le
--> Processing Dependency: libthai.so.0(LIBTHAI_0.1)(64bit) for package: pango-1.42.4-4.el7_7.ppc64le
--> Processing Dependency: libthai.so.0()(64bit) for package: pango-1.42.4-4.el7_7.ppc64le
--> Processing Dependency: libharfbuzz.so.0()(64bit) for package: pango-1.42.4-4.el7_7.ppc64le
--> Processing Dependency: libfribidi.so.0()(64bit) for package: pango-1.42.4-4.el7_7.ppc64le
--> Processing Dependency: libXft.so.2()(64bit) for package: pango-1.42.4-4.el7_7.ppc64le
---> Package pcsc-lite-libs.ppc64le 0:1.8.8-8.el7 will be installed
---> Package ttmkfdir.ppc64le 0:3.0.9-42.el7 will be installed
---> Package tzdata-java.noarch 0:2019c-1.el7 will be installed
---> Package xorg-x11-font-utils.ppc64le 1:7.5-21.el7 will be installed
--> Processing Dependency: libfontenc.so.1()(64bit) for package: 1:xorg-x11-font-utils-7.5-21.el7.ppc64le
--> Running transaction check
---> Package avahi-libs.ppc64le 0:0.6.31-19.el7 will be installed
---> Package dejavu-fonts-common.noarch 0:2.33-6.el7 will be installed
---> Package fribidi.ppc64le 0:1.0.2-1.el7 will be installed
---> Package harfbuzz.ppc64le 0:1.7.5-2.el7 will be installed
--> Processing Dependency: libgraphite2.so.3()(64bit) for package: harfbuzz-1.7.5-2.el7.ppc64le
---> Package jasper-libs.ppc64le 0:1.900.1-33.el7 will be installed
---> Package jbigkit-libs.ppc64le 0:2.0-11.el7 will be installed
---> Package libXau.ppc64le 0:1.0.8-2.1.el7 will be installed
---> Package libXft.ppc64le 0:2.3.2-2.el7 will be installed
---> Package libfontenc.ppc64le 0:1.1.3-3.el7 will be installed
---> Package libglvnd-egl.ppc64le 1:1.0.1-0.8.git5baa1e5.el7 will be installed
--> Processing Dependency: libglvnd(ppc-64) = 1:1.0.1-0.8.git5baa1e5.el7 for package: 1:libglvnd-egl-1.0.1-0.8.git5baa1e5.el7.ppc64le
--> Processing Dependency: mesa-libEGL(ppc-64) >= 13.0.4-1 for package: 1:libglvnd-egl-1.0.1-0.8.git5baa1e5.el7.ppc64le
--> Processing Dependency: libGLdispatch.so.0()(64bit) for package: 1:libglvnd-egl-1.0.1-0.8.git5baa1e5.el7.ppc64le
---> Package libglvnd-glx.ppc64le 1:1.0.1-0.8.git5baa1e5.el7 will be installed
--> Processing Dependency: mesa-libGL(ppc-64) >= 13.0.4-1 for package: 1:libglvnd-glx-1.0.1-0.8.git5baa1e5.el7.ppc64le
---> Package libthai.ppc64le 0:0.1.14-9.el7 will be installed
---> Package libxslt.ppc64le 0:1.1.28-5.el7 will be installed
---> Package pixman.ppc64le 0:0.34.0-1.el7 will be installed
---> Package python-javapackages.noarch 0:3.4.1-11.el7 will be installed
--> Processing Dependency: python-lxml for package: python-javapackages-3.4.1-11.el7.noarch
--> Running transaction check
---> Package graphite2.ppc64le 0:1.3.10-1.el7_3 will be installed
---> Package libglvnd.ppc64le 1:1.0.1-0.8.git5baa1e5.el7 will be installed
---> Package mesa-libEGL.ppc64le 0:18.3.4-5.el7 will be installed
--> Processing Dependency: mesa-libgbm = 18.3.4-5.el7 for package: mesa-libEGL-18.3.4-5.el7.ppc64le
--> Processing Dependency: libxshmfence.so.1()(64bit) for package: mesa-libEGL-18.3.4-5.el7.ppc64le
--> Processing Dependency: libwayland-server.so.0()(64bit) for package: mesa-libEGL-18.3.4-5.el7.ppc64le
--> Processing Dependency: libwayland-client.so.0()(64bit) for package: mesa-libEGL-18.3.4-5.el7.ppc64le
--> Processing Dependency: libglapi.so.0()(64bit) for package: mesa-libEGL-18.3.4-5.el7.ppc64le
--> Processing Dependency: libgbm.so.1()(64bit) for package: mesa-libEGL-18.3.4-5.el7.ppc64le
---> Package mesa-libGL.ppc64le 0:18.3.4-5.el7 will be installed
--> Processing Dependency: libXxf86vm.so.1()(64bit) for package: mesa-libGL-18.3.4-5.el7.ppc64le
---> Package python-lxml.ppc64le 0:3.2.1-4.el7 will be installed
--> Running transaction check
---> Package libXxf86vm.ppc64le 0:1.1.4-1.el7 will be installed
---> Package libwayland-client.ppc64le 0:1.15.0-1.el7 will be installed
---> Package libwayland-server.ppc64le 0:1.15.0-1.el7 will be installed
---> Package libxshmfence.ppc64le 0:1.2-1.el7 will be installed
---> Package mesa-libgbm.ppc64le 0:18.3.4-5.el7 will be installed
---> Package mesa-libglapi.ppc64le 0:18.3.4-5.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================
 Package                            Arch           Version                              Repository      Size
=============================================================================================================
Installing:
 java-1.8.0-openjdk                 ppc64le        1:1.8.0.232.b09-0.el7_7              updates        283 k
Installing for dependencies:
 atk                                ppc64le        2.28.1-1.el7                         base           264 k
 avahi-libs                         ppc64le        0.6.31-19.el7                        base            60 k
 cairo                              ppc64le        1.15.12-4.el7                        base           748 k
 copy-jdk-configs                   noarch         3.3-10.el7_5                         base            21 k
 cups-libs                          ppc64le        1:1.6.3-40.el7                       base           357 k
 dejavu-fonts-common                noarch         2.33-6.el7                           base            64 k
 dejavu-sans-fonts                  noarch         2.33-6.el7                           base           1.4 M
 fontconfig                         ppc64le        2.13.0-4.3.el7                       base           260 k
 fontpackages-filesystem            noarch         1.44-8.el7                           base           9.9 k
 fribidi                            ppc64le        1.0.2-1.el7                          base            81 k
 gdk-pixbuf2                        ppc64le        2.36.12-3.el7                        base           576 k
 giflib                             ppc64le        4.1.6-9.el7                          base            41 k
 graphite2                          ppc64le        1.3.10-1.el7_3                       base           110 k
 gtk-update-icon-cache              ppc64le        3.22.30-3.el7                        base            28 k
 gtk2                               ppc64le        2.24.31-1.el7                        base           3.4 M
 harfbuzz                           ppc64le        1.7.5-2.el7                          base           259 k
 hicolor-icon-theme                 noarch         0.12-7.el7                           base            42 k
 jasper-libs                        ppc64le        1.900.1-33.el7                       base           152 k
 java-1.8.0-openjdk-headless        ppc64le        1:1.8.0.232.b09-0.el7_7              updates         31 M
 javapackages-tools                 noarch         3.4.1-11.el7                         base            73 k
 jbigkit-libs                       ppc64le        2.0-11.el7                           base            48 k
 libICE                             ppc64le        1.0.9-9.el7                          base            66 k
 libSM                              ppc64le        1.2.2-2.el7                          base            39 k
 libX11                             ppc64le        1.6.7-2.el7                          base           616 k
 libX11-common                      noarch         1.6.7-2.el7                          base           164 k
 libXau                             ppc64le        1.0.8-2.1.el7                        base            29 k
 libXcomposite                      ppc64le        0.4.4-4.1.el7                        base            22 k
 libXcursor                         ppc64le        1.1.15-1.el7                         base            31 k
 libXdamage                         ppc64le        1.1.4-4.1.el7                        base            20 k
 libXext                            ppc64le        1.3.3-3.el7                          base            39 k
 libXfixes                          ppc64le        5.0.3-1.el7                          base            18 k
 libXft                             ppc64le        2.3.2-2.el7                          base            60 k
 libXi                              ppc64le        1.7.9-1.el7                          base            41 k
 libXinerama                        ppc64le        1.1.3-2.1.el7                        base            14 k
 libXrandr                          ppc64le        1.5.1-2.el7                          base            27 k
 libXrender                         ppc64le        0.9.10-1.el7                         base            26 k
 libXtst                            ppc64le        1.2.3-1.el7                          base            21 k
 libXxf86vm                         ppc64le        1.1.4-1.el7                          base            17 k
 libfontenc                         ppc64le        1.1.3-3.el7                          base            31 k
 libglvnd                           ppc64le        1:1.0.1-0.8.git5baa1e5.el7           base            86 k
 libglvnd-egl                       ppc64le        1:1.0.1-0.8.git5baa1e5.el7           base            46 k
 libglvnd-glx                       ppc64le        1:1.0.1-0.8.git5baa1e5.el7           base           129 k
 libjpeg-turbo                      ppc64le        1.2.90-8.el7                         base           128 k
 libthai                            ppc64le        0.1.14-9.el7                         base           188 k
 libtiff                            ppc64le        4.0.3-32.el7                         base           171 k
 libwayland-client                  ppc64le        1.15.0-1.el7                         base            33 k
 libwayland-server                  ppc64le        1.15.0-1.el7                         base            39 k
 libxcb                             ppc64le        1.13-1.el7                           base           223 k
 libxshmfence                       ppc64le        1.2-1.el7                            base           7.0 k
 libxslt                            ppc64le        1.1.28-5.el7                         base           240 k
 lksctp-tools                       ppc64le        1.0.17-2.el7                         base            89 k
 mesa-libEGL                        ppc64le        18.3.4-5.el7                         base           110 k
 mesa-libGL                         ppc64le        18.3.4-5.el7                         base           169 k
 mesa-libgbm                        ppc64le        18.3.4-5.el7                         base            39 k
 mesa-libglapi                      ppc64le        18.3.4-5.el7                         base            45 k
 pango                              ppc64le        1.42.4-4.el7_7                       updates        288 k
 pcsc-lite-libs                     ppc64le        1.8.8-8.el7                          base            35 k
 pixman                             ppc64le        0.34.0-1.el7                         base           183 k
 python-javapackages                noarch         3.4.1-11.el7                         base            31 k
 python-lxml                        ppc64le        3.2.1-4.el7                          base           742 k
 ttmkfdir                           ppc64le        3.0.9-42.el7                         base            49 k
 tzdata-java                        noarch         2019c-1.el7                          updates        187 k
 xorg-x11-font-utils                ppc64le        1:7.5-21.el7                         base           107 k
 xorg-x11-fonts-Type1               noarch         7.5-9.el7                            base           521 k

Transaction Summary
=============================================================================================================
Install  1 Package (+64 Dependent packages)

Total size: 44 M
Installed size: 159 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : libjpeg-turbo-1.2.90-8.el7.ppc64le                                                       1/65 
  Installing : mesa-libglapi-18.3.4-5.el7.ppc64le                                                       2/65 
  Installing : libICE-1.0.9-9.el7.ppc64le                                                               3/65 
  Installing : libxslt-1.1.28-5.el7.ppc64le                                                             4/65 
  Installing : libxshmfence-1.2-1.el7.ppc64le                                                           5/65 
  Installing : 1:libglvnd-1.0.1-0.8.git5baa1e5.el7.ppc64le                                              6/65 
  Installing : fontpackages-filesystem-1.44-8.el7.noarch                                                7/65 
  Installing : libwayland-server-1.15.0-1.el7.ppc64le                                                   8/65 
  Installing : mesa-libgbm-18.3.4-5.el7.ppc64le                                                         9/65 
  Installing : dejavu-fonts-common-2.33-6.el7.noarch                                                   10/65 
  Installing : dejavu-sans-fonts-2.33-6.el7.noarch                                                     11/65 
  Installing : fontconfig-2.13.0-4.3.el7.ppc64le                                                       12/65 
  Installing : python-lxml-3.2.1-4.el7.ppc64le                                                         13/65 
  Installing : python-javapackages-3.4.1-11.el7.noarch                                                 14/65 
  Installing : javapackages-tools-3.4.1-11.el7.noarch                                                  15/65 
  Installing : libSM-1.2.2-2.el7.ppc64le                                                               16/65 
  Installing : jasper-libs-1.900.1-33.el7.ppc64le                                                      17/65 
  Installing : libfontenc-1.1.3-3.el7.ppc64le                                                          18/65 
  Installing : 1:xorg-x11-font-utils-7.5-21.el7.ppc64le                                                19/65 
  Installing : jbigkit-libs-2.0-11.el7.ppc64le                                                         20/65 
  Installing : libtiff-4.0.3-32.el7.ppc64le                                                            21/65 
  Installing : fribidi-1.0.2-1.el7.ppc64le                                                             22/65 
  Installing : libXau-1.0.8-2.1.el7.ppc64le                                                            23/65 
  Installing : libxcb-1.13-1.el7.ppc64le                                                               24/65 
  Installing : avahi-libs-0.6.31-19.el7.ppc64le                                                        25/65 
  Installing : 1:cups-libs-1.6.3-40.el7.ppc64le                                                        26/65 
  Installing : pcsc-lite-libs-1.8.8-8.el7.ppc64le                                                      27/65 
  Installing : libX11-common-1.6.7-2.el7.noarch                                                        28/65 
  Installing : libX11-1.6.7-2.el7.ppc64le                                                              29/65 
  Installing : libXext-1.3.3-3.el7.ppc64le                                                             30/65 
  Installing : libXrender-0.9.10-1.el7.ppc64le                                                         31/65 
  Installing : libXfixes-5.0.3-1.el7.ppc64le                                                           32/65 
  Installing : libXi-1.7.9-1.el7.ppc64le                                                               33/65 
  Installing : libXdamage-1.1.4-4.1.el7.ppc64le                                                        34/65 
  Installing : libXcomposite-0.4.4-4.1.el7.ppc64le                                                     35/65 
  Installing : gdk-pixbuf2-2.36.12-3.el7.ppc64le                                                       36/65 
  Installing : gtk-update-icon-cache-3.22.30-3.el7.ppc64le                                             37/65 
  Installing : libXtst-1.2.3-1.el7.ppc64le                                                             38/65 
  Installing : libXcursor-1.1.15-1.el7.ppc64le                                                         39/65 
  Installing : libXft-2.3.2-2.el7.ppc64le                                                              40/65 
  Installing : libXrandr-1.5.1-2.el7.ppc64le                                                           41/65 
  Installing : libXinerama-1.1.3-2.1.el7.ppc64le                                                       42/65 
  Installing : libXxf86vm-1.1.4-1.el7.ppc64le                                                          43/65 
  Installing : 1:libglvnd-glx-1.0.1-0.8.git5baa1e5.el7.ppc64le                                         44/65 
  Installing : mesa-libGL-18.3.4-5.el7.ppc64le                                                         45/65 
  Installing : giflib-4.1.6-9.el7.ppc64le                                                              46/65 
  Installing : libwayland-client-1.15.0-1.el7.ppc64le                                                  47/65 
  Installing : 1:libglvnd-egl-1.0.1-0.8.git5baa1e5.el7.ppc64le                                         48/65 
  Installing : mesa-libEGL-18.3.4-5.el7.ppc64le                                                        49/65 
  Installing : tzdata-java-2019c-1.el7.noarch                                                          50/65 
  Installing : lksctp-tools-1.0.17-2.el7.ppc64le                                                       51/65 
  Installing : atk-2.28.1-1.el7.ppc64le                                                                52/65 
  Installing : copy-jdk-configs-3.3-10.el7_5.noarch                                                    53/65 
  Installing : 1:java-1.8.0-openjdk-headless-1.8.0.232.b09-0.el7_7.ppc64le                             54/65 
  Installing : hicolor-icon-theme-0.12-7.el7.noarch                                                    55/65 
  Installing : ttmkfdir-3.0.9-42.el7.ppc64le                                                           56/65 
  Installing : xorg-x11-fonts-Type1-7.5-9.el7.noarch                                                   57/65 
  Installing : pixman-0.34.0-1.el7.ppc64le                                                             58/65 
  Installing : cairo-1.15.12-4.el7.ppc64le                                                             59/65 
  Installing : graphite2-1.3.10-1.el7_3.ppc64le                                                        60/65 
  Installing : harfbuzz-1.7.5-2.el7.ppc64le                                                            61/65 
  Installing : libthai-0.1.14-9.el7.ppc64le                                                            62/65 
  Installing : pango-1.42.4-4.el7_7.ppc64le                                                            63/65 
  Installing : gtk2-2.24.31-1.el7.ppc64le                                                              64/65 
  Installing : 1:java-1.8.0-openjdk-1.8.0.232.b09-0.el7_7.ppc64le                                      65/65 
  Verifying  : mesa-libEGL-18.3.4-5.el7.ppc64le                                                         1/65 
  Verifying  : 1:java-1.8.0-openjdk-1.8.0.232.b09-0.el7_7.ppc64le                                       2/65 
  Verifying  : libthai-0.1.14-9.el7.ppc64le                                                             3/65 
  Verifying  : graphite2-1.3.10-1.el7_3.ppc64le                                                         4/65 
  Verifying  : pixman-0.34.0-1.el7.ppc64le                                                              5/65 
  Verifying  : libXft-2.3.2-2.el7.ppc64le                                                               6/65 
  Verifying  : libwayland-server-1.15.0-1.el7.ppc64le                                                   7/65 
  Verifying  : libXfixes-5.0.3-1.el7.ppc64le                                                            8/65 
  Verifying  : libXcomposite-0.4.4-4.1.el7.ppc64le                                                      9/65 
  Verifying  : libxcb-1.13-1.el7.ppc64le                                                               10/65 
  Verifying  : mesa-libgbm-18.3.4-5.el7.ppc64le                                                        11/65 
  Verifying  : 1:cups-libs-1.6.3-40.el7.ppc64le                                                        12/65 
  Verifying  : fontpackages-filesystem-1.44-8.el7.noarch                                               13/65 
  Verifying  : libX11-1.6.7-2.el7.ppc64le                                                              14/65 
  Verifying  : ttmkfdir-3.0.9-42.el7.ppc64le                                                           15/65 
  Verifying  : hicolor-icon-theme-0.12-7.el7.noarch                                                    16/65 
  Verifying  : 1:libglvnd-1.0.1-0.8.git5baa1e5.el7.ppc64le                                             17/65 
  Verifying  : gtk-update-icon-cache-3.22.30-3.el7.ppc64le                                             18/65 
  Verifying  : 1:java-1.8.0-openjdk-headless-1.8.0.232.b09-0.el7_7.ppc64le                             19/65 
  Verifying  : 1:libglvnd-egl-1.0.1-0.8.git5baa1e5.el7.ppc64le                                         20/65 
  Verifying  : libXtst-1.2.3-1.el7.ppc64le                                                             21/65 
  Verifying  : copy-jdk-configs-3.3-10.el7_5.noarch                                                    22/65 
  Verifying  : python-javapackages-3.4.1-11.el7.noarch                                                 23/65 
  Verifying  : atk-2.28.1-1.el7.ppc64le                                                                24/65 
  Verifying  : dejavu-fonts-common-2.33-6.el7.noarch                                                   25/65 
  Verifying  : libXdamage-1.1.4-4.1.el7.ppc64le                                                        26/65 
  Verifying  : libtiff-4.0.3-32.el7.ppc64le                                                            27/65 
  Verifying  : giflib-4.1.6-9.el7.ppc64le                                                              28/65 
  Verifying  : lksctp-tools-1.0.17-2.el7.ppc64le                                                       29/65 
  Verifying  : gdk-pixbuf2-2.36.12-3.el7.ppc64le                                                       30/65 
  Verifying  : tzdata-java-2019c-1.el7.noarch                                                          31/65 
  Verifying  : 1:libglvnd-glx-1.0.1-0.8.git5baa1e5.el7.ppc64le                                         32/65 
  Verifying  : libwayland-client-1.15.0-1.el7.ppc64le                                                  33/65 
  Verifying  : cairo-1.15.12-4.el7.ppc64le                                                             34/65 
  Verifying  : libX11-common-1.6.7-2.el7.noarch                                                        35/65 
  Verifying  : libXcursor-1.1.15-1.el7.ppc64le                                                         36/65 
  Verifying  : fontconfig-2.13.0-4.3.el7.ppc64le                                                       37/65 
  Verifying  : xorg-x11-fonts-Type1-7.5-9.el7.noarch                                                   38/65 
  Verifying  : libXext-1.3.3-3.el7.ppc64le                                                             39/65 
  Verifying  : pcsc-lite-libs-1.8.8-8.el7.ppc64le                                                      40/65 
  Verifying  : pango-1.42.4-4.el7_7.ppc64le                                                            41/65 
  Verifying  : libXi-1.7.9-1.el7.ppc64le                                                               42/65 
  Verifying  : dejavu-sans-fonts-2.33-6.el7.noarch                                                     43/65 
  Verifying  : libXinerama-1.1.3-2.1.el7.ppc64le                                                       44/65 
  Verifying  : libxshmfence-1.2-1.el7.ppc64le                                                          45/65 
  Verifying  : avahi-libs-0.6.31-19.el7.ppc64le                                                        46/65 
  Verifying  : javapackages-tools-3.4.1-11.el7.noarch                                                  47/65 
  Verifying  : libXau-1.0.8-2.1.el7.ppc64le                                                            48/65 
  Verifying  : harfbuzz-1.7.5-2.el7.ppc64le                                                            49/65 
  Verifying  : fribidi-1.0.2-1.el7.ppc64le                                                             50/65 
  Verifying  : mesa-libglapi-18.3.4-5.el7.ppc64le                                                      51/65 
  Verifying  : libXrender-0.9.10-1.el7.ppc64le                                                         52/65 
  Verifying  : jbigkit-libs-2.0-11.el7.ppc64le                                                         53/65 
  Verifying  : gtk2-2.24.31-1.el7.ppc64le                                                              54/65 
  Verifying  : 1:xorg-x11-font-utils-7.5-21.el7.ppc64le                                                55/65 
  Verifying  : python-lxml-3.2.1-4.el7.ppc64le                                                         56/65 
  Verifying  : libXxf86vm-1.1.4-1.el7.ppc64le                                                          57/65 
  Verifying  : mesa-libGL-18.3.4-5.el7.ppc64le                                                         58/65 
  Verifying  : libjpeg-turbo-1.2.90-8.el7.ppc64le                                                      59/65 
  Verifying  : libxslt-1.1.28-5.el7.ppc64le                                                            60/65 
  Verifying  : jasper-libs-1.900.1-33.el7.ppc64le                                                      61/65 
  Verifying  : libXrandr-1.5.1-2.el7.ppc64le                                                           62/65 
  Verifying  : libfontenc-1.1.3-3.el7.ppc64le                                                          63/65 
  Verifying  : libICE-1.0.9-9.el7.ppc64le                                                              64/65 
  Verifying  : libSM-1.2.2-2.el7.ppc64le                                                               65/65 

Installed:
  java-1.8.0-openjdk.ppc64le 1:1.8.0.232.b09-0.el7_7                                                         

Dependency Installed:
  atk.ppc64le 0:2.28.1-1.el7                                                                                 
  avahi-libs.ppc64le 0:0.6.31-19.el7                                                                         
  cairo.ppc64le 0:1.15.12-4.el7                                                                              
  copy-jdk-configs.noarch 0:3.3-10.el7_5                                                                     
  cups-libs.ppc64le 1:1.6.3-40.el7                                                                           
  dejavu-fonts-common.noarch 0:2.33-6.el7                                                                    
  dejavu-sans-fonts.noarch 0:2.33-6.el7                                                                      
  fontconfig.ppc64le 0:2.13.0-4.3.el7                                                                        
  fontpackages-filesystem.noarch 0:1.44-8.el7                                                                
  fribidi.ppc64le 0:1.0.2-1.el7                                                                              
  gdk-pixbuf2.ppc64le 0:2.36.12-3.el7                                                                        
  giflib.ppc64le 0:4.1.6-9.el7                                                                               
  graphite2.ppc64le 0:1.3.10-1.el7_3                                                                         
  gtk-update-icon-cache.ppc64le 0:3.22.30-3.el7                                                              
  gtk2.ppc64le 0:2.24.31-1.el7                                                                               
  harfbuzz.ppc64le 0:1.7.5-2.el7                                                                             
  hicolor-icon-theme.noarch 0:0.12-7.el7                                                                     
  jasper-libs.ppc64le 0:1.900.1-33.el7                                                                       
  java-1.8.0-openjdk-headless.ppc64le 1:1.8.0.232.b09-0.el7_7                                                
  javapackages-tools.noarch 0:3.4.1-11.el7                                                                   
  jbigkit-libs.ppc64le 0:2.0-11.el7                                                                          
  libICE.ppc64le 0:1.0.9-9.el7                                                                               
  libSM.ppc64le 0:1.2.2-2.el7                                                                                
  libX11.ppc64le 0:1.6.7-2.el7                                                                               
  libX11-common.noarch 0:1.6.7-2.el7                                                                         
  libXau.ppc64le 0:1.0.8-2.1.el7                                                                             
  libXcomposite.ppc64le 0:0.4.4-4.1.el7                                                                      
  libXcursor.ppc64le 0:1.1.15-1.el7                                                                          
  libXdamage.ppc64le 0:1.1.4-4.1.el7                                                                         
  libXext.ppc64le 0:1.3.3-3.el7                                                                              
  libXfixes.ppc64le 0:5.0.3-1.el7                                                                            
  libXft.ppc64le 0:2.3.2-2.el7                                                                               
  libXi.ppc64le 0:1.7.9-1.el7                                                                                
  libXinerama.ppc64le 0:1.1.3-2.1.el7                                                                        
  libXrandr.ppc64le 0:1.5.1-2.el7                                                                            
  libXrender.ppc64le 0:0.9.10-1.el7                                                                          
  libXtst.ppc64le 0:1.2.3-1.el7                                                                              
  libXxf86vm.ppc64le 0:1.1.4-1.el7                                                                           
  libfontenc.ppc64le 0:1.1.3-3.el7                                                                           
  libglvnd.ppc64le 1:1.0.1-0.8.git5baa1e5.el7                                                                
  libglvnd-egl.ppc64le 1:1.0.1-0.8.git5baa1e5.el7                                                            
  libglvnd-glx.ppc64le 1:1.0.1-0.8.git5baa1e5.el7                                                            
  libjpeg-turbo.ppc64le 0:1.2.90-8.el7                                                                       
  libthai.ppc64le 0:0.1.14-9.el7                                                                             
  libtiff.ppc64le 0:4.0.3-32.el7                                                                             
  libwayland-client.ppc64le 0:1.15.0-1.el7                                                                   
  libwayland-server.ppc64le 0:1.15.0-1.el7                                                                   
  libxcb.ppc64le 0:1.13-1.el7                                                                                
  libxshmfence.ppc64le 0:1.2-1.el7                                                                           
  libxslt.ppc64le 0:1.1.28-5.el7                                                                             
  lksctp-tools.ppc64le 0:1.0.17-2.el7                                                                        
  mesa-libEGL.ppc64le 0:18.3.4-5.el7                                                                         
  mesa-libGL.ppc64le 0:18.3.4-5.el7                                                                          
  mesa-libgbm.ppc64le 0:18.3.4-5.el7                                                                         
  mesa-libglapi.ppc64le 0:18.3.4-5.el7                                                                       
  pango.ppc64le 0:1.42.4-4.el7_7                                                                             
  pcsc-lite-libs.ppc64le 0:1.8.8-8.el7                                                                       
  pixman.ppc64le 0:0.34.0-1.el7                                                                              
  python-javapackages.noarch 0:3.4.1-11.el7                                                                  
  python-lxml.ppc64le 0:3.2.1-4.el7                                                                          
  ttmkfdir.ppc64le 0:3.0.9-42.el7                                                                            
  tzdata-java.noarch 0:2019c-1.el7                                                                           
  xorg-x11-font-utils.ppc64le 1:7.5-21.el7                                                                   
  xorg-x11-fonts-Type1.noarch 0:7.5-9.el7                                                                    

Complete!
[root@admin ~]# 
[root@admin ~]# java -version
openjdk version "1.8.0_232"
OpenJDK Runtime Environment (build 1.8.0_232-b09)
OpenJDK 64-Bit Server VM (build 25.232-b09, mixed mode)
[root@admin ~]# 
[root@admin ~]#


一条命令搞定,佩服
su -c "yum install java-1.8.0-openjdk"

但是 
The java-1.8.0-openjdk package contains just the Java Runtime Environment. If you want to develop Java programs then install the java-1.8.0-openjdk-devel package.

就是说再装  java-1.8.0-openjdk-devel

yum install java-1.8.0-openjdk-devel


报错
[Errno 2] No such file or directory: '/tmp/yum_save_tx.2019-11-27.14-52.ufgz

那是因为没有那个目录,执行yum list会自动生成

输入命令yum list 问题解决!

[root@admin ~]# yum install java-1.8.0-openjdk-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package java-1.8.0-openjdk-devel.ppc64le 1:1.8.0.232.b09-0.el7_7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================
 Package                           Arch             Version                           Repository        Size
=============================================================================================================
Installing:
 java-1.8.0-openjdk-devel          ppc64le          1:1.8.0.232.b09-0.el7_7           updates          7.9 M

Transaction Summary
=============================================================================================================
Install  1 Package

Total size: 7.9 M
Installed size: 41 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : 1:java-1.8.0-openjdk-devel-1.8.0.232.b09-0.el7_7.ppc64le                                  1/1 
  Verifying  : 1:java-1.8.0-openjdk-devel-1.8.0.232.b09-0.el7_7.ppc64le                                  1/1 

Installed:
  java-1.8.0-openjdk-devel.ppc64le 1:1.8.0.232.b09-0.el7_7                                                   

Complete!
[root@admin ~]# 
[root@admin ~]#

OK

[root@admin ~]# java
Usage: java [-options] class [args...]
           (to execute a class)
   or  java [-options] -jar jarfile [args...]
           (to execute a jar file)
where options include:
    -d32      use a 32-bit data model if available
    -d64      use a 64-bit data model if available
    -server      to select the "server" VM
                  The default VM is server,
                  because you are running on a server-class machine.


    -cp <class search path of directories and zip/jar files>
    -classpath <class search path of directories and zip/jar files>
                  A : separated list of directories, JAR archives,
                  and ZIP archives to search for class files.
    -D<name>=<value>
                  set a system property
    -verbose:[class|gc|jni]
                  enable verbose output
    -version      print product version and exit
    -version:<value>
                  Warning: this feature is deprecated and will be removed
                  in a future release.
                  require the specified version to run
    -showversion  print product version and continue
    -jre-restrict-search | -no-jre-restrict-search
                  Warning: this feature is deprecated and will be removed
                  in a future release.
                  include/exclude user private JREs in the version search
    -? -help      print this help message
    -X            print help on non-standard options
    -ea[:<packagename>...|:<classname>]
    -enableassertions[:<packagename>...|:<classname>]
                  enable assertions with specified granularity
    -da[:<packagename>...|:<classname>]
    -disableassertions[:<packagename>...|:<classname>]
                  disable assertions with specified granularity
    -esa | -enablesystemassertions
                  enable system assertions
    -dsa | -disablesystemassertions
                  disable system assertions
    -agentlib:<libname>[=<options>]
                  load native agent library <libname>, e.g. -agentlib:hprof
                  see also, -agentlib:jdwp=help and -agentlib:hprof=help
    -agentpath:<pathname>[=<options>]
                  load native agent library by full pathname
    -javaagent:<jarpath>[=<options>]
                  load Java programming language agent, see java.lang.instrument
    -splash:<imagepath>
                  show splash screen with specified image
See http://www.oracle.com/technetwork/java/javase/documentation/index.html for more details.
[root@admin ~]# 
[root@admin ~]# javac
Usage: javac <options> <source files>
where possible options include:
  -g                         Generate all debugging info
  -g:none                    Generate no debugging info
  -g:{lines,vars,source}     Generate only some debugging info
  -nowarn                    Generate no warnings
  -verbose                   Output messages about what the compiler is doing
  -deprecation               Output source locations where deprecated APIs are used
  -classpath <path>          Specify where to find user class files and annotation processors
  -cp <path>                 Specify where to find user class files and annotation processors
  -sourcepath <path>         Specify where to find input source files
  -bootclasspath <path>      Override location of bootstrap class files
  -extdirs <dirs>            Override location of installed extensions
  -endorseddirs <dirs>       Override location of endorsed standards path
  -proc:{none,only}          Control whether annotation processing and/or compilation is done.
  -processor <class1>[,<class2>,<class3>...] Names of the annotation processors to run; bypasses default discovery process
  -processorpath <path>      Specify where to find annotation processors
  -parameters                Generate metadata for reflection on method parameters
  -d <directory>             Specify where to place generated class files
  -s <directory>             Specify where to place generated source files
  -h <directory>             Specify where to place generated native header files
  -implicit:{none,class}     Specify whether or not to generate class files for implicitly referenced files
  -encoding <encoding>       Specify character encoding used by source files
  -source <release>          Provide source compatibility with specified release
  -target <release>          Generate class files for specific VM version
  -profile <profile>         Check that API used is available in the specified profile
  -version                   Version information
  -help                      Print a synopsis of standard options
  -Akey[=value]              Options to pass to annotation processors
  -X                         Print a synopsis of nonstandard options
  -J<flag>                   Pass <flag> directly to the runtime system
  -Werror                    Terminate compilation if warnings occur
  @<filename>                Read options and filenames from file

[root@admin ~]# 
[root@admin ~]# java -version
openjdk version "1.8.0_232"
OpenJDK Runtime Environment (build 1.8.0_232-b09)
OpenJDK 64-Bit Server VM (build 25.232-b09, mixed mode)
[root@admin ~]# 
[root@admin ~]#


好了


测试一下


[root@admin ~]# cat test.java 
public class test{
    public static void main(String[] args){
        System.out.println("hello world!");
        System.out.println("test successful!");
    }
}
[root@admin ~]# 
[root@admin ~]# javac test.java 
[root@admin ~]# 
[root@admin ~]# java test
hello world!
test successful!
[root@admin ~]# 
[root@admin ~]#

那就好了

so easy


[root@admin ~]# java -version
openjdk version "1.8.0_232"
OpenJDK Runtime Environment (build 1.8.0_232-b09)
OpenJDK 64-Bit Server VM (build 25.232-b09, mixed mode)
[root@admin ~]#

或者是

yum install java-1.8.0-openjdk* -y

直接这一句,然后编辑配置文件、生效配置文件

发布了149 篇原创文章 · 获赞 37 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/frdevolcqzyxynjds/article/details/103304461
今日推荐