Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

gem is failing with ruby-1.8.5 : uninitialized constant Gem::Installer::ENV_PATHS #1365

Closed
thehappycoder opened this Issue Dec 5, 2012 · 7 comments

Comments

Projects
None yet
3 participants

I installed ruby-1.8.5 from source (with rvm) on mac os x mountain lion but cannot install any gem. I experience the same problem as this guy:
https://groups.google.com/forum/?fromgroups=#!topic/rubyversionmanager/jRRWRe94mAg

1.8.6 works fine. Do you have any tips?

Member

richo commented Dec 5, 2012

Is there a reason you have to use such an ancient version? I can't imagine it's supported by well.. anything?

Owner

mpapis commented Dec 5, 2012

also what version of rubygems is in use: gem version

Yes, there is an old rails project that I need to support. Obviously, the ruby comes with the linux distro and they are unlikely to change it.

$ ruby --version
ruby 1.8.5 (2008-06-20 patchlevel 231) [i686-darwin12.2.1]
$ gem version
/Users/anton/.rvm/gems/ruby-1.8.5-p231@global/gems/rubygems-bundler-1.1.0/lib/rubygems-bundler/regenerate_binstubs_command.rb:48: warning: parenthesize argument(s) for future version
ERROR: While executing gem ... (RuntimeError)
Unknown command version
$ gem --version
/Users/anton/.rvm/gems/ruby-1.8.5-p231@global/gems/rubygems-bundler-1.1.0/lib/rubygems-bundler/regenerate_binstubs_command.rb:48: warning: parenthesize argument(s) for future version
1.3.5

Owner

mpapis commented Dec 5, 2012

start with uninstalling rubygems-bundler, it's working only back to ruby 1.8.6 / rubygems 1.3.7:

rvm @global do gem uninstall -ax rubygems-bundler

Aha!!! It worked! 👍 Managed to install rails gems. Thanks a lot! I didn't expect the solution so fast.

@ghost ghost assigned mpapis Dec 5, 2012

Compiled ruby-1.8.5 ended up crashing and throwing malloc errors on login in rails application. Perhaps there is special care needed for this particular version. I compiled it with non-llvm gcc-4.2 on the same machine. 1.8.6 was working fine.

@thehappycoder thehappycoder reopened this Dec 7, 2012

Owner

mpapis commented Dec 7, 2012

@thehappycoder ruby-1.8.5 is very old, all 1.8 rubies are already end of life, only security fixes will be posted for ruby 1.8.7 for few months. If you really need that old ruby you might want to downgrade operating system to version that was running around when your app was developed. Anyway you might be better with just upgrading app to newer rails. As for the stability error RVM can not help you much more, we try to make old rubies working but you are way behind, I do not think it's possible to easily fix it without hunting down some patches - which is out of RVM scope.

@mpapis mpapis closed this Dec 7, 2012

@burisu burisu added a commit to ekylibre/ekylibre that referenced this issue Dec 3, 2013

@burisu burisu Removes properly rubygems-bundler thanks to rvm/rvm#1365 f85bcc6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment