From: Priyank Shah on
Hi,

I getting problem when install Nokogiri on mac snow leopard.

I get following errors :


ERROR: Error installing nokogiri:
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/nokogiri-1.4.3.1 for inspection.
Results logged to
/Library/Ruby/Gems/1.8/gems/nokogiri-1.4.3.1/ext/nokogiri/gem_make.out


Reply as soon as possible,

Thanks,
Priyank Shah
--
Posted via http://www.ruby-forum.com/.

From: Priyank Shah on


I already install libxml2 libxslt so that is not the issue so let me
know if any another reason for that.
--
Posted via http://www.ruby-forum.com/.

From: Peter Hickman on
Look in /Library/Ruby/Gems/1.8/gems/nokogiri-1.4.3.1/ext/nokogiri/gem_make.out
like it told you and see what it says there.

From: Luis Lavena on
On Aug 3, 8:36 am, Priyank Shah <shahpriyan...(a)gmail.com> wrote:
> Hi,
>
> I getting problem when install Nokogiri on mac snow leopard.
>
> I get following errors :
>
> ERROR:  Error installing nokogiri:
>                 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/nokogiri-1.4.3.1 for inspection.
> Results logged to
> /Library/Ruby/Gems/1.8/gems/nokogiri-1.4.3.1/ext/nokogiri/gem_make.out
>
> Reply as soon as possible,
>

Do you have Xcode installed?

Please report an issue to Nokogiri Issue tracker (search first):

http://github.com/tenderlove/nokogiri/issues

Please include the contents of gem_make.out and more details about
your environment so developers can help you with the issue.

--
Luis Lavena