[英]Can I install java 1.6 with 64 bit on Window/Linux 32 bit?
[英]One step yum install of java 1.7 in 32 bit with Linux
以前我是用以下32位格式安裝Java 1.7
(注意ftp插入)
yum install ftp://rpmfind.net/linux/centos/6.4/updates/i386/Packages/java-1.7.0-openjdk-1.7.0.9-2.3.7.1.el6_3.i686.rpm
但現在安裝不再有效
[root@mmclntx ~]# yum install ftp://rpmfind.net/linux/centos/6.4/updates/i386/Packages/java-1.7.0-openjdk-1.7.0.9-2.3.7.1.el6_3.i686.rpm
Loaded plugins: product-id, rhnplugin, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Install Process
Cannot open: ftp://rpmfind.net/linux/centos/6.4/updates/i386/Packages/java-1.7.0-openjdk-1.7.0.9-2.3.7.1.el6_3.i686.rpm. Skipping.
Error: Nothing to do
[root@mmclntx ~]#
我可以用一個單步嗡嗡聲安裝命令替換嗎?
這對我有用:
yum install ftp://rpmfind.net/linux/centos/6.5/os/i386/Packages/java-1.7.0-openjdk-1.7.0.45-2.4.3.3.el6.i686.rpm
結果
Setting up Install Process
java-1.7.0-openjdk-1.7.0.45-2.4.3.3.el6.i686.rpm | 27 MB 00:02
Examining /var/tmp/yum-root-19c9mu/java-1.7.0-openjdk-1.7.0.45-2.4.3.3.el6.i686.rpm: 1:java-1.7.0-openjdk-1.7.0.45-2.4.3.3.el6.i686
Marking /var/tmp/yum-root-19c9mu/java-1.7.0-openjdk-1.7.0.45-2.4.3.3.el6.i686.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package java-1.7.0-openjdk.i686 1:1.7.0.45-2.4.3.3.el6 will be installed
...
我想念什么嗎?
使用JDK 1.7
# yum install java-1.7.0-openjdk
OpenJDK位於默認updates
存儲庫中
Name : java-1.7.0-openjdk
Arch : x86_64
Epoch : 1
Version : 1.7.0.51
Release : 2.4.4.1.el6_5
Size : 26 M
Repo : updates
Summary : OpenJDK Runtime Environment
URL : http://openjdk.java.net/
License : ASL 1.1 and ASL 2.0 and GPL+ and GPLv2 and GPLv2 with exceptions and LGPL+ and LGPLv2 and MPLv1.0 and MPLv1.1 and Public Domain and W3C
Description : The OpenJDK runtime environment.
安裝程序由於目錄索引的README中明確指出的原因而無法運行:
此目錄(和CentOS版本)已棄用。 對於普通用戶,您應該在路徑中使用/ 6 /而不是/6.4/。 請參閱以下有關CentOS發行方案的常見問題解答:
http://www.centos.org/modules/smartfaq/faq.php?faqid=34
如果您知道自己在做什么,並且絕對希望保持在6.4級別,請訪問http://vault.centos.org/獲取軟件包。
請記住,6.0、6.1、6.2、6.3和6.4不再獲得任何更新,也沒有任何安全修復程序。
因此,在FTP URL /6.4/
替換為/6/
或轉至http://vault.centos.org
(以您所用的情況為准),然后進行設置。 此外,最后一行可能對您來說很有趣:)
您還應該考慮從存儲庫中獲取軟件包,以便及時了解安全修補程序。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.