I have a fresh installation of Leopard on my laptop. When I ran “sudo
gem update --system” it seemed to wipe out all of my gems. Weird. I
was able to reinstall with “sudo gem install rails --include-
dependencies” but I can’t get the sqlite3-ruby gem to install.
This is what I get:
bash-3.2$ sudo gem install sqlite3-ruby
Password:
Bulk updating Gem source index for: http://gems.rubyforge.org
Select which gem to install for your platform (universal-darwin9.0)
- sqlite3-ruby 1.2.1 (mswin32)
- sqlite3-ruby 1.2.1 (ruby)
- sqlite3-ruby 1.2.0 (mswin32)
- sqlite3-ruby 1.2.0 (ruby)
- Skip this gem
- Cancel installation
2
Building native extensions. This could take a while…
ERROR: While executing gem … (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.
ruby extconf.rb install sqlite3-ruby
checking for sqlite3.h… yes
checking for sqlite3_open() in -lsqlite3… no
make
make: *** No rule to make target ruby.h', needed by
sqlite3_api_wrap.o’. Stop.
Gem files will remain installed in /Library/Ruby/Gems/gems/sqlite3-
ruby-1.2.1 for inspection.
Results logged to /Library/Ruby/Gems/gems/sqlite3-ruby-1.2.1/ext/
sqlite3_api/gem_make.out
bash-3.2$
I have Xcode tools installed and everything. How can I get this
working? I need to get this working as soon as I can.
Thanks.