0

这是完整的错误。关于如何解决这个问题的任何想法。我在谷歌上一无所获。我在 VirtualBox 上运行 Ubuntu Linux。

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>'
4

2 回答 2

2

我的ubuntu系统也有同样的问题。问题在于 gems 文件权限,除了所有者之外,它们对用户不可读。要解决此问题,请将文件的权限更改为 0644 或 a+r,如下所示:

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

您可以使用sudo来获得许可。更多操作请访问 http://help.unc.edu/help/how-to-use-unix-and-linux-file-permissions/

于 2013-02-12T15:19:29.060 回答
0

上次我编辑上面的答案,但我仍然无法解决问题。

然后我做了一些搜索,最后我解决了它。

根据解决方案,似乎已安装的 gem 没有为可执行文件提供足够的权限。

我用这个:gem 'spork-rails', github: 'sporkrb/spork-rails'

解决方案:github 上的要点

于 2013-08-10T07:38:49.717 回答