With Ruby 1.8, require 'rubygems' is needed in Avro Ruby code. I have gone through a pain to figure this out.