Nick Sardo is quite correct for the Windows environment. Anatoly Mikhailov has it right for the Linux environment. Apparently sqlite3-ruby (currently -v=1.2.4) does not have the Windows binary, but it's prior release installs perfectly. Thanks Nick, Oliver, and Anatoly! Very helpful.
gem install sqlite3-ruby -v=1.2.3 Anatoly Mikhailov wrote: > This way help me to fix the problem! Just install developer headers for > provide compile the library from sources. > > SQLite3: > Without the -d option, rails will default to sqlite. > To install SQLite3: > ~$ sudo apt-get install libsqlite3-0 libsqlite3-dev > ~$ sudo gem install sqlite3-ruby > > > Nick Sardo wrote: >> Having Cygwin installed or not isn't the problem. There isn't a binary >> for windows in the new sqlite3 gem, that is what's causing the problem. >> You'll need to install a prior version. >> >> Try this: >> >> gem install sqlite3-ruby -v=1.2.3 >> >> That should solve your problem. >> >> >> >> Oliver Robinson wrote: >>> Have just reinstalled ruby 1.8.6-26 on windows. Trying to install >>> sqlite3-ruby it seems to be trying to compile the gem rather than >>> offering to install the windows binaries from a list of options. Seems >>> like ruby/gems thinks does not recognise the operating system as >>> windows. Any ideas? >>> >>> C:\>gem install sqlite3-ruby >>> Building native extensions. This could take a while... >>> ERROR: Error installing sqlite3-ruby: >>> ERROR: Failed to build gem native extension. >>> >>> /usr/bin/ruby.exe extconf.rb install sqlite3-ruby >>> checking for sqlite3.h... no >>> >>> make >>> make: *** No rule to make target `ruby.h', needed by >>> `sqlite3_api_wrap.o'. Stop >>> . -- 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---