I am trying to install rails, by following instructions that I found online and also instructions that I found in the book Beginning Rails 4. I thought I had installed everything, and managed to create a new Rails application. Here are my commands:
rails new blog
rake db:create
Then I get an error:
rake aborted!
LoadError: cannot load such file -- sqlite3/sqlite3_native
I've been reading for about two hours trying to figure out what this is. I think it might have something to do with multiple ruby installations and/or location of gems.
$ which ruby
/usr/bin/ruby
$ which gem
/usr/bin/gem
$ which rake
/usr/local/bin/rake
$ which sqlite3
~/anaconda/bin/sqlite3
$ echo $PATH
/home/user/anaconda/bin:/home/user/anaconda/bin:/home/user/anaconda/bin:/home/user/anaconda/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/home/user/.local/bin:/home/user/bin
Any idea how I can solve this issue?
Here is some additional info:
rails --version
Warning: You're using Rubygems 2.0.14 with Spring. Upgrade to at least Rubygems 2.1.0 and run `gem pristine --all` for better startup performance.
Rails 4.2.4
ruby --version
ruby 2.0.0p598 (2014-11-13) [x86_64-linux]
sqlite3 --version
3.8.4.1 2014-03-11 15:27:36 018d317b1257ce68a92908b05c9c7cf1494050d0