Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>OK, let's see if we can get your config straightened out.</p> <p>You're using RVM, and a current rev of Ruby, so gather even more info about your RVM environment. Type <code>rvm info</code> and add that output to your original question by editing it. That will tell us more about what RVM knows.</p> <p>Here's some questions:</p> <ol> <li>Did you previously have Leopard installed, with RVM, then switch to Snow Leopard? If so, your Ruby would be compiled for 32-bit, but any native drivers compiled since then would be 64-bit which can cause real weird behavior. Fixing that takes a couple commands and some recompiling but it isn't overly painful.</li> <li>Did you install Apple's XCode from the Snow Leopard DVD, or as a fresh install directly from <a href="http://developer.apple.com/xcode/" rel="nofollow noreferrer">Apple's XCode site</a>? The version of XCode on the Snow Leopard was buggy and shouldn't be used. You can download a free copy from Apple's site. It's a big download.</li> <li>Is your RVM current? Periodically run <code>rvm get update</code>. That might not help this particular problem, but it can fix some oddities. Use <code>rvm -v</code> to check the version. v1.5.2 is current as of today.</li> </ol> <p>Some of the info at <a href="https://stackoverflow.com/questions/3000819/sqlite3-ruby-cant-make-on-rvm-1-8-7/3009142#3009142">sqlite3-ruby can&#39;t make on rvm 1.8.7</a> might help.</p> <hr> <p>EDIT:</p> <p>A couple things stand out from your <code>rvm info</code>:</p> <ul> <li>Your version of Ruby 1.9.2 is p188. p180 is the current stable version if I remember right, at least it is according to what RVM knows: <code>rvm list known</code> shows its list. That might cause problems with drivers that haven't been tested together. You might want to consider installing the current "1.9.2". RVM has a nice <code>upgrade</code> command that will let you install and copy your gems between versions of Ruby, so try <code>rvm upgrade 1.9.2-p188 1.9.2-p180</code>, then try running your app and see if SQLite is still being uncooperative.</li> <li>Your version of Ruby 1.9.2-p188 is compiled as 32-bit. Your <code>rvm info</code> shows "<code>i386-apple-darwin10.0</code>" in several places. A 64-bit Ruby would show: "<code>x86_64-darwin10.6.0</code>". You can easily recompile a Ruby version by telling RVM to <code>uninstall</code> it, then <code>install</code> it again, i.e. <code>rvm uninstall 1.9.2p188 &amp;&amp; rvm install 1.9.2p188</code> should do it. Then you'll need to rebuild your gems that have native drivers: <code>gem pristine --all</code> will rebuild all installed gems.</li> </ul>
 

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