欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

macbook pro 上如何搭建scala的开发环境

程序员文章站 2022-03-10 22:01:57
...
  1.  到scala官网,下载scala的sdk,地址:http://www.scala-lang.org/download/
    adeMacBook-Pro:scala-2.11.6 apple$ wget http://downloads.typesafe.com/scala/2.11.6/scala-2.11.6.tgz?_ga=1.266727886.1594027332.1432723613
  2. 解压并配置:
adeMacBook-Pro:scala-2.11.6 apple$ tar -zxvf scala-2.11.6.tgz?_ga=1.266727886.1594027332.1432723613

adeMacBook-Pro:scala-2.11.6 apple$ cd scala-2.11.6

adeMacBook-Pro:scala-2.11.6 apple$ sudo vim ~/.bash_profile

  • ~/.bash_profile的配置如下:
SCALA_HOME="/Users/apple/Documents/soft/scala_soft/scala-2.11.6"

export PATH=$PATH:$SCALA_HOME/bin
  • 其中SCALA_HOME为scala的sdk包的路径,
  • 试用scala:(记住必须得启动另外一个终端,原因就不说了)
    adeMacBook-Pro:~ apple$ scala
    Welcome to Scala version 2.11.6 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0_71).
    Type in expressions to have them evaluated.
    Type :help for more information.
     

转自

http://www.cnblogs.com/super-d2/p/4534208.html