Tuesday, June 30, 2009

How to Install the Image_science gems on hardy

The Gem Image_science is depends on FreeImage and RubyInline.So we have to install these two packages first.



Step : 1

Install FreeImage First from source:

1 sudo apt-get install build-essential
2 cd ~/sources
3 wget http://ftp.cica.es/ubuntu/ubuntu/pool/universe/f/freeimage/freeimage_3.9.3.orig.tar.gz
4 tar -xvf freeimage_3.9.3.orig.tar.gz
5 cd freeimage-3.9.3.repacked/FreeImage
6 make
7 sudo make install


Step : 2
Install RubyInline as Gem

1 sudo gem install RubyInline -v 3.6.3


Step : 3
Install ImageScience as Gem

1 sudo gem install image_science