Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby Installing a Ruby Development Environment Installing a Ruby Development Environment Installing Ruby on Windows

Hello, I would like some help installing sqlite3 on this tutorial.

I am getting the following error,

位 gem install sqlite3
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing sqlite3:
        ERROR: Failed to build gem native extension.

    C:/Ruby21/bin/ruby.exe 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:

extconf failed, exit code 1

Gem files will remain installed in C:/Ruby21/lib/ruby/gems/2.1.0/gems/sqlite3-1.3.9 for inspection.
Results logged to C:/Ruby21/lib/ruby/gems/2.1.0/extensions/x64-mingw32/2.1.0/sqlite3-1.3.9/gem_make.out

1 Answer

David Moore
David Moore
13,916 Points

Assuming you are on windows by your file path. If you are just starting out and don't have access to a mac or linux I would suggest nitrous.io to avoid the Windows fight. I know this does not address your specific question but based on past experience I think it is an option worth considering. The free option works fine for most starter stuff.