Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
3f1a7ffbdbc opened this Issue · 11 comments

6 participants

@3f1a7ffbdbc

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/RubyKernel.java:1027:in `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/RubyKernel.java:1027:in `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/RubyKernel.java:1077:in `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/RubyKernel.java:1408:in `loop'
        from org/jruby/RubyKernel.java:1181:in `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/RubyKernel.java:1181:in `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!

@dnagir
Owner

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.

@aadilcifer

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

@dnagir
Owner

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.

@3f1a7ffbdbc

Thanks! Using

gem install rails -v 3.1

before installing neo4j solved the problem for me.

@aadilcifer

thanks downgrading the activesupport solved the problem

@kingron

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

@andreasronge
Owner

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

@pannous

why does it say
gem 'rails', '>=3.2.3'
in Gemfile of
http://neo4j.rubyforge.org/guides/rails3.html#rails-neo4j-project-template
then?

@andreasronge
Owner

I can't find any >= 3.2.3 in my neo4j rails template (https://github.com/andreasronge/andreasronge.github.com/blob/gh-pages/default.rb). Not sure where it comes from.

@pannous

thanks for the hint.

gem 'rails', '>=3.2.3' was probably automatically inserted when calling
rails new myapp -m http://andreasronge.github.com/rails3.rb
from a wrong rvm environment.

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

now it works! ++

@andreasronge

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.