Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>For anyone encountering this issue on Mac OSX 10.8 Mountain Lion when attempting to upgrade their <strong>Gemfile</strong> with <code>gem 'therubyracer', '0.11.0'</code>, just upgrading the system <code>libv8</code> gem worked for me (no uninstallation of any other gem necessary):</p> <pre><code>$ gem update libv8 $ bundle install </code></pre> <h3>Edit</h3> <p>If you use <a href="https://travis-ci.org/" rel="nofollow noreferrer">Travis-CI</a> (or other CI tools located on other servers, I assume), you will need to explicitly add the <code>libv8</code> gem to your <strong>Gemfile</strong> as well:</p> <p><strong>Gemfile</strong></p> <pre><code>gem 'libv8', '3.11.8.3' </code></pre> <p>then <code>bundle install</code> as usual. Just note that <code>libv8</code> can take a significant amount of time to install and I've noticed that it may end up being the cause of going over <a href="http://about.travis-ci.org/docs/user/build-configuration/#Build-Timeouts" rel="nofollow noreferrer">Travis CI's timeout limits</a>, causing your build to fail. You can mitigate this slightly be not including development environment gems in your builds:</p> <p><strong>.travis.yml</strong></p> <pre><code># ... bundler_args: --binstubs=./bundler_stubs --without development </code></pre> <h3>Update</h3> <p>Yep, pretty much all my Travis builds timeout and fail because of this. If anyone knows a way to solve this problem (I would hope "downgrade <code>therubyracer</code>" is a last resort), please leave a comment!</p> <h3>Update 2</h3> <p>This may not work for all apps, but it seems that my Rails 3.2.9 apps didn't actually need <code>therubyracer</code> or <code>libv8</code> after all. After removing those gems from my <strong>Gemfile</strong>, I confirmed that my specs passed, pushed again to Travis and it built successfully. So, I guess getting rid of those gems (if you're not sure you actually need them) is at least worth a try.</p> <h3>Update 3</h3> <p>Thanks to <a href="https://stackoverflow.com/users/430695/paul-annesley">Paul Annesley</a> for confirming that if you're on Mac OS X 10.8 Mountain Lion, you don't need <code>therubyracer</code> gem at all since the OS already comes bundled with Apple JavaScriptCore, its own Javascript runner. At the time of the original answer, I was on Snow Leopard and hence needed it.</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