views:

63

answers:

0

Hey,

I'm getting error while trying to install sqlite3-ruby gem:

gem install sqlite3-ruby-1.3.1.gem 
Building native extensions.  This could take a while...
ERROR:  Error installing sqlite3-ruby-1.3.1.gem:
        ERROR: Failed to build gem native extension.

/usr/bin/ruby.exe extconf.rb


Gem files will remain installed in /usr/lib/ruby/gems/1.9.1/gems/sqlite3-ruby-1.3.1 for inspection.
Results logged to /usr/lib/ruby/gems/1.9.1/gems/sqlite3-ruby-1.3.1/ext/sqlite3/gem_make.out

Same using:

gem install sqlite3-ruby-1.3.1

And that worked:

gem install sqlite3-ruby-1.3.1-x86-mswin32-60.gem

However I discovered I had had installed sqlite-ruby-1.2.5

Well my question is how 'gem' is installing these things? Why it can't choose sqlite3-ruby-1.3.1-x86-mswin32-60.gem version automatically. Does 'gem' is aware of running on linux or windows? What is native extension for it and why it is failing to install predownloaded sqlite3-ruby-1.3.1.gem

Thanks in advance