Closed splitter05 closed 10 years ago
Hey @splitter05, unfortunately this isn't an issue with dugway it's an issue with your development environment. It appears your rbenv installed ruby is unable to build gems with native extensions. I can't say precisely why but this error seems to indicate you are missing xcode command line tools:
try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
I suggest you try to determine why your ruby install can't build gems with C code. As a test try installing another gem like nokogiri which uses a C extension. gem install nokogiri
.
I'm using ruby 2.0.0p451 I've got almost the same issue
erver:~ Johndoe$ gem install dugway Building native extensions. This could take a while... ERROR: Error installing dugway: ERROR: Failed to build gem native extension.
* extconf.rb failed * 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.
Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/Users/Johndoe/.rvm/rubies/ruby-2.0.0-p451/bin/ruby --with-openssl-config --without-openssl-config --with-pkg-config --without-pkg-config /Users/Johndoe/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/mkmf.rb:434:in'
try_do': The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first. from /Users/Johndoe/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/mkmf.rb:519:in
try_link0' from /Users/Johndoe/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/mkmf.rb:534:intry_link' from /Users/Johndoe/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/mkmf.rb:620:in
block in try_ldflags' from /Users/Johndoe/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/mkmf.rb:613:inwith_ldflags' from /Users/Johndoe/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/mkmf.rb:619:in
try_ldflags' from /Users/Johndoe/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/mkmf.rb:1725:inpkg_config' from extconf.rb:61:in
extconf failed, exit code 1
Gem files will remain installed in /Users/Johndoe/.rvm/gems/ruby-2.0.0-p451/gems/eventmachine-1.0.3 for inspection. Results logged to /Users/Johndoe/.rvm/gems/ruby-2.0.0-p451/extensions/x86_64-darwin-12/2.0.0-static/eventmachine-1.0.3/gem_make.out