Question : Rails-Ruby no such file to load -- sqlite3

Hello
Just started playing with rails - very first app - hello world.
when opening a browser  - URL http://localhost:3000/say/hello - to run this app I get the following error message in the browser page .... no such file to load -- sqlite3
This error occurred while loading the following files:
   sqlite3

I have attached a log file from the shell window which may throw some light on this problem.

Regards
Phil

Answer : Rails-Ruby no such file to load -- sqlite3

It depends on where you are running Ruby, e.g on Debian you have to install

libsqlite3-ruby e.g with apt-get  (apt-get install libsqlite3-ruby)

You should have installed gem along with ruby, than a
gem install sqlite3-ruby should install all what is needed for sqlite3

The homepage for sqlite3-ruby is at:
http://sqlite-ruby.rubyforge.org/sqlite3/faq.html

and here someone wrote about his troubles with sqlite3 on windows:
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/193641

With best regards
Friedrich

Random Solutions  
 
programming4us programming4us