17
13

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

CentOS に Scala をインストール

Last updated at Posted at 2015-09-26

Java のインストール

Scala を動作させるには Java が必要なので、まずは Java をインストール。

$ sudo yum list \*java-1\* | grep open

上記で出力される中からお好みのバージョンを。

$ sudo yum -y install java-1.8.0-openjdk.x86_64
$ sudo yum -y install java-1.8.0-openjdk-devel.x86_64

Scala のインストール

ダウンロード

公式サイトから最新版をダウンロード。※バージョンは適宜選択

$ wget http://downloads.typesafe.com/scala/2.11.7/scala-2.11.7.tgz
$ tar xvzf scala-2.11.7.tgz
$ sudo mv scala-2.11.7 /usr/local/scala

ダウンロードして、解凍して任意のパスへ。

パスを通す

$ export PATH=$PATH:/usr/local/scala/bin
$ echo $PATH

確認してみよう

$ scala -version
Scala code runner version 2.11.7 -- Copyright 2002-2013, LAMP/EPFL

まあ、 scalaenv のが便利だろうが。

17
13
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
17
13

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?