| Message: 83044 |
 |
BY: Ed Ruder (ed_ruder) DATE: 2009-06-26 04:57 SUBJECT: RE: gem ruby-sqlite3 install error Thanks, Matthieu--your solution worked for me, too.
I had battled the problem for several hours, without success. I downloaded the source, went to the ext/sqlite3_api dir, executed ' sudo ruby extconf.rb --with-sqlite3-dir=/usr/local/src/sqlite-3.6.15' (directory containing the source that I compiled sqlite3 from), ran 'make', then 'sudo make install', then 'cd ../..' (to get to the root of the sqlite3-ruby source tree), then 'sudo ruby setup.rb config', 'sudo ruby setup.rb setup', 'sudo ruby setup.rb install'. From that point, I could run rake tasks, and use a sqlite3 DB from my Rails apps.
I could also run 'sudo gem install sqlite3-ruby', to update to the latest version, successfully. (I had installed older versions of sqlite3-ruby, trying to get something to work.) Apparently, once I had rebuilt the underlying C library that sqlite3-ruby depends on, later versions continued to use it.
I'm on OS X 10.5.7, btw.
Thanks, again--it was a frustrating few hours trying to get sqlite3 to work!
Ed | |