Ruby Camping Gem?
Posted by: randomdan
Posted on: 2007-02-28 17:29:00
Hi,
Has anyone managed to get the ruby camping framework running on DreamHost?
I've checked that the camping gem (and all it's dependencies) are installed correctly. I'm able to load the gem when I ssh in, but when I try to do the same in a cgi script (see below), I get an internal server error. If I change "require camping" to a different gem (for example gruff) than the cgi loads correctly.
Any suggestions? Am I missing something obvious?
Thanks,
Dan
==== script ====
#! /usr/bin/ruby
require 'rubygems'
require 'camping' # doesn't work
require 'gruff' # does work
puts "Content-Type: text/html"
puts
puts "<html>"
puts "<body>"
puts "<h1>Hello World</h1>"
puts "</body>"
puts "</html>"
===============