Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Error on gem update sqlite3-ruby

Hi,
I followed the instructions on upgrading rails to 2.0.2 per http://developer.apple.com/tools/developonrailsleopard.html
everything went fine until I tried to update sqlite3-ruby at which point I received an error installing sqlite3-ruby:

ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb update sqlite3-ruby
can't find header files for ruby.

This update was applied following the Security Update 2008-002. Rails 1.2.6 was and is running on mongrel server on dedicated site. The gem list shows rails updated to 2.0.2 and sqlite3-ruby at 1.2.1.

Same result after restarting server 10.5.2.

What actions do I take now or what am I missing? Does mongrel have to come offline? Your assistance appreciated.

Harry

mini 1.83 core 2 duo 2GB RAM + 500GB ext drive, Mac OS X (10.5.1), iMac G5, PB G4 (3)

Posted on Mar 22, 2008 3:58 PM

Reply
2 replies

Mar 22, 2008 8:26 PM in response to harry-pmsi

Silly me. I see a folder in the dock with an xcode icon on startup, so I thought xcode was installed. Folder changes to utilities I think after the server is up and running. Anyway, Xcode Tools has to be installed for the upgrade to sqlite3-ruby to work. The headers are located with Xcode Tools.
I found the answer at http://trac.macosforge.org/projects/ruby/wiki/Troubleshooting.
Following the installation of Xcode Tools to /Developer I was able to
sudo gem update sqlite3-ruby
and all went according to plan.

BTW - I noticed there are a ton of items in the Xcode Tools install.

Once again, a little systems viewpoint would help in keeping the pieces tightly wrapped.

Hope this helps someone else,
Harry

Error on gem update sqlite3-ruby

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.