Problem installing sqlite3-ruby!

前端 未结 7 2054
再見小時候
再見小時候 2020-12-19 03:44

I\'m having issues installing the sqlite3-ruby gem on crunchbang linux. After googling the past few hours and following several people with the same problem, I still haven\

7条回答
  •  萌比男神i
    2020-12-19 04:08

    This is due to extconf.rb picking up your old 3.5.9 library when testing for functions before putting together the Makefile.

    One solution to cut this short is to apt-get remove sqlite3 and retry

    sudo gem install sqlite3-ruby -- --with-sqlite3-dir=$HOME/sqlite
    

    This may save you from incompatibilities if you want to use sqlite3 command line binary.

    Another solution is to copy your new ~/sqlite/lib/libsqlite3.a into the build directory of your gem (see gem env, something like gems/sqlite3-ruby-1.3.1/ext/sqlite3) and retry

    sudo gem install sqlite3-ruby
    

    The test should pick up your new library now and install fine.

提交回复
热议问题