Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 718
Satchel Avatar asked Jan 20 '23 12:01

Satchel


2 Answers

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
like image 126
jdl Avatar answered Jan 30 '23 15:01

jdl


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.

like image 38
Cameron Walsh Avatar answered Jan 30 '23 17:01

Cameron Walsh