Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


LoadError: no such file to load -- active_support #150

3f1a7ffbdbc opened this Issue · 11 comments

6 participants


Hi, I've just wanted to try neo4j with jruby (via rvm) but came across the following issue. Under ubuntu 10.10 (amd64) I did:

  1. installed rvm
  2. rvm install jruby
  3. rvm alias create default jruby
  4. rvm jruby
  5. gem install neo4j
  6. started irb (see below)
u1@host:~$ ruby -v
jruby 1.6.6 (ruby-1.8.7-p357) (2012-01-30 5673572) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_26) [linux-amd64-java]
u1@host:~$ irb
jruby-1.6.6 :001 > require 'rubygems'
 => true 
jruby-1.6.6 :002 > require 'neo4j'
LoadError: no such file to load -- active_support/core_ext/class/inheritable_attributes
        from org/jruby/ `require'
        from /home/u1/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in `require'
        from /home/u1/.rvm/gems/jruby-1.6.6/gems/neo4j-1.3.1-java/lib/neo4j.rb:9:in `(root)'
        from org/jruby/ `require'
        from /home/u1/.rvm/gems/jruby-1.6.6/gems/neo4j-1.3.1-java/lib/neo4j.rb:59:in `require'
        from (irb):2:in `evaluate'
        from org/jruby/ `eval'
        from /home/u1/.rvm/rubies/jruby-1.6.6/lib/ruby/1.8/irb.rb:158:in `eval_input'
        from /home/u1/.rvm/rubies/jruby-1.6.6/lib/ruby/1.8/irb.rb:271:in `signal_status'
        from /home/u1/.rvm/rubies/jruby-1.6.6/lib/ruby/1.8/irb.rb:155:in `eval_input'
        from org/jruby/ `loop'
        from org/jruby/ `catch'
        from /home/u1/.rvm/rubies/jruby-1.6.6/lib/ruby/1.8/irb.rb:154:in `eval_input'
        from /home/u1/.rvm/rubies/jruby-1.6.6/lib/ruby/1.8/irb.rb:71:in `start'
        from org/jruby/ `catch'
        from /home/u1/.rvm/rubies/jruby-1.6.6/lib/ruby/1.8/irb.rb:70:in `start'
        from /home/u1/.rvm/rubies/jruby-1.6.6/bin/irb:17:in `(root)'jruby-1.6.6 :003 > 

Any ideas?

Thanks in advance!


You need to have ActiveSupport v3.0..3.1.
Existing version doesn't work with Rails 3.2 and is planned to be released in v2 of neo4j (see #131).

So to workaround that, make sure you install Rails 3.1 prior to neo4j.


I have rails 3.1 neo4j 1.3.1-java and activesupport 3.2.1 Still I am getting this error.


ActiveSupport 3.2 is not yet supported. Use version 3.0 to 3.1.
The AS 3.2 support is supposed to be released in v2 of neo4j.


Thanks! Using

gem install rails -v 3.1

before installing neo4j solved the problem for me.


thanks downgrading the activesupport solved the problem


Hi I have the same problem, but all above can't solve my problem.
I solve the problem by this:

gem uninstall railties

and uninstall all version of railties 3.2.x


It is solved in the git head. If you want keep using the stable 1.3.1 make sure you uninstall rails 3.2.x gems (active model and railities and its rails dependencies) or use a bundler and a Gemfile to lock the version to the 3.1.x rails gems


why does it say
gem 'rails', '>=3.2.3'
in Gemfile of


I can't find any >= 3.2.3 in my neo4j rails template ( Not sure where it comes from.


thanks for the hint.

gem 'rails', '>=3.2.3' was probably automatically inserted when calling
rails new myapp -m
from a wrong rvm environment.

I just tried it again after uninstalling 3.2.3 and setting
rvm use jruby

now it works! ++


Updated the rails template, use the normal -O swith to skip ActiveRecord installation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.