ImageScience on DreamHost or other shared hosting?

Anyone gotten ImageScience to work on DreamHost or shared hosting? I
think I’m having a problem because I cannot install FreeImage and
image_science is going bellyup when it tries to 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/Inline_ImageScience_aa58.so” “/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)

Thanks,
Victor