On Sat, Jul 24, 2010 at 06:46:27PM -0000, MacRuby wrote: > #810: MacRuby can't install the nokogiri of rubygems. > ----------------------------------+----------------------------------------- > Reporter: watson1...@… | Owner: lsansone...@… > Type: defect | Status: closed > Priority: blocker | Milestone: > Component: MacRuby | Resolution: invalid > Keywords: | > ----------------------------------+----------------------------------------- > Changes (by lsansone...@…): > > * status: new => closed > * resolution: => invalid > > > Comment: > > It's a bug of Nokogiri (in Ruby 1.9, #include <ruby/st.h> must be used > instead of #include <st.h>. I reported this problem a few months ago to > the maintain who fixed it in top-of-tree, but it still has not been > released as a new gem yet.
Actually, we've fixed this months ago: http://github.com/tenderlove/nokogiri/commit/602720e6 The problem is that MacRuby doesn't have a HAVE_RUBY_ENCODING_H constant. In Ruby 1.8, the correct thing is to include "st.h". In 1.9, we must include "ruby/st.h". The way we determine which to use is by looking for HAVE_RUBY_ENCODING_H. HAVE_RUBY_ENCODING_H is defined in 1.9, but not in 1.8. I'm happy to add an extra switch to the header file if there is something special I can do for MacRuby. -- Aaron Patterson http://tenderlovemaking.com/
pgpcqMqzWZ7pA.pgp
Description: PGP signature
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel