{"action":"opened","issue":{"url":"https://api.github.com/repos/sstephenson/ruby-build/issues/780","labels_url":"https://api.github.com/repos/sstephenson/ruby-build/issues/780/labels{/name}","comments_url":"https://api.github.com/repos/sstephenson/ruby-build/issues/780/comments","events_url":"https://api.github.com/repos/sstephenson/ruby-build/issues/780/events","html_url":"https://github.com/sstephenson/ruby-build/issues/780","id":93178080,"number":780,"title":"After OSX 10.10.4 update: Unable to install 2.2.0 or 2.2.1, run `gem install bundler` with 2.2.2","user":{"login":"davidcpell","id":1223820,"avatar_url":"https://avatars.githubusercontent.com/u/1223820?v=3","gravatar_id":"","url":"https://api.github.com/users/davidcpell","html_url":"https://github.com/davidcpell","followers_url":"https://api.github.com/users/davidcpell/followers","following_url":"https://api.github.com/users/davidcpell/following{/other_user}","gists_url":"https://api.github.com/users/davidcpell/gists{/gist_id}","starred_url":"https://api.github.com/users/davidcpell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidcpell/subscriptions","organizations_url":"https://api.github.com/users/davidcpell/orgs","repos_url":"https://api.github.com/users/davidcpell/repos","events_url":"https://api.github.com/users/davidcpell/events{/privacy}","received_events_url":"https://api.github.com/users/davidcpell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-06T03:25:12Z","updated_at":"2015-07-06T03:25:12Z","closed_at":null,"body":"I can't say for sure that this is related to the recent OSX 10.10.4 update (I also just upgrade Command Line Tools to 6.4, and I think that's what has the `zlib` package), but I am having some major issues with rbenv since a recent uninstall/reinstall that I did (which was down after the aforementioned updates). I was uninstalling/reinstalling in hopes that it would fix an unrelated problem. However, I now can't build 2.2.0 or 2.2.1. I can build 2.2.2 but am unable to use `gem install bundler` due to a supposedly missing `zlib` package.\r\n\r\n````\r\nMacBook-Pro:app me$ which ruby\r\n/Users/me/.rbenv/shims/ruby\r\nMacBook-Pro:app me$ rbenv versions\r\n  system\r\n* 2.2.2 (set by /Users/me/work/app/.ruby-version)\r\nMacBook-Pro:app me$ gem install bundler\r\nERROR:  Loading command: install (LoadError)\r\n\tcannot load such file -- zlib\r\nERROR:  While executing gem ... (NoMethodError)\r\n    undefined method `invoke_with_build_args' for nil:NilClass\r\n````\r\n\r\n````\r\nMacBook-Pro:~ me$ rbenv install 2.2.0\r\nDownloading ruby-2.2.0.tar.gz...\r\n-> http://dqw8nmjcqpjn7.cloudfront.net/7671e394abfb5d262fbcd3b27a71bf78737c7e9347fa21c39e58b0bb9c4840fc\r\nInstalling ruby-2.2.0...\r\n\r\nBUILD FAILED (OS X 10.10.4 using ruby-build 20150519)\r\n\r\nInspect or clean up the working tree at /var/folders/rm/38vbv5g952s54r1txrmrdlf40000gn/T/ruby-build.20150705212307.49958\r\nResults logged to /var/folders/rm/38vbv5g952s54r1txrmrdlf40000gn/T/ruby-build.20150705212307.49958.log\r\n\r\nLast 10 log lines:\r\n    from /private/var/folders/rm/38vbv5g952s54r1txrmrdlf40000gn/T/ruby-build.20150705212307.49958/ruby-2.2.0/lib/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n    from /private/var/folders/rm/38vbv5g952s54r1txrmrdlf40000gn/T/ruby-build.20150705212307.49958/ruby-2.2.0/lib/rubygems.rb:556:in `install'\r\n    from ./tool/rbinstall.rb:717:in `block (2 levels) in <main>'\r\n    from ./tool/rbinstall.rb:716:in `each'\r\n    from ./tool/rbinstall.rb:716:in `block in <main>'\r\n    from ./tool/rbinstall.rb:749:in `call'\r\n    from ./tool/rbinstall.rb:749:in `block in <main>'\r\n    from ./tool/rbinstall.rb:746:in `each'\r\n    from ./tool/rbinstall.rb:746:in `<main>'\r\nmake: *** [do-install-all] Error 1 \r\n````\r\n\r\nI have seen similar problems with `cannot load such file -- zlib` (it's even mentioned in the wiki) but that normally seems to be a problem with Linux systems rather than OSX.\r\n\r\nI'm at the end of what I know to do to try to debug this and I thought I would mention/report it here. \r\n\r\nOSX 10.10.4\r\nCommand Line Tools 6.4\r\nrbenv 0.4.0"}}