What causes this dependency error in Rails 3?

Now I get the following:

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

But I don’t have enough information to find out what causes it or how to debug it.

What can I do?

+4
source share
2 answers

This probably comes from linecache gem version 0.45 , which was released yesterday. A return to 0.43 will show you this. I'm not sure if they intentionally violated support with Ruby 1.8.7 or not.

This is a ruby-debug-base dependency.

Add something like the following to 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 
+6
source

Alternatively add

 gem 'require_relative' 

to your gemfile. It seems that linecache 0.45 requires this, and 0.43 does not, so lowering linecache works.

+3
source

All Articles