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.
4 comments:
Thanks so much for this post. It basically saved my day while I was in a rush to upgrade my production server.
ditto, huge help. Pretty annoying that this isn't fixed in the libxml-ruby source. I'm installing on CentOS and hit the exact same problem.
Awesome...so awesome... thanks a lot... ive been searching it from 2 days..u make my day
Hi! I did it exactly as instructed and succeded in installing libxml but it didn't fix my problem. Pls post any alternative soln if any. Thanks
Post a Comment