I’m running a Ruby development environment on my computer and have MySQL
& SQLite through MAMP. I am unable to install the sqlite gem, and get
the following error:
Building native extensions. This could take a while…
ERROR: Error installing sqlite:
ERROR: Failed to build gem native extension.
extconf.rb install sqlite
checking for main() in -lsqlite… no
checking for sqlite.h… no
*** 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:
Gem files will remain installed in
/Library/Ruby/Gems/1.8/gems/sqlite-2.0.1 for inspection.
Results logged to
I installed the MySQL gem via these instructions:
but am unable to translate these MySQL directions to SQLite.
Any help would be greatly appreciated.