Scala環境構築(VM)
2018-07-24 (Tue) · 106 words

前提

仮想環境のメモリ増設

$ 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の導入

$ 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

Top     back     Posts     Tags     About Me