Note that there are some explanatory texts on larger screens.

plurals
  1. POCannot install therubyracer, gcc version update on OSX Leopard?
    text
    copied!<p>So after making my first scaffold using Rails, I tried to access some of the pages it created, and got the following error:</p> <pre><code> ExecJS::RuntimeError in Users#index Showing /Users/Alice/Desktop/sample_app/app/views/layouts/application.html.erb where line #6 raised: dyld: unknown required load command 0x80000022 (in /Users/Alice/Desktop/sample_app/app/assets/javascripts/users.js.coffee) Extracted source (around line #6): 3: &lt;head&gt; 4: &lt;title&gt;SampleApp&lt;/title&gt; 5: &lt;%= stylesheet_link_tag "application", :media =&gt; "all" %&gt; 6: &lt;%= javascript_include_tag "application" %&gt; 7: &lt;%= csrf_meta_tags %&gt; 8: &lt;/head&gt; 9: &lt;body&gt;&lt;/code&gt; </code></pre> <p>I looked up this error and I concluded that I needed to install therubyracer gem. I tried to do this via gem install therubyracer.</p> <p>Then I got the error:</p> <pre><code> ERROR: Error installing therubyracer: ERROR: Failed to build gem native extension. /Users/Alice/.rvm/rubies/ruby-1.9.3-p362/bin/ruby extconf.rb creating Makefile Unable to find a compiler officially supported by v8. It is recommended to use GCC v4.4 or higher Using compiler: g++ File "./gyp-mac-tool", line 167 fd = os.open(lockfile, os.O_RDONLY|os.O_NOCTTY|os.O_CREAT, 0o666) ^ SyntaxError: invalid syntax </code></pre> <p>So I run gcc -version, and I see that my version is i686-apple-darwin9-gcc-4.0.1 I've tried to update my gcc using MacPorts, and I can't seem to make it work at all... </p> <p>I'm running OSX Leopard, which I'm guessing is the cause of all my grief.<br> What do I do from here?</p>
 

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