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。