You don't seem to have XCode and the developer libraries installed on your
machine.

http://guide.macports.org/chunked/installing.xcode.html

After you do that, you should have all the required libraries to compile
native gems.

Michael

On Tue, Nov 11, 2008 at 3:26 PM, Arun <[EMAIL PROTECTED]> wrote:

>
> sudo gem update --system updated rubygems but now I'm getting:
>
> -- cut here --
> ~ >sudo gem install merb
> Building native extensions.  This could take a while...
> ERROR:  Error installing merb:
>        ERROR: Failed to build gem native extension.
>
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
> extconf.rb install merb
> can't find header files for ruby.
>
>
> Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/
> do_sqlite3-0.9.6 for inspection.
> Results logged to /Library/Ruby/Gems/1.8/gems/do_sqlite3-0.9.6/ext/
> gem_make.out
> -- cut here --
>
> -Arun
> On Nov 10, 6:02 pm, "Michael D'Auria" <[EMAIL PROTECTED]>
> wrote:
> > Arun,
> > The fix for this seems to be upgrading rubygems:
> >
> > sudo gem update --system
> >
> > if that fails for some reason, which it did for me on my mac, do the
> > following instead:
> >
> > sudo gem install rubygems-update
> > sudo update_rubygems
> >
> > Then go ahead and try and install nokogiri again.
> >
> > Michael
> >
>  > On Mon, Nov 10, 2008 at 8:11 PM, Arun <[EMAIL PROTECTED]> wrote:
> >
> > > I tried installing Merb on my MacBook Pro with:
> >
> > > ruby 1.8.6 (2008-03-03 patchlevel 114) [universal-darwin9.0]
> >
> > > and got the following error:
> >
> > > -- cut here --
> > > ~ >sudo gem install merb
> > > Bulk updating Gem source index for:http://gems.rubyforge.org
> > > Building native extensions.  This could take a while...
> > > ERROR:  Error installing merb:
> > >        ERROR: Failed to build gem native extension.
> >
> > > rake RUBYARCHDIR=/Library/Ruby/Gems/1.8/gems/nokogiri-1.0.4/lib
> > > RUBYLIBDIR=/Library/Ruby/Gems/1.8/gems/nokogiri-1.0.4/lib
> > > (in /Library/Ruby/Gems/1.8/gems/nokogiri-1.0.4)
> > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
> > > 1.8/rubygems/open-uri.rb:101: warning: already initialized constant
> > > Options
> > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
> > > 1.8/rubygems/open-uri.rb:355: warning: already initialized constant
> > > StringMax
> > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
> > > 1.8/rubygems/open-uri.rb:416: warning: already initialized constant
> > > RE_LWS
> > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
> > > 1.8/rubygems/open-uri.rb:417: warning: already initialized constant
> > > RE_TOKEN
> > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
> > > 1.8/rubygems/open-uri.rb:418: warning: already initialized constant
> > > RE_QUOTED_STRING
> > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
> > > 1.8/rubygems/open-uri.rb:419: warning: already initialized constant
> > > RE_PARAMETERS
> > > can't find header files for ruby.
> > > rake aborted!
> > > Command failed with status (1): [/System/Library/Frameworks/
> > > Ruby.framework/...]
> > > /Library/Ruby/Gems/1.8/gems/nokogiri-1.0.4/rakefile:105
> > > (See full trace by running task with --trace)
> >
> > > Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/
> > > nokogiri-1.0.4 for inspection.
> > > Results logged to /Library/Ruby/Gems/1.8/gems/nokogiri-1.0.4/
> > > gem_make.out
> > > -- cut here --
> >
> > > What am I missing ?
> >
> > > -Arun
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to