Skip to content

UbuntuにJava入れた

UbuntuにJava入れた published on UbuntuにJava入れた へのコメントはまだありません

■背景

Scalaを触り始めて1ヶ月位経つが、殆ど勉強が進んでいない。言い訳をすると、開発環境が整わないと勉強のスピードが上がらないタイプ。

sbtの使い方は少し分かってきたので、あとはコードを書く環境を整える必要がある。Eclipse + Scala pluginに挫折したのでEmacsのプラグインであるensimeなるものを試してみることにした。

Windowsでやってもいいけど、Emacs使いの大半はUNIX系で使ってるだろうから、Windows固有の問題とかがありそうなのでパス。じゃLinuxでと思ったが、ensimeの前提としてemacs 22か23が必要。CentOSに入っているemacsは21で、バージョンアップも面倒そうなのでUbuntuが入っているVPSを使う事にした。

で、そもそもScalaを動かすにはJavaが必要なので、UbuntuにJavaを入れる必要がある。

とまぁかなり長い前振り。

■やること

たった1行だけ…

apt-get install sun-java6-jdk

ちなみに、Javaはsun-java6-jdkと、オープンソースライセンスのopenjdk-6-jdkの2種類がある。

 環境:Ubuntu 9.0.4

■作業ログ

sun-java6-jdkを入れようとすると、関連パッケージが沢山インストールされる(?)っぽい。

