do_sqlite3 - how to acquire & install latest version?

Apparently the reason I can’t use sqlite3 with Mac OS X is a bad version of do_sqlite3. Could someone please spell out exactly what a newbie needs to do to grab & reinstall the latest version?



Download the source from rubyforge:

Extract it and then cd into the extracted directory and run:

ruby setup.rb

Hope this helps.


Perfect! Thanks very much.


Glad it worked. I was stuck in the same predicament a few weeks back
and after going around in circles hit upon the solution.


I replied too soon, I still get the same error:

MissingSourceFile in HomeController#index

no such file to load -- sqlite3

Hmmm. Weird. Do you have the sqlite3 gem installed?

sudo gem install sqlite3-ruby

Sheldon F.

Yes, and I reinstalled it as you suggested, but still no luck :frowning: Maybe
I'll just switch to mysql for the time being...

bash-3.2$ sudo gem install sqlite3-ruby
Building native extensions. This could take a while...
Successfully installed sqlite3-ruby-1.2.4
1 gem installed
Installing ri documentation for sqlite3-ruby-1.2.4...
Installing RDoc documentation for sqlite3-ruby-1.2.4...

Looks like the problem has gone away. I restarted the web server and
it seems to now work fine. Go figure...

Thanks very much for your help.