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