$ sudo apt-get install sun-java6-jdk
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
avahi-daemon consolekit dbus dbus-x11 defoma gsfonts gsfonts-x11 java-common
libavahi-common-data libavahi-common3 libavahi-core5 libdaemon0 libfontenc1
libfreetype6 libice6 libltdl7 libnss-mdns libsm6 libxfont1 libxi6 libxt6
libxtst6 odbcinst1debian1 sun-java6-bin sun-java6-jre unixodbc
xfonts-encodings xfonts-utils
Suggested packages:
avahi-autoipd defoma-doc psfontmgr x-ttcidfont-conf dfontmgr libft-perl
equivs binfmt-support sun-java6-demo openjdk-6-doc sun-java6-source
sun-java6-plugin ia32-sun-java6-plugin sun-java6-fonts ttf-baekmuk
ttf-unfonts ttf-unfonts-core ttf-kochi-gothic ttf-sazanami-gothic
ttf-kochi-mincho ttf-sazanami-mincho ttf-arphic-uming libmyodbc
odbc-postgresql libct1
The following NEW packages will be installed:
avahi-daemon consolekit dbus dbus-x11 defoma gsfonts gsfonts-x11 java-common
libavahi-common-data libavahi-common3 libavahi-core5 libdaemon0 libfontenc1
libfreetype6 libice6 libltdl7 libnss-mdns libsm6 libxfont1 libxi6 libxt6
libxtst6 odbcinst1debian1 sun-java6-bin sun-java6-jdk sun-java6-jre unixodbc
xfonts-encodings xfonts-utils
0 upgraded, 29 newly installed, 0 to remove and 12 not upgraded.
Need to get 61.5MB of archives.
After this operation, 174MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://us.archive.ubuntu.com jaunty/main libice6 2:1.0.4-1 [50.6kB]
Get:2 http://us.archive.ubuntu.com jaunty/main libsm6 2:1.1.0-1 [23.6kB]
Get:3 http://us.archive.ubuntu.com jaunty/main libxt6 1:1.0.5-3ubuntu1 [190kB]
Get:4 http://us.archive.ubuntu.com jaunty/main java-common 0.30ubuntu4 [80.3kB]
Get:5 http://us.archive.ubuntu.com jaunty-updates/multiverse sun-java6-jre 6.20dlj-0ubuntu1.9.04 [6412kB]
Get:6 http://us.archive.ubuntu.com jaunty/main libltdl7 2.2.6a-1ubuntu1 [295kB]
Get:7 http://us.archive.ubuntu.com jaunty/main odbcinst1debian1 2.2.11-16build3 [71.1kB]
Get:8 http://us.archive.ubuntu.com jaunty/main unixodbc 2.2.11-16build3 [315kB]
Get:9 http://us.archive.ubuntu.com jaunty-updates/multiverse sun-java6-bin 6.20dlj-0ubuntu1.9.04 [27.7MB]
Get:10 http://us.archive.ubuntu.com jaunty-updates/multiverse sun-java6-jdk 6.20dlj-0ubuntu1.9.04 [20.9MB]
Get:11 http://us.archive.ubuntu.com jaunty/main libavahi-common-data 0.6.23-4ubuntu4 [31.8kB]
Get:12 http://us.archive.ubuntu.com jaunty/main libavahi-common3 0.6.23-4ubuntu4 [25.5kB]
Get:13 http://us.archive.ubuntu.com jaunty/main libavahi-core5 0.6.23-4ubuntu4 [121kB]
Get:14 http://us.archive.ubuntu.com jaunty/main libdaemon0 0.13-2 [15.0kB]
Get:15 http://us.archive.ubuntu.com jaunty-updates/main consolekit 0.3.0-2ubuntu4 [104kB]
Get:16 http://us.archive.ubuntu.com jaunty-updates/main dbus 1.2.12-0ubuntu2.1 [210kB]
Get:17 http://us.archive.ubuntu.com jaunty/main avahi-daemon 0.6.23-4ubuntu4 [67.6kB]
Get:18 http://us.archive.ubuntu.com jaunty-updates/main dbus-x11 1.2.12-0ubuntu2.1 [42.2kB]
Get:19 http://us.archive.ubuntu.com jaunty/main defoma 0.11.10-0.2ubuntu1 [101kB]
Get:20 http://us.archive.ubuntu.com jaunty/main gsfonts 1:8.11+urwcyr1.0.7~pre44-3 [3322kB]
Get:21 http://us.archive.ubuntu.com jaunty/main libfontenc1 1:1.0.4-3 [19.5kB]
Get:22 http://us.archive.ubuntu.com jaunty-updates/main libfreetype6 2.3.9-4ubuntu0.3 [407kB]
Get:23 http://us.archive.ubuntu.com jaunty/main libxfont1 1:1.3.3-1ubuntu1 [156kB]
Get:24 http://us.archive.ubuntu.com jaunty/main xfonts-encodings 1:1.0.2-3 [584kB]
Get:25 http://us.archive.ubuntu.com jaunty/main xfonts-utils 1:7.4+1ubuntu1 [97.3kB]
Get:26 http://us.archive.ubuntu.com jaunty/main gsfonts-x11 0.21 [10.5kB]
Get:27 http://us.archive.ubuntu.com jaunty/main libnss-mdns 0.10-3ubuntu2 [26.2kB]
Get:28 http://us.archive.ubuntu.com jaunty-updates/main libxi6 2:1.2.0-1ubuntu1.1 [29.2kB]
Get:29 http://us.archive.ubuntu.com jaunty/main libxtst6 2:1.0.3-1ubuntu2 [14.2kB]
Fetched 61.5MB in 16s (3708kB/s)
Preconfiguring packages ...
Selecting previously deselected package libice6.
(Reading database ... 25916 files and directories currently installed.)
Unpacking libice6 (from .../libice6_2%3a1.0.4-1_amd64.deb) ...
Selecting previously deselected package libsm6.
Unpacking libsm6 (from .../libsm6_2%3a1.1.0-1_amd64.deb) ...
Selecting previously deselected package libxt6.
Unpacking libxt6 (from .../libxt6_1%3a1.0.5-3ubuntu1_amd64.deb) ...
Selecting previously deselected package java-common.
Unpacking java-common (from .../java-common_0.30ubuntu4_all.deb) ...
Selecting previously deselected package sun-java6-jre.
Unpacking sun-java6-jre (from .../sun-java6-jre_6.20dlj-0ubuntu1.9.04_all.deb) ...
Selecting previously deselected package libltdl7.
Unpacking libltdl7 (from .../libltdl7_2.2.6a-1ubuntu1_amd64.deb) ...
Selecting previously deselected package odbcinst1debian1.
Unpacking odbcinst1debian1 (from .../odbcinst1debian1_2.2.11-16build3_amd64.deb) ...
Selecting previously deselected package unixodbc.
Unpacking unixodbc (from .../unixodbc_2.2.11-16build3_amd64.deb) ...
Selecting previously deselected package sun-java6-bin.
Unpacking sun-java6-bin (from .../sun-java6-bin_6.20dlj-0ubuntu1.9.04_amd64.deb) ...
sun-dlj-v1-1 license has already been accepted
Selecting previously deselected package sun-java6-jdk.
Unpacking sun-java6-jdk (from .../sun-java6-jdk_6.20dlj-0ubuntu1.9.04_amd64.deb) ...
sun-dlj-v1-1 license has already been accepted
Selecting previously deselected package libavahi-common-data.
Unpacking libavahi-common-data (from .../libavahi-common-data_0.6.23-4ubuntu4_amd64.deb) ...
Selecting previously deselected package libavahi-common3.
Unpacking libavahi-common3 (from .../libavahi-common3_0.6.23-4ubuntu4_amd64.deb) ...
Selecting previously deselected package libavahi-core5.
Unpacking libavahi-core5 (from .../libavahi-core5_0.6.23-4ubuntu4_amd64.deb) ...
Selecting previously deselected package libdaemon0.
Unpacking libdaemon0 (from .../libdaemon0_0.13-2_amd64.deb) ...
Selecting previously deselected package consolekit.
Unpacking consolekit (from .../consolekit_0.3.0-2ubuntu4_amd64.deb) ...
Selecting previously deselected package dbus.
Unpacking dbus (from .../dbus_1.2.12-0ubuntu2.1_amd64.deb) ...
Selecting previously deselected package avahi-daemon.
Unpacking avahi-daemon (from .../avahi-daemon_0.6.23-4ubuntu4_amd64.deb) ...
Selecting previously deselected package dbus-x11.
Unpacking dbus-x11 (from .../dbus-x11_1.2.12-0ubuntu2.1_amd64.deb) ...
Selecting previously deselected package defoma.
Unpacking defoma (from .../defoma_0.11.10-0.2ubuntu1_all.deb) ...
Selecting previously deselected package gsfonts.
Unpacking gsfonts (from .../gsfonts_1%3a8.11+urwcyr1.0.7~pre44-3_all.deb) ...
Selecting previously deselected package libfontenc1.
Unpacking libfontenc1 (from .../libfontenc1_1%3a1.0.4-3_amd64.deb) ...
Selecting previously deselected package libfreetype6.
Unpacking libfreetype6 (from .../libfreetype6_2.3.9-4ubuntu0.3_amd64.deb) ...
Selecting previously deselected package libxfont1.
Unpacking libxfont1 (from .../libxfont1_1%3a1.3.3-1ubuntu1_amd64.deb) ...
Selecting previously deselected package xfonts-encodings.
Unpacking xfonts-encodings (from .../xfonts-encodings_1%3a1.0.2-3_all.deb) ...
Selecting previously deselected package xfonts-utils.
Unpacking xfonts-utils (from .../xfonts-utils_1%3a7.4+1ubuntu1_amd64.deb) ...
Selecting previously deselected package gsfonts-x11.
Unpacking gsfonts-x11 (from .../gsfonts-x11_0.21_all.deb) ...
Selecting previously deselected package libnss-mdns.
Unpacking libnss-mdns (from .../libnss-mdns_0.10-3ubuntu2_amd64.deb) ...
Selecting previously deselected package libxi6.
Unpacking libxi6 (from .../libxi6_2%3a1.2.0-1ubuntu1.1_amd64.deb) ...
Selecting previously deselected package libxtst6.
Unpacking libxtst6 (from .../libxtst6_2%3a1.0.3-1ubuntu2_amd64.deb) ...
Processing triggers for man-db ...
Processing triggers for shared-mime-info ...
Setting up libice6 (2:1.0.4-1) ...
Setting up libsm6 (2:1.1.0-1) ...
Setting up libxt6 (1:1.0.5-3ubuntu1) ...
Setting up java-common (0.30ubuntu4) ...
Setting up libltdl7 (2.2.6a-1ubuntu1) ...
Setting up odbcinst1debian1 (2.2.11-16build3) ...
Setting up unixodbc (2.2.11-16build3) ...
Setting up libavahi-common-data (0.6.23-4ubuntu4) ...
Setting up libavahi-common3 (0.6.23-4ubuntu4) ...
Setting up libavahi-core5 (0.6.23-4ubuntu4) ...
Setting up libdaemon0 (0.13-2) ...
Setting up defoma (0.11.10-0.2ubuntu1) ...
Setting up gsfonts (1:8.11+urwcyr1.0.7~pre44-3) ...
(Re-)registering PostScript fonts...
done.
Setting up libfontenc1 (1:1.0.4-3) ...
Setting up libfreetype6 (2.3.9-4ubuntu0.3) ...
Setting up libxfont1 (1:1.3.3-1ubuntu1) ...
Setting up xfonts-encodings (1:1.0.2-3) ...
Setting up xfonts-utils (1:7.4+1ubuntu1) ...
Setting up gsfonts-x11 (0.21) ...
Setting up libxi6 (2:1.2.0-1ubuntu1.1) ...
Setting up libxtst6 (2:1.0.3-1ubuntu2) ...
Setting up sun-java6-bin (6.20dlj-0ubuntu1.9.04) ...
Setting up sun-java6-jre (6.20dlj-0ubuntu1.9.04) ...
Setting up sun-java6-jdk (6.20dlj-0ubuntu1.9.04) ...
Setting up consolekit (0.3.0-2ubuntu4) ...
Setting up dbus (1.2.12-0ubuntu2.1) ...
The system user `messagebus' already exists. Exiting.
* Starting system message bus dbus                                      [ OK ]
Setting up avahi-daemon (0.6.23-4ubuntu4) ...
* Reloading system message bus config...                                [ OK ]
* Starting Avahi mDNS/DNS-SD Daemon avahi-daemon                        [ OK ]
Setting up dbus-x11 (1.2.12-0ubuntu2.1) ...
Setting up libnss-mdns (0.10-3ubuntu2) ...
First installation detected...
Checking NSS setup...
Processing triggers for libc6 ...
ldconfig deferred processing now taking place

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です