Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default gems are "installed" even with rbenv install fails #5

Open
kevinSuttle opened this issue Feb 25, 2013 · 5 comments
Open

Default gems are "installed" even with rbenv install fails #5

kevinSuttle opened this issue Feb 25, 2013 · 5 comments

Comments

@kevinSuttle
Copy link

☰  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

@keith
Copy link

keith commented Apr 9, 2013

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)

@keith
Copy link

keith commented Apr 9, 2013

Actually it looks like @sstephenson thinks the hooks should be called regardless rbenv/ruby-build#331

@kevinSuttle
Copy link
Author

I'm not sure what else to add. This was more an FYI than anything. Up to @sstephenson.

@keith
Copy link

keith commented Apr 10, 2013

Definitely 😄

@sstephenson
Copy link
Contributor

rbenv-default-gems only does its thing if $STATUS is 0, so ruby-build must be returning the wrong exit code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants