rbenv: Ruby 2.1.1 build failed on Mavericks

Hey,

I’m having trouble installing Ruby 2.1.1 on my iMac running OSX 10.9.2 (Mavericks). Can someone identify the issue from my log?

$ rbenv install 2.1.1
Downloading ruby-2.1.1.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/e57fdbb8ed56e70c43f39c79da1654b2
Installing ruby-2.1.1...

BUILD FAILED

Inspect or clean up the working tree at /var/folders/ft/wdkgq_yx5r91dwfm9mbcyyxw0000gn/T/ruby-build.20140415004206.96361
Results logged to /var/folders/ft/wdkgq_yx5r91dwfm9mbcyyxw0000gn/T/ruby-build.20140415004206.96361.log
compiling ossl_x509store.c
installing default openssl libraries
linking shared-object openssl.bundle
linking shared-object ripper.bundle
make: *** [build-ext] Error 2

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Reactions: 1
  • Comments: 40 (6 by maintainers)

Most upvoted comments

I had too many dependencies to completely uninstall the Homebrew readline package, but here’s a quick and easy workaround that worked for me (from https://github.com/sstephenson/ruby-build/issues/550#issuecomment-40681557):

brew uninstall readline
brew install https://raw.githubusercontent.com/Homebrew/homebrew/0181c8a1633353affefabe257c170edbd6d7c008/Library/Formula/readline.rb
brew pin readline

Edit: This is fixed in Ruby 2.1.2, use it instead!