From: Glen Holcomb Date: 2008-07-10T22:23:25+09:00 Subject: Re: Error using sqlite gems ------=_Part_14601_33255875.1215696370911 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Thu, Jul 10, 2008 at 3:24 AM, Andrea Aaa wrote: > Why i can't use sqlite3-ruby gems? it gives me this error: > > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require': no such file to load -- sqlite3-ruby (LoadError) > > but i installed it! by the way, when it asks me wich version of gem I > want to install: > > 1. sqlite3-ruby 1.2.2 (mswin32) > 2. sqlite3-ruby 1.2.2 (ruby) > 3. sqlite3-ruby 1.2.1 (mswin32) > 4. sqlite3-ruby 1.2.1 (ruby) > > if I choose 1 or 3, it works but when I try to use them i get the error > above, while if i choose 2 or 4, it gives me this error: > > > Building native extensions. This could take a while... > ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError) > ERROR: Failed to build gem native extension. > > ruby extconf.rb install sqlite3-ruby --no-rdoc --no-ri > --include-dependencies --version > 0 > > Gem files will remain installed in > c:/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.2 for inspection. > Results logged to > > c:/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.2/ext/sqlite3_api/gem_make.out > > I really don't know what to do, also becaus I'm new with ruby.... > > Thanks for help > -- > Posted via http://www.ruby-forum.com/. > > From that first error message I would guess your require line is wrong. You will need require 'sqlite3' not require 'sqlite3-ruby' Hope that helps. -- "Hey brother Christian with your high and mighty errand, Your actions speak so loud, I can't hear a word you're saying." -Greg Graffin (Bad Religion) ------=_Part_14601_33255875.1215696370911--