Hi, dispatch.fcgi does: require ''fcgi'' FCGI.each_cgi { |cgi| Dispatcher.dispatch(... Because each_cgi is only in fcgi.rb, this is dependant on finding fcgi.rb first. Rub 1.8.2 shows the following $LOAD_PATH /usr/lib/ruby/1.8/i386-linux-gnu /usr/lib/ruby/site_ruby/1.8/i686-linux-gnu /usr/lib/ruby/site_ruby/1.8 /usr/lib/ruby/site_ruby/1.8/i686-linux /usr/lib/ruby/site_ruby /usr/lib/ruby/1.8 /usr/lib/ruby/1.8/i686-linux This means that fcgi.so is found first, and you get: ./dispatch.fcgi:7: undefined method `each_cgi'' for FCGI:Class (NoMethodError) It''s therefore better to require ''fcgi.rb'' explicitly. Cheers, Han Holl