Install ImageScience on slicehost ubuntu hardy
Before you can install ImageScience you must install FreeImage & RubyInline. ImageScience requires it.
Step 1: Install FreeImage
sudo apt-get install build-essential cd ~/sources wget http://ftp.cica.es/ubuntu/ubuntu/pool/universe/f/freeimage/freeimage_3.9.3.orig.tar.gz tar -xvf freeimage_3.9.3.orig.tar.gz cd freeimage-3.9.3.repacked/FreeImage make sudo make install
Step #2: Install RubyInline
sudo gem install RubyInline -v 3.6.3 # I install version 3.6.3 because the latest version has problems with scrubyt which I sometimes use.
Step #3: Install ImageScience
sudo gem install image_science
References
- Intall FreeImage & ImageScience on Ubuntu Gutsy

Brian | September 17, 2008
Hi Everyone,
Getting FreeImage working was a freakin nightmare. But I thougt I’d leave a trail for those who follow.
I got it up and going decently at first, gif’s worked, but not jpegs. I eventually tracked down this, which talks about some conflict with the jpeg library:
https://bugs.launchpad.net/ubuntu/+source/freeimage/+bug/128026
If your production environment happens to be Ubuntu Gutsy like me (on slicehost) then you might find this useful:
http://pastie.org/pastes/104754
I don’t know who put it there but it saved my bacon.
FYI, there were some other things i had to do to get that working. For example, I had to change line 8 to this:
apt-get source libjpeg6b
I also had to install some tools along the way as I got errors, such as:
sudo apt-get install liburi-perl
sudo apt-get install fakeroot
Also, after running line 23 I got an error like this:
Now signing changes and any dsc files…
signfile freeimage_3.9.3-3ubuntu1.dsc Brian Armstrong
gpg: skipped “Brian Armstrong “: secret key not available
gpg: [stdin]: clearsign failed: secret key not available
debsign: gpg error occurred! Aborting….
debuild: fatal error at line 1174:
running debsign failed
debuild returned 29
Couldn’t run ‘debuild -i\.git/ -I.git’
Which was only resolved by going and reading about gpg:
http://www.quantumlab.net/pine_privacy_guard/howto_setup_gpg.html
I had to go through the steps of “gpg –gen-key” and create a passphrase with that exact name and info “Brian Armstrong “. Before line 23 would run.
I have no idea what any of this does…personally I hate anything that invovles a “make install” to get it working (mostly because it never seems to work right).
I can’t believe it’s really this hard to get this working. Anyway, thanks to ImageScience for a cool program…I know it’s not your fault FreeImage is so difficult.
Best of luck to everyone, and I really hope these things get easier over time for rails developers everywhere.
Brian
brian at startbreakingfree dot com
apie | December 11, 2008
tanks!