我想通過他們的Deb回購安裝Typesafe Stack到Ubuntu服務器,但不需要下載所有的OpenJDK包。我安裝了Oracle JDK 6,並在我的PATH中通過更新替代品並安裝OpenJDK打破了一些東西。如何用Oracle Java 6而不是OpenJDK使用Typesafe Stack deb repo?
這樣做的最好方法是什麼?它不會出現,我可以使用apt-get --no安裝,建議對這一標誌:
$> sudo apt-get install --no-install-recommends typesafe-stack sbt
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
ca-certificates-java default-jre default-jre-headless g8 java-common libaccess-bridge-java libaccess-bridge-java-jni openjdk-6-jre
openjdk-6-jre-headless openjdk-6-jre-lib
Suggested packages:
equivs icedtea-plugin sun-java6-fonts ttf-sazanami-gothic ttf-kochi-gothic ttf-sazanami-mincho ttf-kochi-mincho ttf-telugu-fonts ttf-oriya-fonts
ttf-kannada-fonts ttf-bengali-fonts
Recommended packages:
icedtea-netx icedtea-6-jre-cacao icedtea-6-jre-jamvm
The following NEW packages will be installed:
ca-certificates-java default-jre default-jre-headless g8 java-common libaccess-bridge-java libaccess-bridge-java-jni openjdk-6-jre
openjdk-6-jre-headless openjdk-6-jre-lib sbt typesafe-stack
0 upgraded, 12 newly installed, 0 to remove and 7 not upgraded.
Need to get 33.0 MB of archives.
After this operation, 86.9 MB of additional disk space will be used.
Do you want to continue [Y/n]? n
Abort.
PS - 我所知道的類型安全堆棧組件與我目前的設置工作,因爲我有它安裝他們之前的安裝程序運行良好。
我正試圖擺脫Ubuntu 11.10中的OpenJDK 6,因爲我從不需要Java 6(我需要的所有東西都能很好地與Java 7一起工作),並且更喜歡Oracle JDK over OpenJDK,但是所有依賴於Java的包都在回購拖動OpenJDK 6.這很煩人,但我放棄了。 – Ivan 2012-04-30 12:52:09
我最終放棄了deb回購,並使用他們的[通用安裝程序在他們的下載頁面底部](http://typesafe.com/stack/download)。將tarball提取到/ opt/typesafe,將/ opt/typesafe/bin添加到〜/ .profile PATH,與Oracle JDK 6和gtg相同。 – Kurtosis 2012-05-03 02:32:05
對於後代,我現在對所有東西都使用'update-alternatives',這裏是我的[Java]腳本(https://github.com/byrongibson/scripts/tree/master/install/java),[Scala](https: //github.com/byrongibson/scripts/tree/master/install/scala)和[Haskell](https://github.com/byrongibson/scripts/tree/master/install/haskell)。有關詳細信息,請參閱Haskell自述文件。 – Kurtosis 2012-06-11 03:42:49