I’m new to OS X. I’ve been messing with Rails for about a year.
I’ve cloned my rails app using git. script/server starts, and I get an
error in my browser about sqlite3.
So, I try to install sqlite-ruby gem and I fail as follows:
[lostsync@alice ~/projects/motleylane-deploy]$ sudo gem install
Building native extensions. This could take a while…
ERROR: Error installing sqlite-ruby:
ERROR: Failed to build gem native extension.
/usr/local/bin/ruby extconf.rb install sqlite-ruby
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:
/* snipped */
Gem files will remain installed in
/usr/local/lib/ruby/gems/1.8/gems/sqlite-ruby-2.2.3 for inspection.
Results logged to
[lostsync@alice ~/projects/motleylane-deploy]$ which sqlite3
I cannot figure this out and Google is not turning up much help.