如何在Linux 上安装 Scala 2.9.1

 我来答
匿名用户
推荐于2016-01-31
展开全部
在Linux上安装Scala,有下面的2种方法。
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

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..
浙江启扬智能科技有限公司
2023-06-12 广告
不一定,ARM架构的嵌入式开发可以基于uc/os、Linux、Windows等操作系统,而不一定要使用LINUX操作系统。在ARM架构上,Windows和Linux都是可以使用的,而且许多嵌入式系统开发工具也都是支持这两种操作系统的。因此,... 点击进入详情页
本回答由浙江启扬智能科技有限公司提供
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式