{"action":"created","issue":{"url":"https://api.github.com/repos/knu/ruby-unf_ext/issues/11","labels_url":"https://api.github.com/repos/knu/ruby-unf_ext/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/knu/ruby-unf_ext/issues/11/comments","events_url":"https://api.github.com/repos/knu/ruby-unf_ext/issues/11/events","html_url":"https://github.com/knu/ruby-unf_ext/issues/11","id":73478079,"number":11,"title":"Failed to build gem native extension OSX 10.10.3","user":{"login":"stats","id":786312,"avatar_url":"https://avatars.githubusercontent.com/u/786312?v=3","gravatar_id":"","url":"https://api.github.com/users/stats","html_url":"https://github.com/stats","followers_url":"https://api.github.com/users/stats/followers","following_url":"https://api.github.com/users/stats/following{/other_user}","gists_url":"https://api.github.com/users/stats/gists{/gist_id}","starred_url":"https://api.github.com/users/stats/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stats/subscriptions","organizations_url":"https://api.github.com/users/stats/orgs","repos_url":"https://api.github.com/users/stats/repos","events_url":"https://api.github.com/users/stats/events{/privacy}","received_events_url":"https://api.github.com/users/stats/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-06T00:59:50Z","updated_at":"2015-05-08T14:07:14Z","closed_at":"2015-05-08T14:07:14Z","body":"running:\r\n\r\n    gem install unf_ext -v '0.0.7.1'\r\n\r\nresults in the following error\r\n\r\n    ERROR:  Error installing unf_ext:\r\n\tERROR: Failed to build gem native extension.\r\n\r\n    [snip]/rubies/ruby-1.9.3-p547/bin/ruby extconf.rb checking for main() in -lstdc++...     *** extconf.rb failed ***\r\n    Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers.  Check the mkmf.log file for more details.  You may need configuration options.\r\n\r\nThe stack trace is: \r\n\r\n    [snip]/.rvm/rubies/ruby-1.9.3-p547/lib/ruby/1.9.1/mkmf.rb:381:in `try_do': The compiler failed to generate an executable file. (RuntimeError)\r\n    You have to install development tools first.\r\n\tfrom [snip]/.rvm/rubies/ruby-1.9.3-p547/lib/ruby/1.9.1/mkmf.rb:461:in `try_link0'\r\n\tfrom [snip]/.rvm/rubies/ruby-1.9.3-p547/lib/ruby/1.9.1/mkmf.rb:476:in `try_link'\r\n\tfrom [snip]/.rvm/rubies/ruby-1.9.3-p547/lib/ruby/1.9.1/mkmf.rb:619:in `try_func'\r\n\tfrom [snip]/.rvm/rubies/ruby-1.9.3-p547/lib/ruby/1.9.1/mkmf.rb:845:in `block in have_library'\r\n\tfrom [snip]/.rvm/rubies/ruby-1.9.3-p547/lib/ruby/1.9.1/mkmf.rb:790:in `block in checking_for'\r\n\tfrom [snip]/.rvm/rubies/ruby-1.9.3-p547/lib/ruby/1.9.1/mkmf.rb:284:in `block (2 levels) in postpone'\r\n\tfrom [snip]/.rvm/rubies/ruby-1.9.3-p547/lib/ruby/1.9.1/mkmf.rb:254:in `open'\r\n\tfrom [snip]/.rvm/rubies/ruby-1.9.3-p547/lib/ruby/1.9.1/mkmf.rb:284:in `block in postpone'\r\n\tfrom [snip]/.rvm/rubies/ruby-1.9.3-p547/lib/ruby/1.9.1/mkmf.rb:254:in `open'\r\n\tfrom [snip]/.rvm/rubies/ruby-1.9.3-p547/lib/ruby/1.9.1/mkmf.rb:280:in `postpone'\r\n\tfrom [snip]/.rvm/rubies/ruby-1.9.3-p547/lib/ruby/1.9.1/mkmf.rb:789:in `checking_for'\r\n\tfrom [snip]/.rvm/rubies/ruby-1.9.3-p547/lib/ruby/1.9.1/mkmf.rb:840:in `have_library'\r\n\tfrom extconf.rb:6:in `<main>'\r\n\r\nA number of similar issues discuss installing different versions of command line tools. I downgraded to 6.2 and then reupgraded to 6.3 and 6.3.1 with no change.\r\n\r\nMy xcode-select version is 2339, and I just did a complete install of xcode 6.3.1 with no change."},"comment":{"url":"https://api.github.com/repos/knu/ruby-unf_ext/issues/comments/100242171","html_url":"https://github.com/knu/ruby-unf_ext/issues/11#issuecomment-100242171","issue_url":"https://api.github.com/repos/knu/ruby-unf_ext/issues/11","id":100242171,"user":{"login":"stats","id":786312,"avatar_url":"https://avatars.githubusercontent.com/u/786312?v=3","gravatar_id":"","url":"https://api.github.com/users/stats","html_url":"https://github.com/stats","followers_url":"https://api.github.com/users/stats/followers","following_url":"https://api.github.com/users/stats/following{/other_user}","gists_url":"https://api.github.com/users/stats/gists{/gist_id}","starred_url":"https://api.github.com/users/stats/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stats/subscriptions","organizations_url":"https://api.github.com/users/stats/orgs","repos_url":"https://api.github.com/users/stats/repos","events_url":"https://api.github.com/users/stats/events{/privacy}","received_events_url":"https://api.github.com/users/stats/received_events","type":"User","site_admin":false},"created_at":"2015-05-08T14:07:14Z","updated_at":"2015-05-08T14:07:14Z","body":"I was able to resolve this issue, and I think it was related to the state of brew following the upgrading to Yosemite.\r\n\r\n1. Uninstall Brew\r\n2. Reinstall Brew\r\n3. Uninstall ruby\r\n4. Reinstall ruby\r\n5. Install bundler\r\n6. Run bundle update"}}