sqlite3 gem fails to install

前端 未结 4 1402
臣服心动
臣服心动 2020-12-03 03:21

I\'m trying to install the \"sqlite3-ruby\" gem (or the \"sqlite3\" gem) on OS X 10.6. I\'m using ruby-1.9.2 and I currently get the following:

 $ sqlite3 --         


        
4条回答
  •  温柔的废话
    2020-12-03 04:08

    I was following the Rails3 in Action book with rvm using ruby 1.9.2.p180 and rails 3.1.0.rc6 using Mac OS X 10.5.8 (Leopard) and when I ran:

    rake cucumber:ok
    

    I got:

    Please install the sqlite3 adapter: `gem install activerecord-sqlite3-adapter` (can't activate sqlite3 (~> 1.3.4, runtime), already activated sqlite3-1.3.3. Make sure all dependencies are added to Gemfile.) 
    

    I then did:

    gem install sqlite3 -- --with-sqlite3-dir=/opt/local
    

    Followed by:

    bundle install
    

    Hopefully, I will find my own answer on the Internet when sqlite 1.3.5 is required.

提交回复
热议问题