rbenv-default-gems
rbenv-default-gems copied to clipboard
Default gems are "installed" even with rbenv install fails
☰ rbenv install 2.0.0-p0
Downloading openssl-1.0.1e.tar.gz...
-> https://www.openssl.org/source/openssl-1.0.1e.tar.gz
Installing openssl-1.0.1e...
Installed openssl-1.0.1e to /Users/kevinsuttle/.rbenv/versions/2.0.0-p0
Downloading ruby-2.0.0-p0.tar.gz...
-> http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p0.tar.gz
Installing ruby-2.0.0-p0...
BUILD FAILED
Inspect or clean up the working tree at /var/folders/gl/zrvk3vz908g96m9fds51ytz40000gn/T/ruby-build.20130224224756.40501
Results logged to /var/folders/gl/zrvk3vz908g96m9fds51ytz40000gn/T/ruby-build.20130224224756.40501.log
Last 10 log lines:
installing default gems: /Users/kevinsuttle/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0 (build_info, cache, doc, gems, specifications)
bigdecimal 1.2.0
io-console 0.4.2
json 1.7.7
minitest 4.3.2
psych 2.0.0
rake 0.9.6
rdoc 4.0.0
test-unit 2.0.0.0
The Ruby openssl extension was not compiled. Missing the OpenSSL lib?
I should mention that these gems aren't installed because the ruby didn't install.
My default gems: https://github.com/kevinSuttle/dotfiles/blob/master/ruby/default-gems
I believe this is a ruby-build issue. This plugin relies on the after_install hook called by ruby-build here. I believe to fix this those lines would need to be moved within this if statement. I'm not sure what other actions rely on the after_install and there might be something else that should run regardless of successful install, otherwise I think this patch could be provided (although it's not my call)
Actually it looks like @sstephenson thinks the hooks should be called regardless https://github.com/sstephenson/ruby-build/issues/331
I'm not sure what else to add. This was more an FYI than anything. Up to @sstephenson.
Definitely :smile:
rbenv-default-gems only does its thing if $STATUS is 0, so ruby-build must be returning the wrong exit code.