2012-10-17 61 views
0

下面是完整的錯誤。任何想法如何解決這個問題。我在Google上找不到任何東西。我在VirtualBox上運行Ubuntu Linux。ubuntu上的spork LoadError

Using RSpec, Unknown 
cannot load such file -- magazine/magazine_slave (LoadError) 
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' 
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' 
/var/lib/gems/1.9.1/gems/spork-1.0.0rc3/lib/spork/run_strategy/magazine.rb:18:in `<top (required)>' 
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' 
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' 
/var/lib/gems/1.9.1/gems/spork-1.0.0rc3/lib/spork/run_strategy.rb:48:in `block in <top (required)>' 
/var/lib/gems/1.9.1/gems/spork-1.0.0rc3/lib/spork/run_strategy.rb:48:in `each' 
/var/lib/gems/1.9.1/gems/spork-1.0.0rc3/lib/spork/run_strategy.rb:48:in `<top (required)>' 
/var/lib/gems/1.9.1/gems/spork-1.0.0rc3/lib/spork/runner.rb:73:in `run' 
/var/lib/gems/1.9.1/gems/spork-1.0.0rc3/lib/spork/runner.rb:10:in `run' 
/var/lib/gems/1.9.1/gems/spork-1.0.0rc3/bin/spork:10:in `<top (required)>' 
/usr/local/bin/spork:19:in `load' 
/usr/local/bin/spork:19:in `<main>' 
+0

我的建議 - 不要使用叉勺。 – sevenseacat

回答

2

我和我的ubuntu系統有同樣的問題。問題在於gems文件權限,除了所有者以外,它們對用戶不可讀。爲了解決這個問題,文件0644或+ R,這樣的更改權限:

$ chmod -v 644 files/myfile.txt 
mode of `files/myfile.txt' changed to 0644 (rw-r--r--) 

您可以使用須藤獲得許可。對於更多操作,請訪問http://help.unc.edu/help/how-to-use-unix-and-linux-file-permissions/

0

上次我編輯上面的答案,但仍然無法解決問題。

然後我做了一些搜索,最後我解決了它。

根據該解決方案,似乎已安裝寶石不投入足夠的權限可執行文件。

我用這個:gem 'spork-rails', github: 'sporkrb/spork-rails'

解決方案:a gist on github