ruby - Cannot start a new rails server - sqlite.3h is missing -


i trying run rails server on ruby on windows 7 operating system. made new rails application when try run server following error:

d:\projects\rubyonrails>rails server => booting webrick => rails 3.2.13 application starting in development on http://0.0.0.0:3000 => call -d detach => ctrl-c shutdown server exiting d:/ruby200-x64/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/rubygems_integration.rb:214:in `block in replace_gem': please install sqlite3 adapter: `gem install activerecord-sqlite3-adapter` (sqlite3 not part of  bundle. add gemfile.) 

trying install activerecord-sqlite3-adapter:

d:\projects\rubyonrails>gem install activerecord-sqlite3-adapter error:  not find valid gem 'activerecord-sqlite3-adapter' (>= 0) in repository error:  possible alternatives: activerecord-jdbcsqlite3-adapter, activerecord-sqlserver-adapter, activerecord-bq-adapter, activerecord-simpledb-adapter, activerecord-mysql2-adapter 

after try install sqlite3 gem following error (i had install devkit able proceed step):

d:\projects\rubyonrails>gem install sqlite3 temporarily enhancing path include devkit... building native extensions.  take while... error:  error installing sqlite3: error: failed build gem native extension.  d:/ruby200-x64/bin/ruby.exe extconf.rb checking sqlite3.h... no sqlite3.h missing. install sqlite3 http://www.sqlite.org/ first. *** extconf.rb failed *** not create makefile due reason, lack of necessary libraries and/or headers.  check mkmf.log file more details.  may need configuration options. 

in system32 folder have sqlite3.dll, sqlite3.exe , sqlite export definition file.

also, sqlite3 seems working fine:

d:\projects\rubyonrails>sqlite3 sqlite version 3.7.16.2 2013-04-12 11:52:43 enter ".help" instructions enter sql statements terminated ";" sqlite> 

also, bundle date:

d:\projects\rubyonrails>bundle check gemfile's dependencies satisfied 

however in gemfile there no information version of sqlite3 gem , when put 1 server fails start:

source 'https://rubygems.org'  gem 'rails', '3.2.13'  # bundle edge rails instead: # gem 'rails', :git => 'git://github.com/rails/rails.git'  gem 'sqlite3' 

please help!

you need install sqlite3-ruby gem instead of sqlite3 only

go http://www.sqlite.org, , download sqlitedll under "precompiled binaries windows". extract file , put 2 files sqlite3.dll , sqlite3.def in ruby bin's directory, i.e., c:\ruby\bin. run "gem install sqlite3-ruby" install sqlite3-ruby gem. (try "gem install --version 1.2.3 sqlite3-ruby" if latest version not working)


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

javascript - Clean way to programmatically use CSS transitions from JS? -

android - send complex objects as post php java -