10

我正在尝试在 ubuntu 11 上安装播放框架 2.0.1。我已经添加了在 ubuntu 中播放的路径,我配置了 SUN JRE 1.6 (java/javac),并且我已经为播放脚本提供了读/写/执行权限。但是,当我运行“播放帮助”时,我仍然收到下面复制的错误 - 播放目录应该只包含“文档”、“存储库”、“框架”和“样本”子目录,还是应该包含其他子目录. 欢迎任何有用的建议。

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
4

2 回答 2

16

如果您查看文档,您将看到以下警告:

将存档解压缩到您同时具有读写访问权限的位置(...)运行 play 会将一些文件写入存档中的目录,因此不要安装到 /opt、/usr/local 或您需要的任何其他位置写信的特别许可

于 2012-05-14T00:22:33.017 回答
0

如果您真的想在您的开发机器上运行 play in opt,您可能希望自己使用 chown /opt。

sudo chown yourself:yourself /opt

我不认为这是有道理的,并且对 /opt 中的其他内容以及 /opt 目录的通常用途有影响。与典型的 Web 服务器环境不同,play 有一个嵌入式服务器(如 nodejs)。此外,如前所述,当您准备要运行的项目时,会生成大量文件。对于开发,我认为最好将游戏安装在您默认拥有的目录中,例如您的主目录。在生产中,您将以 root 身份安装和启动所有内容,从而使 /opt 成为可行的选项。此外,在使用需要管理访问权限的目录的窗口中,即使不是更多,也需要进行不明智的更改。Play 不正式支持生产模式下的 windows。

于 2016-02-20T17:47:16.683 回答