---
title: "no such file to load -- robots"
author: "suchj"
date: "2011-09-22T20:45:44Z"
tags: []
categories: ["编程语言"]
slug: "no-such-file-to-load-robots"
draft: false
lastmod: "2011-09-22T20:45:44Z"
id: 1178379
url: "https://suchj.iteye.com/blog/1178379"
---

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，解决：

```ruby

sudo gem install robots

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