Playframework 播放框架安装

Playframework 播放框架安装,playframework,playframework-2.0,failed-installation,Playframework,Playframework 2.0,Failed Installation,我正试图在Ubuntu11上安装PlayFramework2.0.1。我已经添加了在ubuntu中播放的路径,我已经配置了SUN JRE 1.6(java/javac),并且我已经为播放脚本提供了读/写/执行权限。但是,当我运行“play help”时,我仍然会收到下面复制的错误消息。play目录应该只包含“documentation”、“repository”、“framework”和“samples”子目录,还是应该包含其他子目录。欢迎提出任何有益的建议 java.io.IOExceptio

我正试图在Ubuntu11上安装PlayFramework2.0.1。我已经添加了在ubuntu中播放的路径,我已经配置了SUN JRE 1.6(java/javac),并且我已经为播放脚本提供了读/写/执行权限。但是,当我运行“play help”时,我仍然会收到下面复制的错误消息。play目录应该只包含“documentation”、“repository”、“framework”和“samples”子目录,还是应该包含其他子目录。欢迎提出任何有益的建议

java.io.IOException: No such file or directory
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:900)
at xsbt.boot.Locks$.apply0(Locks.scala:34)
at xsbt.boot.Locks$.apply(Locks.scala:27)
at scala.collection.mutable.FlatHashTable$class.$init$(Proxy.scala:32)
at xsbt.boot.Launch$ScalaProvider.<init>(Launch.scala:110)
at xsbt.boot.Launch$$anonfun$1.apply(Launch.scala:84)
at org.apache.ivy.plugins.namespace.NamespaceRule.newEntry(Cache.scala:17)
at org.apache.ivy.plugins.namespace.NamespaceRule.apply(Cache.scala:12)
at xsbt.boot.Launch.getScala(Launch.scala:86) 
at xsbt.boot.Launch$.run(Launch.scala:49)
at xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:43)
at xsbt.boot.Launch$.launch(Launch.scala:68)
at xsbt.boot.Launch$.apply(Launch.scala:14)
at xsbt.boot.Boot$.runImpl(Boot.scala:25)
at xsbt.boot.Boot$.main(Boot.scala:15)
at xsbt.boot.Boot.main(Boot.scala)
Error during sbt execution: java.io.IOException: No such file or directory
java.io.IOException:没有这样的文件或目录
位于java.io.UnixFileSystem.createFileExclusive(本机方法)
位于java.io.File.createNewFile(File.java:900)
位于xsbt.boot.Locks$.apply0(Locks.scala:34)
在xsbt.boot.Locks$.apply处(Locks.scala:27)
位于scala.collection.mutable.FlatHashTable$class.$init$(Proxy.scala:32)
在xsbt.boot.Launch$ScalaProvider。(Launch.scala:110)
在xsbt.boot.Launch$$anonfun$1.apply处(Launch.scala:84)
位于org.apache.ivy.plugins.namespace.NamespaceRule.newEntry(Cache.scala:17)
位于org.apache.ivy.plugins.namespace.NamespaceRule.apply(Cache.scala:12)
位于xsbt.boot.Launch.getScala(Launch.scala:86)
在xsbt.boot.Launch$.run(Launch.scala:49)
在xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:43)
在xsbt.boot.Launch$.Launch(Launch.scala:68)
在xsbt.boot.Launch$.apply(Launch.scala:14)
在xsbt.boot.boot$.runImpl处(boot.scala:25)
位于xsbt.boot.boot$.main(boot.scala:15)
位于xsbt.boot.boot.main(boot.scala)
sbt执行期间出错:java.io.IOException:没有这样的文件或目录
如果您检查,您将看到以下警告:

将归档文件解压缩到一个您同时具有读写权限的位置,(…)运行play会将一些文件写入归档文件中的目录,因此不要安装到/opt、/usr/local或需要特殊权限才能写入的任何其他位置


如果你真的想在你的开发机器上运行play-in-opt,你可能想自己选择

sudo chown yourself:yourself /opt

我认为这是没有意义的,并且对/opt中的其他内容和/opt目录的通常用途都有影响。与典型的web服务器环境不同,play有一个嵌入式服务器(如nodejs)。此外,如前所述,在准备运行项目时,会生成大量文件。对于开发,我认为最好将play安装在您默认拥有的目录中,比如您的主目录。在生产环境中,您将安装并启动一切,使root/opt成为一个可行的选项。此外,在windows中,使用需要管理访问权限的目录将需要同样多(如果不是更多的话)的不明智更改。Play不正式支持生产模式下的windows。

在我的主目录中设置Play目录时起作用-之前我正在尝试/opt。我将再次检查opt中播放目录的权限,并回复任何反馈。我相信我已经授予了读/写/执行权限,甚至尝试以sudo的身份运行它(但似乎我错过了一步或几步)。希望有帮助。如文档所述,请检查您是否具有读写权限。例如,不要将文件放在
程序文件中。因此,在我授予activator写入权限后,它仍然无法工作。