I tried doing this
gem uninstall sqlite3-ruby
gem uninstall sqlite3
Then I performed find ~/ | grep mkmf.log
And it removed any sqlite3 directory I had on the system.
But it still is in my bin. Anyone know a more professional way of removing sqlite3?
I say this because I've been dealing with this error for five days now :
sqlite3-ruby only supports sqlite3 versions 3.6.16+, please upgrade!
*** extconf.rb failed ***
I have completely gutted my server three times now and reinstalled every single application and sqlite3 included on to it again and again. But it still thinks its an old header.
Thanks!
I recommend that you use
rvm
andbundler
to manage your gems and gem dependencies. I never install any gems system-wide, specially on a Mac where it can get really messy dealing with system-wide gems.It's easy to get rvm + bundler up and started.
First, install rvm (you must have git).
Setup rvm
Then, install your ruby via rvm
Switch to your ruby compiler
Create your gemset to easily switch to different gem versions.
Use your gemset
Install bundler
Create a Gemfile and install your gems.
About your original post, if it's a system install, you can check it by running
which sqlite3_ruby
and if it returns/usr/bin/sqlite3_ruby
then you should prependsudo
togem uninstall
command.