title: Node.js not found by Rails / execjs
body: <p>I have node.js installed by compiling and installing it from the root user. I think this maybe where the hangup is. From the user running the rails app I checked for node.js.</p>
  
  <pre><code>$ which node
  /usr/local/bin/node
  </code></pre>
  
  <p>When I launched my rails  app (Rails 3.2.9) I get the universally unhelpful "We're sorry, but something went wrong." Checking the the production error log I saw that the Javascript runtime was not found. That's confusing as it is obviously installed. So I went about forcing the Node javascript runtime. I edited config/boot.rb to include:</p>
  
  <pre><code>ENV['EXECJS_RUNTIME'] = 'Node'
  </code></pre>
  
  <p>I checked my app again, while watching the production log. This time I got the error</p>
  
  <pre><code>ActionView::Template::Error (Node.js (V8) runtime is not available on this system
  </code></pre>
  
  <p>Still confused. I went to the execjs gem and changed the runtime command to the exact installed path.</p>
  
  <pre><code>Node = ExternalRuntime.new(
    :name        =&gt; "Node.js (V8)",
    :command     =&gt; "/usr/local/bin/node",
    :runner_path =&gt; ExecJS.root + "/support/node_runner.js",
    :encoding    =&gt; 'UTF-8'
  )
  </code></pre>
  
  <p>I still get the same error. Node is installed and accessible by the user but the gem/rails can't seem to use it.
  The server is run CentOS 6.3. The specific javascript file causing the error to be thrown is jquery.nivo.slider.pack.js. Which I didn't edit after downloading it from nivo.</p>