First time I totally had to delete all ruby and Rails because of this problem. How to solve it well?
The message is:
Could not find gem ‘sqlite3-ruby (>= 0, runtime)’ in any of the gem sources.
Try running bundle install
I have Ubuntu Linux.
ruby -v = 1.9.2p0
gem -v = 1.3.7
rails -v = error message again, 2 hours ago it was “rails 3”
If I type “rails my_app” it does not work, if I type "rails new my:app, it works, which means Rails 3 is running and working well if I want to create an app, but does not, if I want to use “rails server”.
I googled it, unfortunately not any updated and linuxbased answer which I could trust in.
I found my Gemfile in the new Rails app, and commented out this line:
gem 'sqlite3-ruby', :require => 'sqlite3', and then I tried budnle
install.
Result was:
Installing sqlite3-ruby (1.3.1) with native extensions /usr/local/lib/
site_ruby/1.8/rubygems/installer.rb:483:in `build_extensions': ERROR:
Failed to build gem native extension.
(Gem::Installer::ExtensionBuildError)
/usr/bin/ruby1.8 extconf.rb
extconf.rb:3:in `require': no such file to load -- mkmf (LoadError)
from extconf.rb:3
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/sqlite3-
ruby-1.3.1 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.3.1/ext/
sqlite3/gem_make.out
/usr/bin/ruby1.8 extconf.rb
extconf.rb:3:in `require': no such file to load -- mkmf (LoadError)
from extconf.rb:3
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/sqlite3-
ruby-1.3.1 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.3.1/ext/
sqlite3/gem_make.out
So I'm afraid the same. Why does it still looking for my gems under
1.8 if I have 1.9? How to use this mkmf file?