Note that there are some explanatory texts on larger screens.

plurals
  1. POMountain Lion, failed to install ruby on rails [ERROR: Failed to build gem native extension.]
    primarykey
    data
    text
    <p>I have tried different ways to install rails but never get it.. every time I type "gem install rails".. it shows me <code>"ERROR: Failed to build gem native extension."</code> </p> <pre><code>miketeki-iphone:~ Simon$ gem install rails Failed to load /Users/Simon/.gemrc because it doesn't contain valid YAML hash Fetching: i18n-0.6.5.gem (100%) Successfully installed i18n-0.6.5 Fetching: multi_json-1.7.9.gem (100%) Successfully installed multi_json-1.7.9 Fetching: tzinfo-0.3.37.gem (100%) Successfully installed tzinfo-0.3.37 Fetching: minitest-4.7.5.gem (100%) Successfully installed minitest-4.7.5 Fetching: atomic-1.1.13.gem (100%) Building native extensions. This could take a while... ERROR: Error installing rails: ERROR: Failed to build gem native extension. /Users/Simon/.rvm/rubies/ruby-2.0.0-p247/bin/ruby extconf.rb *** 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/Simon/.rvm/rubies/ruby-2.0.0-p247/bin/ruby --with-atomic_reference-dir --without-atomic_reference-dir --with-atomic_reference-include --without-atomic_reference-include=${atomic_reference-dir}/include --with-atomic_reference-lib --without-atomic_reference-lib=${atomic_reference-dir}/ /Users/Simon/.rvm/rubies/ruby-2.0.0-p247/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/Simon/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/mkmf.rb:519:in `try_link0' from /Users/Simon/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/mkmf.rb:817:in `try_run' from extconf.rb:24:in `&lt;main&gt;' Gem files will remain installed in /Users/Simon/.rvm/gems/ruby-2.0.0-p247@global/gems/atomic-1.1.13 for inspection. Results logged to /Users/Simon/.rvm/gems/ruby-2.0.0-p247@global/gems/atomic-1.1.13/ext/gem_make.out </code></pre> <p>Thanks in advance.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload