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
- gem install -r libxml-ruby
- 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
- goto /var/lib/gems/1.8/gems/libxml-ruby-0.x.x
- run 'ruby ext/libxml/extconf.rb'. This generates the makefile
- run 'make' and then 'make install'
- go back to your test program and run it. Hopefully everything should be fine.