sqlite3-ruby gem: Failed to build gem native extension

后端 未结 6 1079
眼角桃花
眼角桃花 2020-12-02 20:59

Update: Check out this follow-up question: Gem Update on Windows - is it broken?


On Windows, when I do this:

gem install sqlit         


        
6条回答
  •  独厮守ぢ
    2020-12-02 21:48

    first from sqlite.org(http://www.sqlite.org/download.html)
    download ->
    Precompiled Binaries: sqlite-dll-win32-x86-3071700.zip
    and Source Code: sqlite-autoconf-3071700.tar.gz
    then extract as:

    -include
        --sqlite3.h
        --sqlite3ext.h
    -lib
        --shell.c
        --sqlite3.c
        --sqlite3.def
        --sqlite3.dll
    

    last install gem like:

    gem install sqlite3 --platform=ruby -- --with-sqlite3-include=path\to\include  
     --with-sqlite3-lib=path\to\lib --no-ri --no-rdoc
    

    Good luck!

提交回复
热议问题