{"action":"created","issue":{"url":"https://api.github.com/repos/libgit2/rugged/issues/504","labels_url":"https://api.github.com/repos/libgit2/rugged/issues/504/labels{/name}","comments_url":"https://api.github.com/repos/libgit2/rugged/issues/504/comments","events_url":"https://api.github.com/repos/libgit2/rugged/issues/504/events","html_url":"https://github.com/libgit2/rugged/issues/504","id":96162172,"number":504,"title":"Rugged 0.23.0 Makefile error","user":{"login":"dankohn","id":3083270,"avatar_url":"https://avatars.githubusercontent.com/u/3083270?v=3","gravatar_id":"","url":"https://api.github.com/users/dankohn","html_url":"https://github.com/dankohn","followers_url":"https://api.github.com/users/dankohn/followers","following_url":"https://api.github.com/users/dankohn/following{/other_user}","gists_url":"https://api.github.com/users/dankohn/gists{/gist_id}","starred_url":"https://api.github.com/users/dankohn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dankohn/subscriptions","organizations_url":"https://api.github.com/users/dankohn/orgs","repos_url":"https://api.github.com/users/dankohn/repos","events_url":"https://api.github.com/users/dankohn/events{/privacy}","received_events_url":"https://api.github.com/users/dankohn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-20T21:17:41Z","updated_at":"2015-07-20T22:48:31Z","closed_at":null,"body":"In order to deal with the rugged dld error https://github.com/libgit2/rugged/issues/475 I changed pronto to require rugged 0.23.0, but using `gem 'rugged', github: 'libgit2/rugged', ref: '233da19'` in my Gemfile produces:\r\n```bash\r\nUsing rugged 0.23.0 (was 0.22.2) from git://github.com/libgit2/rugged.git (at 233da19)\r\n\r\nGem::Ext::BuildError: ERROR: Failed to build gem native extension.\r\n\r\n    /Users/dan/.rbenv/versions/2.2.2/bin/ruby -r ./siteconf20150720-36471-ccu0y8.rb extconf.rb\r\nchecking for gmake... no\r\nchecking for make... yes\r\nchecking for cmake... yes\r\nchecking for pkg-config... yes\r\n -- cmake .. -DBUILD_CLAR=OFF -DTHREADSAFE=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_FLAGS=-fPIC -DCMAKE_BUILD_TYPE=RelWithDebInfo -G \"Unix Makefiles\"\r\n*** extconf.rb failed ***\r\nCould not create Makefile due to some reason, probably lack of necessary\r\nlibraries and/or headers.  Check the mkmf.log file for more details.  You may\r\nneed configuration options.\r\n\r\nProvided configuration options:\r\n\t--with-opt-dir\r\n\t--without-opt-dir\r\n\t--with-opt-include\r\n\t--without-opt-include=${opt-dir}/include\r\n\t--with-opt-lib\r\n\t--without-opt-lib=${opt-dir}/lib\r\n\t--with-make-prog\r\n\t--without-make-prog\r\n\t--srcdir=.\r\n\t--curdir\r\n\t--ruby=/Users/dan/.rbenv/versions/2.2.2/bin/$(RUBY_BASE_NAME)\r\n\t--use-system-libraries\r\nextconf.rb:13:in `sys': ERROR: 'cmake .. -DBUILD_CLAR=OFF -DTHREADSAFE=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_FLAGS=-fPIC -DCMAKE_BUILD_TYPE=RelWithDebInfo -G \"Unix Makefiles\"' failed (RuntimeError)\r\n\tfrom extconf.rb:66:in `block (2 levels) in <main>'\r\n\tfrom extconf.rb:65:in `chdir'\r\n\tfrom extconf.rb:65:in `block in <main>'\r\n\tfrom extconf.rb:62:in `chdir'\r\n\tfrom extconf.rb:62:in `<main>'\r\n\r\nextconf failed, exit code 1\r\n\r\nGem files will remain installed in /Users/dan/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/bundler/gems/rugged-233da19f4821 for inspection.\r\nResults logged to /Users/dan/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/bundler/gems/extensions/x86_64-darwin-14/2.2.0-static/rugged-233da19f4821/gem_make.out\r\nAn error occurred while installing rugged (0.23.0), and Bundler cannot continue.\r\n```\r\nI also tried:\r\n```bash\r\n$ gem install rugged  --pre\r\nFetching: rugged-0.23.0b4.gem (100%)\r\nBuilding native extensions.  This could take a while...\r\nERROR:  Error installing rugged:\r\n\tERROR: Failed to build gem native extension.\r\n\r\n    /Users/dan/.rbenv/versions/2.2.2/bin/ruby -r ./siteconf20150720-36618-1mmje1s.rb extconf.rb\r\nchecking for gmake... no\r\nchecking for make... yes\r\nchecking for cmake... yes\r\nchecking for pkg-config... yes\r\n -- cmake .. -DBUILD_CLAR=OFF -DTHREADSAFE=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_FLAGS=-fPIC -DCMAKE_BUILD_TYPE=RelWithDebInfo -G \"Unix Makefiles\"\r\n*** extconf.rb failed ***\r\nCould not create Makefile due to some reason, probably lack of necessary\r\nlibraries and/or headers.  Check the mkmf.log file for more details.  You may\r\nneed configuration options.\r\n\r\nProvided configuration options:\r\n\t--with-opt-dir\r\n\t--without-opt-dir\r\n\t--with-opt-include\r\n\t--without-opt-include=${opt-dir}/include\r\n\t--with-opt-lib\r\n\t--without-opt-lib=${opt-dir}/lib\r\n\t--with-make-prog\r\n\t--without-make-prog\r\n\t--srcdir=.\r\n\t--curdir\r\n\t--ruby=/Users/dan/.rbenv/versions/2.2.2/bin/$(RUBY_BASE_NAME)\r\n\t--use-system-libraries\r\nextconf.rb:13:in `sys': ERROR: 'cmake .. -DBUILD_CLAR=OFF -DTHREADSAFE=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_FLAGS=-fPIC -DCMAKE_BUILD_TYPE=RelWithDebInfo -G \"Unix Makefiles\"' failed (RuntimeError)\r\n\tfrom extconf.rb:66:in `block (2 levels) in <main>'\r\n\tfrom extconf.rb:65:in `chdir'\r\n\tfrom extconf.rb:65:in `block in <main>'\r\n\tfrom extconf.rb:62:in `chdir'\r\n\tfrom extconf.rb:62:in `<main>'\r\n\r\nextconf failed, exit code 1\r\n\r\nGem files will remain installed in /Users/dan/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rugged-0.23.0b4 for inspection.\r\nResults logged to /Users/dan/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-14/2.2.0-static/rugged-0.23.0b4/gem_make.out\r\n```\r\nAs suggested in https://github.com/libgit2/rugged/issues/489 I installed XCode (as opposed to the XCode Command Line Tools I had previously been using) and entered `sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer` but this didn't change the error.\r\n\r\nI'm on Yosemite 10.10.4."},"comment":{"url":"https://api.github.com/repos/libgit2/rugged/issues/comments/123079495","html_url":"https://github.com/libgit2/rugged/issues/504#issuecomment-123079495","issue_url":"https://api.github.com/repos/libgit2/rugged/issues/504","id":123079495,"user":{"login":"dankohn","id":3083270,"avatar_url":"https://avatars.githubusercontent.com/u/3083270?v=3","gravatar_id":"","url":"https://api.github.com/users/dankohn","html_url":"https://github.com/dankohn","followers_url":"https://api.github.com/users/dankohn/followers","following_url":"https://api.github.com/users/dankohn/following{/other_user}","gists_url":"https://api.github.com/users/dankohn/gists{/gist_id}","starred_url":"https://api.github.com/users/dankohn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dankohn/subscriptions","organizations_url":"https://api.github.com/users/dankohn/orgs","repos_url":"https://api.github.com/users/dankohn/repos","events_url":"https://api.github.com/users/dankohn/events{/privacy}","received_events_url":"https://api.github.com/users/dankohn/received_events","type":"User","site_admin":false},"created_at":"2015-07-20T22:48:31Z","updated_at":"2015-07-20T22:48:31Z","body":"I was getting an error because I needed to authorize the license for XCode. `gem install rugged  --pre` now works. Using gem 'rugged', github: 'libgit2/rugged', ref: '233da19' in my Gemfile still produces the same error:\r\n\r\nless /Users/dan/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/bundler/gems/extensions/x86_64-darwin-14/2.2.0-static/rugged-233da19f4821/mkmf.log\r\n```\r\nfind_executable: checking for gmake... -------------------- no\r\n\r\n--------------------\r\n\r\nfind_executable: checking for make... -------------------- yes\r\n\r\n--------------------\r\n\r\nfind_executable: checking for cmake... -------------------- yes\r\n\r\n--------------------\r\n\r\nfind_executable: checking for pkg-config... -------------------- yes\r\n\r\n--------------------\r\n\r\n\"cmake .. -DBUILD_CLAR=OFF -DTHREADSAFE=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_FLAGS=-fPIC -DCMAKE_BUILD_TYPE=RelWithDebInfo -G \"Unix Makefiles\"\"\r\nCMake Error: The source directory \"/Users/dan/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/bundler/gems/rugged-233da19f4821/vendor/libgit2\" does not appear to contain CMakeLists.txt.\r\nSpecify --help for usage, or press the help button on the CMake GUI.\r\n```"}}