New to Rails on Windows and bundle install dies building the sqlite3 gem with native extension errors pages long, mentioning missing headers and failed compilation in cmd.
What is the actual working setup for sqlite3 with Rails on Windows?
New to Rails on Windows and bundle install dies building the sqlite3 gem with native extension errors pages long, mentioning missing headers and failed compilation in cmd.
What is the actual working setup for sqlite3 with Rails on Windows?
The wall you hit is the native extension: the sqlite3 gem compiles C code against SQLite's headers during install, and a Windows machine without the build toolchain and those headers produces exactly your pages of errors. The working setup in order:
Era honest footnote: Rails on Windows fights this fight repeatedly across gems and the paths of least resistance run through either the Devkit discipline above applied consistently or developing inside a Linux environment on the Windows machine, a VM in this era, where the native gem story is simply quieter. The sqlite3 fix above stands either way, first battle won.
Reinstalled Ruby with the Devkit variant and gem install sqlite3 just worked, the entire drama dissolved by the right installer. The verify one liner then bundle then db:create all green. First Rails page rendering on Windows at last.