1. <tfoot id='CZVrg'></tfoot>
      <legend id='CZVrg'><style id='CZVrg'><dir id='CZVrg'><q id='CZVrg'></q></dir></style></legend>

        <bdo id='CZVrg'></bdo><ul id='CZVrg'></ul>

      <i id='CZVrg'><tr id='CZVrg'><dt id='CZVrg'><q id='CZVrg'><span id='CZVrg'><b id='CZVrg'><form id='CZVrg'><ins id='CZVrg'></ins><ul id='CZVrg'></ul><sub id='CZVrg'></sub></form><legend id='CZVrg'></legend><bdo id='CZVrg'><pre id='CZVrg'><center id='CZVrg'></center></pre></bdo></b><th id='CZVrg'></th></span></q></dt></tr></i><div id='CZVrg'><tfoot id='CZVrg'></tfoot><dl id='CZVrg'><fieldset id='CZVrg'></fieldset></dl></div>

    2. <small id='CZVrg'></small><noframes id='CZVrg'>

      无法使用 yum 或 rpm 在 Fedora 上安装 jdk

      时间:2023-09-27

      • <i id='sUwYY'><tr id='sUwYY'><dt id='sUwYY'><q id='sUwYY'><span id='sUwYY'><b id='sUwYY'><form id='sUwYY'><ins id='sUwYY'></ins><ul id='sUwYY'></ul><sub id='sUwYY'></sub></form><legend id='sUwYY'></legend><bdo id='sUwYY'><pre id='sUwYY'><center id='sUwYY'></center></pre></bdo></b><th id='sUwYY'></th></span></q></dt></tr></i><div id='sUwYY'><tfoot id='sUwYY'></tfoot><dl id='sUwYY'><fieldset id='sUwYY'></fieldset></dl></div>

          <small id='sUwYY'></small><noframes id='sUwYY'>

            <tbody id='sUwYY'></tbody>
            <tfoot id='sUwYY'></tfoot>
          1. <legend id='sUwYY'><style id='sUwYY'><dir id='sUwYY'><q id='sUwYY'></q></dir></style></legend>
              • <bdo id='sUwYY'></bdo><ul id='sUwYY'></ul>

                本文介绍了无法使用 yum 或 rpm 在 Fedora 上安装 jdk的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                帮助!我不知道如何安装jdk!

                Help! I can't figure out how to install a jdk!

                [/usr/lib/jvm]$ su -c "yum install java-1.7.0-openjdk-devel"
                Loaded plugins: langpacks, presto, refresh-packagekit
                No package java-1.7.0-openjdk-devel available.
                Error: Nothing to do
                
                [/usr/lib/jvm]$ su -c "yum install java-1.7.0-openjdk"
                Loaded plugins: langpacks, presto, refresh-packagekit
                No package java-1.7.0-openjdk available.
                Error: Nothing to do
                
                [/usr/lib/jvm]$ su -c "yum install java-1.6.0-openjdk-devel"
                Loaded plugins: langpacks, presto, refresh-packagekit
                No package java-1.6.0-openjdk-devel available.
                Error: Nothing to do
                
                [/usr/lib/jvm]$ su -c "yum install java-1.6.0-openjdk"
                Loaded plugins: langpacks, presto, refresh-packagekit
                No package java-1.6.0-openjdk available.
                Error: Nothing to do
                

                这里我手动下载了一些 rpm,最后一个来自 oracle 的网站:

                Here I've manually downloaded some rpm's, the last one from oracle's website:

                [~]$ rpm -ivh java-1.7.0-openjdk-devel-1.7.0.19-2.3.9.3.fc20.x86_64.rpm 
                error: Failed dependencies:
                    java-1.7.0-openjdk = 1:1.7.0.19-2.3.9.3.fc20 is needed by java-1.7.0-openjdk-devel-1:1.7.0.19-2.3.9.3.fc20.x86_64
                
                
                [~]$ sudo rpm -ivh java-1.7.0-openjdk-1.7.0.19-2.3.9.3.fc20.x86_64.rpm 
                Preparing...                          ################################# [100%]
                    file /usr/lib/jvm-exports/jre-1.7.0-openjdk.x86_64 from install of java-1.7.0-openjdk-1:1.7.0.19-2.3.9.3.fc20.x86_64 conflicts with file from package java-1.7.0-openjdk-1:1.7.0.9-2.3.7.0.fc18.x86_64
                    file /usr/lib/jvm/jre-1.7.0-openjdk.x86_64 from install of java-1.7.0-openjdk-1:1.7.0.19-2.3.9.3.fc20.x86_64 conflicts with file from package java-1.7.0-openjdk-1:1.7.0.9-2.3.7.0.fc18.x86_64
                
                
                [~]$ sudo rpm -ivh jdk-7u21-linux-x64.rpm 
                Preparing...                          ################################# [100%]
                    file /etc/init.d/jexec from install of jdk-2000:1.7.0_21-fcs.x86_64 conflicts with file from package jdk-2000:1.6.0_38-fcs.x86_64
                

                调试

                这里有一些调试信息:

                Debug

                Here's some debug information:

                [/usr/lib/jvm]$ yum search jdk
                Loaded plugins: langpacks, presto, refresh-packagekit
                =========================================================== N/S Matched: jdk ============================================================
                java-1.7.0-openjdk-javadoc.noarch : OpenJDK API Documentation
                jdk.x86_64 : Java(TM) Platform Standard Edition Development Kit
                ldapjdk.noarch : The Mozilla LDAP Java SDK
                Name and summary matches only, use "search all" for everything.
                

                .

                [/usr/lib/jvm]$ yum list java*
                Loaded plugins: langpacks, presto, refresh-packagekit
                Installed Packages
                java-1.5.0-gcj.x86_64   
                

                .

                [/usr/lib/jvm]$ cat /etc/fedora-release 
                Fedora release 18 (Spherical Cow)
                

                要求

                必须拥有jni.h"、libjava.so"、libhpi.so"、"lipverify.so" 和 "libjvm.so" 包括在内.

                Requirements

                I must have "jni.h", "libjava.so", "libhpi.so", "lipverify.so" and "libjvm.so" included.

                到目前为止,我发现这些没有我需要的东西:

                So far I've found out that these DO NOT have what I need:

                • 不受欢迎的版本(肯定):
                  • jdk1.7.0_06 <-- 我很惊讶这个,但它没有 libjvm 也没有 libhpi
                  • java-1.7.0
                  • java-openjdk
                  • java-1.7.0-openjdk-1.7.0.9.x86_64
                  • java-1.5.0-gcj-4.4
                  • java-1.6.0-openjdk
                  • java-1.7.0-openjdk.x86_64
                  • jre-1.5.0-gcj
                  • jre-1.7.0-openjdk.x86_64
                  • jre-openjdk
                  • jre-1.7.0
                  • jre-7u11-linux-x64.rpm java-1.5.0-gcj-1.5.0.0
                  • jre-1.5.0
                  • jre1.7.0_11
                  • jre-gcj

                  这些确实:

                  • 所需版本(据我所知,可能还有更多):
                    • jdk1.6.0_34-x86
                    • jdk1.5.0_22-x86
                    • java-6-openjdk

                    谁能帮我安装 jdk1.6 或 java-6-openjdk 吗?

                    Can someone help me install jdk1.6 or java-6-openjdk please?

                    推荐答案

                    这里的问题是当你已经有 Oracle JDK 6 时,你不能使用 Oracle rpm 来安装 JDK 7,因为它试图安装 /etc/init.d/jexec 已经安装的脚本,JDK 6 需要它.

                    The problem here is that you cannot use the Oracle rpm to install JDK 7 when you already have the Oracle JDK 6 as it tries to install the /etc/init.d/jexec script which is already installed and required for JDK 6.

                    如果您打算使用 Oracle 发行版,我建议您坚持使用 tarball 或自解压 *.bin 并使用 JAVA_HOME,因为它没有这个问题,而且您可能不需要 jexec 无论如何.

                    I would advise sticking to the tarball or self extracting *.bin and using JAVA_HOME if you are going to use the Oracle distribution as it does not have this problem and you will probably not need jexec anyway.

                    这篇关于无法使用 yum 或 rpm 在 Fedora 上安装 jdk的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:JasperReports:java.lang.NoClassDefFoundError:无法初始化类 下一篇:java.lang.UnsatisfiedLinkError: 没有 GurobiJni/Tomcat

                相关文章

                最新文章

              • <tfoot id='QaVCN'></tfoot>
                • <bdo id='QaVCN'></bdo><ul id='QaVCN'></ul>

                <legend id='QaVCN'><style id='QaVCN'><dir id='QaVCN'><q id='QaVCN'></q></dir></style></legend>

                    <i id='QaVCN'><tr id='QaVCN'><dt id='QaVCN'><q id='QaVCN'><span id='QaVCN'><b id='QaVCN'><form id='QaVCN'><ins id='QaVCN'></ins><ul id='QaVCN'></ul><sub id='QaVCN'></sub></form><legend id='QaVCN'></legend><bdo id='QaVCN'><pre id='QaVCN'><center id='QaVCN'></center></pre></bdo></b><th id='QaVCN'></th></span></q></dt></tr></i><div id='QaVCN'><tfoot id='QaVCN'></tfoot><dl id='QaVCN'><fieldset id='QaVCN'></fieldset></dl></div>

                    <small id='QaVCN'></small><noframes id='QaVCN'>