Update: The problem has been fixed in version 1.0.0.
Recently I have tried to update my gems and I have noticed that things just stopped to a grinding halt when it got to libxml-ruby. It appears that the 0.9.9 spectacularly barfed all over itself and it stopped other gems from being updated. Not good!
I started Googling for some answers but since the release has only 2 days I guess not that many people have run into it just yet.
I have found a repo with a patch:
http://github.com/tadman/libxml-ruby/tree/master
If you not paranoid you may do:
$ git clone git://github.com/tadman/libxml-ruby.git $ cd libxml-ruby $ ruby setup.rb $ rake gem $ sudo gem install admin/pkg/libxml-ruby-0.9.9.gem |
If you are paranoid then you would go to the install directory where the original gem broke:
$ cd /Library/Ruby/Gems/1.8/gems/libxml-ruby-0.9.9 $ cd ext/libxml |
Edit:
ruby_xml_html_parser_context.c
ruby_xml_parser_context.c
by inserting “extern” before “ID IO_ATTR;” statement.
After these files are updated
$ cd ../.. $ ruby setup.rb $ rake gem $ sudo gem install admin/pkg/libxml-ruby-0.9.9.gem |



March 7th, 2009 at 7:58 pm
I ran into this issue yesterday as well but opted for the simpler fix, reverting back to 0.9.8, didnt have anything requiring 0.9.9.
March 7th, 2009 at 9:32 pm
Reverting to 0.9.8 sounds really nice except it does not help when you want to run
$gem update
March 9th, 2009 at 6:18 am
[...] Fixing libxml-ruby 0.9.9 on Leopard OS X – This library appears to be causing some issues lately. [...]