Errors while updating gems

I’m new to Ruby, so please forgive me if this seems a tad bit obvious :slight_smile:

While updating my gems so I could get Rails 3.0, I got many of the
following errors (as in this example, it’s sqlite):

Updating sqlite3-ruby
Building native extensions. This could take a while…
ERROR: Error installing sqlite3-ruby:
ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
extconf.rb
mkmf.rb can’t find header files for ruby at
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h

Gem files will remain installed in
/Library/Ruby/Gems/1.8/gems/sqlite3-ruby-1.3.1 for inspection.
Results logged to
/Library/Ruby/Gems/1.8/gems/sqlite3-ruby-1.3.1/ext/sqlite3/gem_make.out


Everything relating to Rails seems to work as far as I can see… for
now…

However, I’m just wondering what these mean and why I would get them?

Thanks!

Best,

Eric

On Sep 14, 2010, at 22:27 , Eric R. wrote:

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
extconf.rb
mkmf.rb can’t find header files for ruby at
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h

Quick preliminary: do you have apple’s developer tools installed? They
come free with your machine … usually on the Extras DVD. You can also
download it (big 1 gig download) for free from developer.apple.com.

Ryan D. wrote:

On Sep 14, 2010, at 22:27 , Eric R. wrote:

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
extconf.rb
mkmf.rb can’t find header files for ruby at
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h

Quick preliminary: do you have apple’s developer tools installed? They
come free with your machine … usually on the Extras DVD. You can also
download it (big 1 gig download) for free from developer.apple.com.

Good preliminary. I installed Apple’s developer tools and problem
solved!

You can now close this ticket :wink:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs