Sunday, February 24, 2008

libxml ruby gem installation issues

Though as much as I hate dealing with the verbose xml format, xml has become so ubiquitous that one can no longer ignore it. Hence I decided to play around a little with xml and ruby on my ubuntu 7.10(Gutsy Gibbon). The most obvious and easier way to deal with xml on ruby is using rexml. However, if performance is your need then one will have to use the ruby bindings to the libxml library (which I guess explains the performance).

However as I installed gem and ran a sample test program, the ruby interpreter shouted back

/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- libxml_so (LoadError)

After searching on the net, got to know that the library 'libxml_so.so' is indeed generated during gem installation but not copied on the target folder. Hence follow the following procedure to avoid the issues
  1. gem install -r libxml-ruby
  2. Write some sample program (just include ' require xml/libxml', no need for any actual api calls). If this fails pointing to libxml_so.so, then follow the next steps. Else you are good to go
  3. goto /var/lib/gems/1.8/gems/libxml-ruby-0.x.x
  4. run 'ruby ext/libxml/extconf.rb'. This generates the makefile
  5. run 'make' and then 'make install'
  6. go back to your test program and run it. Hopefully everything should be fine.

Monday, February 18, 2008

Couple of thought provoking videos... to ponder about... I need not add anything else.






Wednesday, February 06, 2008

DevCamp is here

Along the lines of Barcamp, DevCamp is another unconference that is being organised on 9th Feb. However this is more focused towards the software development community. This is the first DevCamp session and will be held at ThoughtWorks office at Bangalore. The venue and session details are on the DevCamp wiki page.

The number of registrations have already exceeded the planned capacity and there are quite a few interesting sessions. Martin Fowler will be attending though there is no idea yet as to what his session is about.