`
suchj
  • 浏览: 147616 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

no such file to load -- robots

    博客分类:
  • ruby
阅读更多
no such file to load -- robots
/usr/local/lib/ruby/gems/1.8/gems/anemone-0.6.1/lib/anemone/core.rb:2:in `require'
/usr/local/lib/ruby/gems/1.8/gems/anemone-0.6.1/lib/anemone/core.rb:2
/usr/local/lib/ruby/gems/1.8/gems/anemone-0.6.1/lib/anemone.rb:2:in `require'
/usr/local/lib/ruby/gems/1.8/gems/anemone-0.6.1/lib/anemone.rb:2
/usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler/runtime.rb:68:in `require'
/usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler/runtime.rb:68:in `require'
/usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler/runtime.rb:66:in `each'
/usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler/runtime.rb:66:in `require'
/usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler/runtime.rb:55:in `each'
/usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler/runtime.rb:55:in `require'
/usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler.rb:120:in `require'

在ubuntu中运行anemone的例子时,出现这个错误,我现在发现有两种情况,一种是没有安装robots,解决:
sudo gem install robots

另一种情况是明明已经安装了robots,gem list也有,但还是出现no such file to load -- robots,这种情况是普通用户没有权限访问robots,以root权限运行就ok。
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics