check your shebang line, it should be
"#! <path_to_your_ruby VM i.e. /usr/bin/ruby>"

-- 
Posted via http://www.ruby-forum.com/.