I am new to Ruby. Try out a web application, but when I tried to access the page, it has the following error (see ERROR 1 below). So I thought I may have not installed "sqlite3" and tried downloading "sqlite_3-6-4.zip" and "sqlitedll_3-6-4.zip", unzipped it and place it in ruby''s bin directory. Then I run the command: gem install sqlite3-ruby But found myself encounter the another error shown below (see ERROR 2). Any help would by wonderful ============================== ERROR 1 ========================================MissingSourceFile (no such file to load -- sqlite3): C:/Programs2/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `g em_original_require'' C:/Programs2/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `r equire'' .......... .......... C:/Programs2/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `r equire'' script/server:3 Rendering C:/Programs2/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_c ontroller/templates/rescues/layout.erb (internal_server_error) ============================== ERROR 1 ======================================== ============================== ERROR 2 ========================================C:/Programs2/Ruby>gem install sqlite3-ruby Building native extensions. This could take a while... ERROR: Error installing sqlite3-ruby: ERROR: Failed to build gem native extension. C:/Programs2/Ruby/bin/ruby.exe extconf.rb install sqlite3-ruby checking for fdatasync() in rt.lib... no checking for sqlite3.h... no nmake ''nmake'' is not recognized as an internal or external command, operable program or batch file. Gem files will remain installed in C:/Programs2/Ruby/lib/ruby/gems/1.8/gems/sqli te3-ruby-1.2.4 for inspection. Results logged to C:/Programs2/Ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/ex t/sqlite3_api/gem_make.out ============================== ERROR 2 ========================================-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
This is a known problem. Hope the link below helps: http://domhackers.blogspot.com/2008/09/sqlite3-ruby-gem-on-windows.html Cheers, Mohit. 11/3/2008 | 2:04 PM. Hammer Ting wrote:> I am new to Ruby. Try out a web application, but when I tried to access > the page, it has the following error (see ERROR 1 below). > > So I thought I may have not installed "sqlite3" and tried downloading > "sqlite_3-6-4.zip" and "sqlitedll_3-6-4.zip", unzipped it and place it > in ruby''s bin directory. Then I run the command: > > gem install sqlite3-ruby > > But found myself encounter the another error shown below (see ERROR 2). > > Any help would by wonderful > > ============================== ERROR 1 > ========================================> MissingSourceFile (no such file to load -- sqlite3): > C:/Programs2/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > `g > em_original_require'' > C:/Programs2/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > `r > equire'' > .......... > .......... > C:/Programs2/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > `r > equire'' > script/server:3 > > Rendering > C:/Programs2/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_c > ontroller/templates/rescues/layout.erb (internal_server_error) > ============================== ERROR 1 > ========================================> > > > ============================== ERROR 2 > ========================================> C:/Programs2/Ruby>gem install sqlite3-ruby > Building native extensions. This could take a while... > ERROR: Error installing sqlite3-ruby: > ERROR: Failed to build gem native extension. > > C:/Programs2/Ruby/bin/ruby.exe extconf.rb install sqlite3-ruby > checking for fdatasync() in rt.lib... no > checking for sqlite3.h... no > > nmake > ''nmake'' is not recognized as an internal or external command, > operable program or batch file. > > > Gem files will remain installed in > C:/Programs2/Ruby/lib/ruby/gems/1.8/gems/sqli > te3-ruby-1.2.4 for inspection. > Results logged to > C:/Programs2/Ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/ex > t/sqlite3_api/gem_make.out > ============================== ERROR 2 > ========================================>--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thanks! It works! Mohit Sindhwani wrote:> This is a known problem. Hope the link below helps: > http://domhackers.blogspot.com/2008/09/sqlite3-ruby-gem-on-windows.html > > > Cheers, > Mohit. > 11/3/2008 | 2:04 PM.-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---