Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I see two things:</p> <p>Your <code>which ruby</code> says the default is <code>/usr/bin/ruby</code>, but your Autotest is calling <code>/usr/local/bin/ruby</code>.</p> <blockquote> <p>sh: /usr/local/bin/unit_diff: /usr/local/bin/ruby: bad interpreter: No such file or directory</p> </blockquote> <p>Also, your path is not organized well because you have duplicated entries. I split it on ':' then sorted it to look for duplicates:</p> <pre><code>/bin /Library/Frameworks/Python.framework/Versions/Current/bin /opt/local/bin # &lt;-- /opt/local/bin # &lt;-- /opt/local/sbin /sbin /Users/ethan/bin /usr/bin /usr/local/bin # &lt;-- /usr/local/bin # &lt;-- /usr/local/git/bin /usr/local/mysql/bin /usr/local/oracle/instantclient_10_2 /usr/local/pgsql/bin /usr/sbin </code></pre> <p>Notice that you have duplicated <code>/opt/local/bin</code> and <code>/usr/local/bin</code> directories. Those should appear ahead of the default <code>/usr/bin</code> directory in order for your "personally" installed apps to be located first, so you should do some housekeeping. Once you have done that close your terminal session(s). Open a new session and try rerunning your test and see if anything has changed/improved.</p> <p>The path organization is part of the problem and explains why <code>which ruby</code> points to the system Ruby. I suspect another part of this puzzle is that you are using <code>#!/usr/local/bin/ruby</code> as the "bang slash" in your scripts, or explicitly pointing to that Ruby when you call things on the command-line. That will confuse tests no end. In my scripts I use this to invoke Ruby:</p> <pre><code>#!/usr/bin/env ruby </code></pre> <p>which works nicely because it uses whatever Ruby is defined first in my path, and with this next part...</p> <p>I'm a big proponent for using <a href="http://rvm.beginrescueend.com" rel="nofollow">RVM</a> to manage Ruby installations on Mac OS and Linux. It makes it so you don't have to install anything in your default <code>/usr/bin</code> ruby or even bother with adding one in <code>/usr/local/bin</code>. RVM puts everything in <code>~/.rvm</code> and makes it really easy to install/manage/remove Ruby versions along with their associated gems, or even blow it all away by deleting that directory. <a href="http://rvm.beginrescueend.com/rvm/install/" rel="nofollow">Installing RVM</a> and <a href="http://rvm.beginrescueend.com/gemsets/" rel="nofollow">Gemsets</a> are good starting places if you want to give it a try. </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