Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread
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


Thread View

Thread Author Date
gem ruby-sqlite3 install errorponto ponto2008-11-12 21:24
      RE: gem ruby-sqlite3 install errorMatthieu Brucher2009-03-03 10:09
            RE: gem ruby-sqlite3 install errorMatthieu Brucher2009-03-03 10:44
                  RE: gem ruby-sqlite3 install errorEd Ruder2009-06-26 04:57

Post a followup to this message