如何在Linux 上安装 Scala 2.9.1
答案:2 悬赏:20
解决时间 2021-03-08 18:56
- 提问者网友:纹身骑士
- 2021-03-08 04:19
如何在Linux 上安装 Scala 2.9.1
最佳答案
- 二级知识专家网友:时光不老我们不分离
- 2021-03-08 05:11
在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
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
全部回答
- 1楼网友:你好陌生人
- 2021-03-08 05:41
楼下的不懂不要乱说。你自己双击个看看,真是无知者无畏啊!如果想要在linux下运行windows的软件可以装虚拟机实现vmware有linux版本,或者用wine(也是一种虚拟机)也可。
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯
• 手机登qq时,显示手机磁盘不足,清理后重新登 |
• 刺客的套装怎么选啊? |