sqlite3-ruby can't make on rvm 1.8.7

后端 未结 4 461
我寻月下人不归
我寻月下人不归 2020-12-29 11:38

Upgrading to Rails 3 by starting with RVM 1.8.7. OSX 10.5.8

Output:
josh-crewss-macbook:~ joshcrews$ gem install sqlite3-rubyBuilding native extensions.  Th         


        
4条回答
  •  遥遥无期
    2020-12-29 12:15

    If you already have the sqlite3 macport or brew installed, and you still have the issue, you might have to specify build options when installing the gem.

    Example:

    gem install sqlite3 -v 1.3.5 -- --with-sqlite3-include=/opt/local/include --with-sqlite3-lib=/opt/local/lib
    

    If you're on homebrew, use /usr/local instead of /opt/local .

    To configure bundler to remember the build options for sqlite3 (run "bundle help config" for more info):

    bundle config build.sqlite3 --with-sqlite3-include=/opt/local/include --with-sqlite3-lib=/opt/local/lib
    

提交回复
热议问题