2012-12-10 58 views
1

我正在嘗試安裝graphiti https://github.com/paperlesspost/graphiti,但幾乎完全不瞭解Ruby。我堅持試圖解決以下錯誤:Ruby bundler錯誤

[email protected]:~/ruby/graphiti$ :~/ruby/graphiti$ bundle exec unicorn -c config/unicorn.rb -E production -D      -bash: [email protected]:~/ruby/graphiti$: No such file or directory 
:~/ruby/graphiti$ ^C 
[email protected]:~/ruby/graphiti$ clear 
[email protected]:~/ruby/graphiti$ bundle exec unicorn -c config/unicorn.rb -E production -D 
/home/dev/.rvm/gems/ruby-1.9.3-p327/gems/unicorn-4.3.1/lib/unicorn/configurator.rb:90:in `block in reload': directory for pid=/var/sites/graphiti/shared/pids/unicorn.pid not writable (ArgumentError) 
     from /home/dev/.rvm/gems/ruby-1.9.3-p327/gems/unicorn-4.3.1/lib/unicorn/configurator.rb:86:in `each' 
     from /home/dev/.rvm/gems/ruby-1.9.3-p327/gems/unicorn-4.3.1/lib/unicorn/configurator.rb:86:in `reload' 
     from /home/dev/.rvm/gems/ruby-1.9.3-p327/gems/unicorn-4.3.1/lib/unicorn/configurator.rb:67:in `initialize' 
     from /home/dev/.rvm/gems/ruby-1.9.3-p327/gems/unicorn-4.3.1/lib/unicorn/http_server.rb:104:in `new' 
     from /home/dev/.rvm/gems/ruby-1.9.3-p327/gems/unicorn-4.3.1/lib/unicorn/http_server.rb:104:in `initialize' 
     from /home/dev/.rvm/gems/ruby-1.9.3-p327/gems/unicorn-4.3.1/bin/unicorn:121:in `new' 
     from /home/dev/.rvm/gems/ruby-1.9.3-p327/gems/unicorn-4.3.1/bin/unicorn:121:in `<top (required)>' 
     from /home/dev/.rvm/gems/ruby-1.9.3-p327/bin/unicorn:19:in `load' 
     from /home/dev/.rvm/gems/ruby-1.9.3-p327/bin/unicorn:19:in `<main>' 
     from /home/dev/.rvm/gems/ruby-1.9.3-p327/bin/ruby_noexec_wrapper:14:in `eval' 
     from /home/dev/.rvm/gems/ruby-1.9.3-p327/bin/ruby_noexec_wrapper:14:in `<main>' 
master failed to start, check stderr log for details 
+0

它會告訴你在你的回溯問題..'對於PID =目錄/var/sites/graphiti/shared/pids/unicorn.pid不可寫(ArgumentError)'你是否嘗試確保你的pids目錄是可寫的並且再次嘗試? –

+0

該目錄不存在,所以我創建並chmod感謝 – user1640228

回答

1

前面加上sudo的命令授予紅寶石過程寫接取到的位置

相關問題