Install Scala on Ubuntu,so easy,technology is no buoundry

Install Scala on Ubuntu | Code for Thought

    Install Scala on Ubuntu
    Posted on
    November 26, 2010
    by
    sumwai

    To install Scala on Ubuntu, you get it either using

    sudo apt-get install scala

    or if you want to get the latest stable Scala release, here are the steps:

    
    First, install Sun Java

    Enable Multiverse repository, see here.

    Install the Sun Java packages, choose it to be the default.
    Second, install Scala

    Download the latest Scala package, on scala-lang.org.

    wget http://www.scala-lang.org/downloads/distrib/files/scala-2.8.1.final.tgz


    Uncompress it to /opt/

    tar -C /opt/ -xvzf scala-2.8.1.final.tgz

    Add Scala to your $PATH by adding this line to .profile inside your home directory

    PATH="$PATH:/opt/scala-2.8.1.final/bin"

    Restart Ubuntu, start a terminal window and type to see you have successfully installed it.

    scala -version


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值