2013-05-06 52 views
3

我正在嘗試安裝Play! LinuxMint框的框架,但我很難得到發揮去。安裝完畢後,我得到folliwing錯誤消息,當我在命令行起到幫助:在新的play-2.1.1安裝中缺少sbt/boot /目錄。 Linux上的Playframework安裝Mint 14

$ play help 
java.io.FileNotFoundException: /home/play-2.1.1/framework/sbt/boot/update.log (No such file or directory) 
    at java.io.FileOutputStream.open(Native Method) 
    at java.io.FileOutputStream.<init>(FileOutputStream.java:218) 
    at java.io.FileOutputStream.<init>(FileOutputStream.java:171) 
    at java.io.FileWriter.<init>(FileWriter.java:90) 
    at xsbt.boot.Update.<init>(Checks.java:51) 
    at xsbt.boot.Launch.update(Launch.scala:275) 
    at xsbt.boot.Launch$$anonfun$jnaLoader$1.apply(Launch.scala:120) 
    at scala.Option.getOrElse(Option.scala:108) 
    at xsbt.boot.Launch.jnaLoader$2f324eef(Launch.scala:115) 
    at xsbt.boot.Launch.<init>(Launch.scala:94) 
    at xsbt.boot.Launcher$.apply(Launch.scala:290) 
    at xsbt.boot.Launch$.apply(Launch.scala:16) 
    at xsbt.boot.Boot$.runImpl(Boot.scala:31) 
    at xsbt.boot.Boot$.main(Boot.scala:20) 
    at xsbt.boot.Boot.main(Boot.scala) 
Error during sbt execution: java.io.FileNotFoundException: /home/play-2.1.1/framework/sbt/boot/update.log (No such file or directory) 

可以看出,遊戲安裝在/ home目錄。 .bashrc文件的內容如下:

$ cat ~/.bashrc 
export PATH=""/home/play-2.1.1:$PATH"" 
export JAVA_HOME=/usr/local/java/jdk1.7.0_12 
export PATH=$JAVA_HOME/bin:$PATH 
export CLASSPATH=$JAVA_HOME/lib/dt.jar:.:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/jre/lib/rt.jar 

我不知道如果我在那段佔了越來越發揮和運行的難度在安裝過程中缺了點什麼。將欣賞有用的提示和建議。非常感謝。

回答

1

確保您對Play框架路徑具有寫入權限。如果你不這樣做,你會得到這個錯誤。