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\
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.