Satchel
Satchel

Reputation: 16734

What causes this dependency error in Rails 3?

I now get the following:

`dependencies.rb:239:in `require': no such file to load -- require_relative (LoadError`)

But I don't have enough information to figure out what is causing it or how to debug it.

What can I do?

Upvotes: 4

Views: 455

Answers (2)

Cameron Walsh
Cameron Walsh

Reputation: 786

Alternatively, add

gem 'require_relative'

to your Gemfile. It looks like linecache 0.45 needs it, but 0.43 doesn't, which is why downgrading linecache works.

Upvotes: 3

jdl
jdl

Reputation: 17790

It probably comes from linecache gem version 0.45 which was released yesterday. Rolling back to 0.43 will get you around this for now. I'm not sure if they intentionally broke support with Ruby 1.8.7 or not.

This is a dependency of ruby-debug-base.

Add something similar to the following in your Gemfile.

group :development, :test, :cucumber do 
  gem "linecache", "0.43"
  gem "ruby-debug-base", "0.10.4.0"
  gem "ruby-debug", "0.10.4"
end

Upvotes: 6

Related Questions