Sqlite3.h is missing

Downloaded and installed RoR, installed sqlite, have sqlite3 and sqlite3-ruby in a folder in my PATH. When I try
rails new First-Ruby
I get the error

> C:/RailsInstaller/Ruby2.2.0/bin/ruby.exe -r
> ./siteconf20190210-14816-oxpk3k.rb extconf.rb
> checking for sqlite3.h... no
> sqlite3.h is missing. Install SQLite3 from http://www.sqlite.org/ first.
> *** extconf.rb failed ***
> Could not create Makefile due to some reason, probably lack of necessary
> libraries and/or headers.  Check the mkmf.log file for more details.  You may
> need configuration options.
> 
> Provided configuration options:
>         --with-opt-dir
>         --without-opt-dir
>         --with-opt-include
>         --without-opt-include=${opt-dir}/include
>         --with-opt-lib
>         --without-opt-lib=${opt-dir}/lib
>         --with-make-prog
>         --without-make-prog
>         --srcdir=.
>         --curdir
>         --ruby=C:/RailsInstaller/Ruby2.2.0/bin/$(RUBY_BASE_NAME)
>         --with-sqlcipher
>         --without-sqlcipher
>         --with-sqlite3-config
>         --without-sqlite3-config
>         --with-pkg-config
>         --without-pkg-config
>         --with-sqlcipher
>         --without-sqlcipher
>         --with-sqlite3-dir
>         --without-sqlite3-dir
>         --with-sqlite3-include
>         --without-sqlite3-include=${sqlite3-dir}/include
>         --with-sqlite3-lib
>         --without-sqlite3-lib=${sqlite3-dir}/lib
> 
> extconf failed, exit code 1
> 
> Gem files will remain installed in
> C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/sqlite3-1.4.0 for
> inspection.
> Results logged to
> C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/extensions/x86-mingw32/2.2.0/sqlite3-1.4.0/gem_make.out
> 
> An error occurred while installing sqlite3 (1.4.0), and Bundler cannot continue.
> Make sure that `gem install sqlite3 -v '1.4.0'` succeeds before bundling.
1 Like

getting the same error… running on Windows 64. Following all instructions online.

How can I fix this?

I think the best way for solve it - install Linux :stuck_out_tongue: