no such file to load -- robots_Ruby_编程开发_程序员俱乐部

中国优秀的程序员网站程序员频道CXYCLUB技术地图
热搜:
更多>>
 
您所在的位置: 程序员俱乐部 > 编程开发 > Ruby > no such file to load -- robots

no such file to load -- robots

 2011/9/23 8:28:54  suchj  http://suchj.iteye.com  我要评论(0)
  • 摘要:nosuchfiletoload--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
  • 标签:file Robots
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。
发表评论
用户名: 匿名