SCALA_HOME在Ubuntu上的哪里? [英] Where is SCALA_HOME on Ubuntu?

查看:98
本文介绍了SCALA_HOME在Ubuntu上的哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用以下命令在Ubuntu上安装了Scala

I installed Scala on Ubuntu using the following

sudo apt-get install scala 

~$ which scala
/usr/bin/scala

~$ whereis scala
scala: /usr/bin/scala /usr/bin/X11/scala /usr/share/man/man1/scala.1.gz

~$ scala -version
Scala code runner version 2.9.1 -- Copyright 2002-2011, LAMP/EPFL

我的问题是我应该在变量SCALA_HOME中输入什么? /usr/bin吗?

My question is what should I put in the variable SCALA_HOME? /usr/bin ?

推荐答案

到目前为止,我找不到一种简单(可靠)的设置方法.

As of today I couldn't find an easy (and reliable) way of setting this.

根据Alex(在上面的评论中)从tarball(从scala-lang.org下载)安装到/location/of/scala/untar

As per Alex (in the comment above) installing from tarball (downloaded from scala-lang.org) into /location/of/scala/untar

然后我在.bashrc中设置export SCALA_HOME=/location/of/scala/untar 现在一切正常!

Then I set export SCALA_HOME=/location/of/scala/untar in my .bashrc Everything works for now!

这篇关于SCALA_HOME在Ubuntu上的哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