Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Cannot install rails: ERROR: While executing gem ... (NoMethodError) - undefined method `call' for nil:NilClas #4565

minaguib opened this Issue · 4 comments

2 participants


This happens on a brand new clean virtual machine with just ruby-ee 1.8.7 and rubygems 1.3.7

# gem install -V rails
302 Found
200 OK
302 Found
200 OK
Installing gem activemodel-3.2.0
ERROR:  While executing gem ... (NoMethodError)
    undefined method `call' for nil:NilClass

Installing other gems works:

# gem install rake
Successfully installed rake-
1 gem installed
Installing ri documentation for rake-
Installing RDoc documentation for rake-

Try upgrading rubygems to 1.8.15


I had considered that.

Unfortunately, my distro (gentoo linux) has so far only marked version 1.3.7 in its package manager (portage) as stable.

rubygems 1.8.x are available in portage, but marked as unstable - I'm not sure yet why - whether it causes further problems/conflicts down the line if enabled on a gentoo box - or whether that's simply due to them not being tested enough yet.

Either way though, if it's a bug, it should be fixed in the activemodel packaging methinks. If it requires rubygems 1.8, it should make that a hard requirement and complain.


This will be fixed with rails 3.2.1, you can follow the discussion about it in #4559.


Cool. Thank you.

FWIW I filed a ticket on Gentoo's bugzilla for the flip side of the problem:

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.