前提
- vagrant導入済(vagrat導入手順)
- FTPクライアントの導入(cyber)
仮想環境のメモリ増設
$ vi Vagrantfile
config.vm.provider "virtualbox" do |vb|
# # Display the VirtualBox GUI when booting the machine
# vb.gui = true
#
# # Customize the amount of memory on the VM:
vb.memory = "2048"
end
$ vagrant reload
javaのインストール
$ sudo yum -y install java-1.8.0-openjdk-devel
sbtの導入
- 公式サイトのドキュメントより、インストール方法を参照する。
- https://www.scala-sbt.org/1.x/docs/Installing-sbt-on-Linux.html
$ curl https://bintray.com/sbt/rpm/rpm | sudo tee /etc/yum.repos.d/bintray-sbt-rpm.repo $ sudo yum install sbt
- https://www.scala-sbt.org/1.x/docs/Installing-sbt-on-Linux.html
$ sbt sbt-version
Getting org.scala-sbt sbt 1.1.6 (this may take some time)...
文字コードの設定
$ rpm -ql sbt
sbtからScalaを起動
$ mkdir scala_lessons
$ cd scala_lessons
$ echo 'scalaVersion := "2.13.0-M4"' > build.sbt
$ sbt
sbt:scala_lessons> help
sbt:scala_lessons> console
scala> :quit
sbt:scala_lessons> exit