How to Install Scala 2.9.1 on Linux (Ubuntu 11.04) ?

To install Scala on Linux you need to get scala on your Linux machine. You can get Scala by below two methods :

1) Default Scala version available on your Linux box by typing below command

sudo apt-get install scala

2) If you want to get the latest version of the scala below are the steps

a) Download latest IzPack Installer for linux as shown below

wget http://www.scala-lang.org/downloads/distrib/files/scala-2.9.1.final-installer.jar

b) For installing the downloaded package we need to decide the location of installation. I have selected /opt/scala. If you decide to select same location please make sure you have created /opt/scala. You can use below command to create directory.

sudo mkdir /opt/scala

c) Start installation by typing below command

sudo java -jar scala-2.9.1.final-installer.jar

d) You will get some welcome message and you will be asked to enter 1 to continue. You can enter 1 for installation.

e) In next step you will be asked to accept license. You can accept license by entering 1.

f) Next step will be selecting target directory for installation. Enter below path for installation.

/opt/scala

g) Next press 1 to continue

h) You will get below message on the shell.

Console Installation Completed

i) Set Scala installation path as below

PATH="$PATH:/opt/scala/bin"

Congratulation!!! You have successfully installed Scala on your Linux. To check the scala you can type below command

scala -version

You will get below message

Scala code runner version 2.9.1.final -- Copyright 2002-2011, LAMP/EPFL

原文链接:http://vigilance.co.in/install-scala-2-9-linux-ubuntu/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值