{"action":"created","issue":{"url":"https://api.github.com/repos/Homebrew/homebrew-services/issues/11","labels_url":"https://api.github.com/repos/Homebrew/homebrew-services/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/Homebrew/homebrew-services/issues/11/comments","events_url":"https://api.github.com/repos/Homebrew/homebrew-services/issues/11/events","html_url":"https://github.com/Homebrew/homebrew-services/issues/11","id":89402786,"number":11,"title":"ERROR: Failed to build gem native extension.","user":{"login":"scottzirkel","id":1329131,"avatar_url":"https://avatars.githubusercontent.com/u/1329131?v=3","gravatar_id":"","url":"https://api.github.com/users/scottzirkel","html_url":"https://github.com/scottzirkel","followers_url":"https://api.github.com/users/scottzirkel/followers","following_url":"https://api.github.com/users/scottzirkel/following{/other_user}","gists_url":"https://api.github.com/users/scottzirkel/gists{/gist_id}","starred_url":"https://api.github.com/users/scottzirkel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottzirkel/subscriptions","organizations_url":"https://api.github.com/users/scottzirkel/orgs","repos_url":"https://api.github.com/users/scottzirkel/repos","events_url":"https://api.github.com/users/scottzirkel/events{/privacy}","received_events_url":"https://api.github.com/users/scottzirkel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-18T21:30:13Z","updated_at":"2015-06-19T15:00:03Z","closed_at":"2015-06-19T15:00:03Z","body":"Not 100% this is a services issue, but I have stripped down and reinstalled  brew, ruby and more and it's still doing it. \r\n\r\nWhen I run `brew services start (mysql|httpd22)` I get the following error:\r\n\r\n````\r\nError: ERROR: Failed to build gem native extension.\r\n\r\n    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb\r\nExtracting libxml2-2.8.0.tar.gz into tmp/x86_64-apple-darwin14.3.0/ports/libxml2/2.8.0... OK\r\nRunning 'compile' for libxml2 2.8.0... ERROR, review 'tmp/x86_64-apple-darwin14.3.0/ports/libxml2/2.8.0/compile.log' to see what happened.\r\n/Library/Ruby/Gems/2.0.0/gems/mini_portile-0.5.2/lib/mini_portile.rb:265:in `block in execute': Failed to complete compile task (RuntimeError)\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/mini_portile-0.5.2/lib/mini_portile.rb:257:in `chdir'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/mini_portile-0.5.2/lib/mini_portile.rb:257:in `execute'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/mini_portile-0.5.2/lib/mini_portile.rb:69:in `compile'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/mini_portile-0.5.2/lib/mini_portile.rb:109:in `cook'\r\n\tfrom extconf.rb:101:in `block in <main>'\r\n\tfrom extconf.rb:119:in `call'\r\n\tfrom extconf.rb:119:in `block in <main>'\r\n\tfrom extconf.rb:109:in `tap'\r\n\tfrom extconf.rb:109:in `<main>'\r\n\r\nextconf failed, exit code 1\r\n\r\nGem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/nokogiri-1.6.1 for inspection.\r\nResults logged to /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0/nokogiri-1.6.1/gem_make.out\r\n````\r\n\r\nI am not using system Ruby or the system gempath, yet this keeps referencing gems in the system gem path. It mentions nokogiri but I don't use that nor have it installed.\r\n\r\nMy $PATH, which you can see sets the correct ruby path:\r\n````\r\n/Users/scott/.rvm/gems/ruby-2.2.2/bin:/Users/scott/.rvm/gems/ruby-2.2.2@global/bin:/Users/scott/.rvm/rubies/ruby-2.2.2/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/git/bin:/Users/scott/.rvm/bin:/Users/scott/.npm-packages/bin:/usr/local/sbin:/Users/scott/.rvm/bin\r\n````\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Homebrew/homebrew-services/issues/comments/113539633","html_url":"https://github.com/Homebrew/homebrew-services/issues/11#issuecomment-113539633","issue_url":"https://api.github.com/repos/Homebrew/homebrew-services/issues/11","id":113539633,"user":{"login":"scottzirkel","id":1329131,"avatar_url":"https://avatars.githubusercontent.com/u/1329131?v=3","gravatar_id":"","url":"https://api.github.com/users/scottzirkel","html_url":"https://github.com/scottzirkel","followers_url":"https://api.github.com/users/scottzirkel/followers","following_url":"https://api.github.com/users/scottzirkel/following{/other_user}","gists_url":"https://api.github.com/users/scottzirkel/gists{/gist_id}","starred_url":"https://api.github.com/users/scottzirkel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottzirkel/subscriptions","organizations_url":"https://api.github.com/users/scottzirkel/orgs","repos_url":"https://api.github.com/users/scottzirkel/repos","events_url":"https://api.github.com/users/scottzirkel/events{/privacy}","received_events_url":"https://api.github.com/users/scottzirkel/received_events","type":"User","site_admin":false},"created_at":"2015-06-19T15:00:03Z","updated_at":"2015-06-19T15:00:03Z","body":"Fixed it with Homebrew/homebrew#31220"}}