ImageScience and FreeImage problems

Anyone gotten ImageScience to work on DreamHost? I think I’m having a problem with Rails because I cannot install FreeImage and image_science/ruby_inline is going bellyup when it can’t find FreeImage.h.

Here’s the error I get from Passenger:
error executing “gcc -shared -fPIC -Wall -g -fno-strict-aliasing -O2 -
fPIC -I /usr/lib/ruby/1.8/x86_64-linux -I /usr/include -L/usr/lib -o
”/home/victorcosby/.ruby_inline/" “/home/
victorcosby/.ruby_inline/Inline_ImageScience_aa58.c” -lfreeimage -
lstdc++ ": 256 Renamed /home/victorcosby/.ruby_inline/
Inline_ImageScience_aa58.c to /home/victorcosby/.ruby_inline/
Inline_ImageScience_aa58.c.bad (CompilationError)