Я установил sbt
следуя этой инструкции Getting Started - setup, на Ubuntu 12.04.
Когда я запускаю sbt
я вижу следующий вывод:
nazar_art@nazar-desctop:~$ sbt
java.io.FileNotFoundException: /home/nazar_art/.sbt/boot/update.log (No such file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:212)
at java.io.FileOutputStream.<init>(FileOutputStream.java:165)
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/nazar_art/.sbt/boot/update.log (No such file or directory)
nazar_art@nazar-desctop:~$ sudo sbt
[sudo] password for nazar_art:
Error occurred during initialization of VM
Could not reserve enough space for object heap
Для полной уверенности я повторяю исполняемый скрипт:
nazar_art@nazar-desctop:~$ chmod u+x ~/bin/sbt
nazar_art@nazar-desctop:~$ which sbt
/home/nazar_art/bin/sbt
ОБНОВИТЬ:
update.log
не существует. Я создал в ~/bin/.sbt/boot/update.log
.
И теперь, когда я попытался запустить sbt
я вижу вывод:
nazar_art@nazar-desctop:~/bin/.sbt/boot$ sbt
No command 'sbt' found, did you mean:
Command 'skt' from package 'latex-sanskrit' (main)
Command 'sb2' from package 'scratchbox2' (universe)
Command 'sbd' from package 'cluster-glue' (main)
Command 'mbt' from package 'mbt' (universe)
Command 'sbmt' from package 'atfs' (universe)
Command 'lbt' from package 'lbt' (universe)
Command 'st' from package 'suckless-tools' (universe)
Command 'sb' from package 'lrzsz' (universe)
Обновить:
Я переместил этот файл update.log
точно home/nazar_art/.sbt/boot
но после запуска sbt
я получаю тот же результат, но с Permission denied
:
nazar_art@nazar-desctop:~/.sbt/boot$ pwd
/home/nazar_art/.sbt/boot
nazar_art@nazar-desctop:~/.sbt/boot$ ls
update.log
nazar_art@nazar-desctop:~/.sbt/boot$ sbt
java.io.FileNotFoundException: /home/nazar_art/.sbt/boot/update.log (Permission denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:212)
at java.io.FileOutputStream.<init>(FileOutputStream.java:165)
at java.io.FileWriter.<init>(FileWriter.java:90)
at xsbt.boot.Update.<init>(Checks.java:51)
at xsbt.boot.Launch.update(Launch.scala:266)
at xsbt.boot.Launch$$anonfun$jnaLoader$1.apply(Launch.scala:111)
at scala.Option.getOrElse(Option.scala:108)
at xsbt.boot.Launch.jnaLoader$2f324eef(Launch.scala:106)
at xsbt.boot.Launch.<init>(Launch.scala:85)
at xsbt.boot.Launcher$.apply(Launch.scala:281)
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/nazar_art/.sbt/boot/update.log (Permission denied)
- Почему это случилось?
- Как решить эту проблему?