gre*_*man 5 programming development software-installation intellij
请注意:我必须使用源包,而不是来自 repo 的预构建包(它坏了,至少 IDEA 抱怨)。
从页面:http :
//www.scala-lang.org/downloads我下载了scala.final.tgz包。我通过解压到/usr/local/share.
但是,当我运行 IntelliJ IDEA 并指向此目录时,它会抱怨丢失/doc/scala-devel-doc...(也许还有更多丢失的东西,但 IDEA 切断了其余部分)。
我也下载了,scala.final-devel-docs.tgz但它抱怨相同的丢失文件。
在这些软件包中没有任何关于如何安装 scala 的说明。scala 网页也缺少如何安装它的任何信息(除了tgz可以使用 解压文件的注释tar)。
openSUSE 11.4,IntelliJ IDEA 10.5.2。
随着生活的继续,我似乎倾向于完全避免破碎的想法/产品/等,而不是修复它们。
无论如何,也许有人会发现它很有用。
现在进行比较——在 Eclipse 中(尽管所有关于非常不稳定的 Scala 插件的评论)不仅我不需要配置任何东西,不仅我自己的测试代码是即时编译的(IntelliJ 需要一些时间),而且它被执行,并且没有任何错误地运行。
使用了相同的 Scala。区别呢?
@user未知,非常感谢您的帮助!多亏了你,我有了更完整的 Scala 安装。
经过一番努力,我也设法设置了 IntelliJ。也许有更简单的方法,但这对我有用:
我将 IntellIJ 与 Eclipse 一起安装,因为 Eclipse 处理项目的方式非常奇怪。
从 README 文件中
cat /opt/scala/doc/README
Run Code Online (Sandbox Code Playgroud)
我采取了这个:
Scala Software Distributions
----------------------------
- scala-<major>.<minor>.<patch>.tar.bz2 Unix distribution
- scala-<major>.<minor>.<patch>.tar.gz Unix distribution
- scala-<major>.<minor>.<patch>.zip Windows distribution
The standard distributions require Java 1.5 or above. If you don't
know which version of Java you have, run the command "java -version".
Scala Tools
-----------
- fsc Scala offline compiler
- scalac Scala compiler
- scaladoc Scala API documentation generator
- scala Scala interactive interpreter
- scalap Scala classfile decoder
Run the command "scalac -help" to display the list of available
compiler options.
Unix Installation
-----------------
Untar the archive. All Scala tools are located in the "bin" directory.
Adding that directory to the PATH variable will make the Scala commands
directly accessible.
You may test the distribution by running the following commands:
$ ./bin/sbaz install scala-devel-docs
$ ./bin/scalac doc/scala-devel-docs/examples/sort.scala
$ ./bin/scala examples.sort
[6,2,8,5,1]
[1,2,5,6,8]
$ ./bin/scala
scala> examples.sort.main(null)
[6,2,8,5,1]
[1,2,5,6,8]
scala>:quit
$
Run Code Online (Sandbox Code Playgroud)
(省略:Windows 注释)
这会让你更进一步吗?
| 归档时间: |
|
| 查看次数: |
11144 次 |
| 最近记录: |