Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to install rails mac OSX Mountain Lion?
    primarykey
    data
    text
    <blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="https://stackoverflow.com/questions/12256616/os-x-mountain-lion-gcc-4-2-no-such-file-or-directory">OS X Mountain Lion: gcc-4.2 No such file or directory</a> </p> </blockquote> <p>I'm facing a problem to install rails on my MAC.</p> <p>I'm learning RoR by myself but I can't install rails.</p> <p>This is what I did: 1 - Installed XCode and downloaded 'Command Line Tools'</p> <p>2 - Installed RVM with this code:</p> <pre><code>curl -L https://get.rvm.io | bash -s stable </code></pre> <p>3 - Installed HomeBrew and libksba:</p> <pre><code>ruby &lt;(curl -fsSkL raw.github.com/mxcl/homebrew/go) brew install libksba </code></pre> <p>4 - Installed Ruby with RVM (RVM command only worked after I restarted the system):</p> <pre><code>rvm install 1.9.3 </code></pre> <p>5 - Defined Ruby 1.9.3 as default:</p> <pre><code>rvm --default 1.9.3 </code></pre> <p>6 - Now I'm trying to run this code:</p> <pre><code>gem install rails </code></pre> <p>But it returns this error:</p> <blockquote> <p>Guerreiro:~ rguerreiro$ gem install rails Building native extensions. This could take a while... ERROR: Error installing rails: ERROR: Failed to build gem native extension.</p> <pre><code> /Users/rguerreiro/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb </code></pre> <p>creating Makefile</p> <p>make compiling generator.c make: /usr/bin/gcc-4.2: No such file or directory make: *** [generator.o] Error 1</p> <p>Gem files will remain installed in /Users/rguerreiro/.rvm/gems/ruby-1.9.3-p194/gems/json-1.7.5 for inspection. Results logged to /Users/rguerreiro/.rvm/gems/ruby-1.9.3-p194/gems/json-1.7.5/ext/json/ext/generator/gem_make.out</p> </blockquote>
    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.
 

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