#!/bin/sh

# Script to install wget, freeimage and image_science
#
#
# AUTHOR: Michael Hagedorn http://silverchairsolutions.com

#
# CHANGELOG:]#  
#*Michael Hagedorn :initial release [9/12/2007]
# 
# INSTRUCTIONS:
#
# Add this to your .bash_login:
#  export PATH="/usr/local/bin:/usr/local/sbin:$PATH"
#  export MANPATH="/usr/local/man:$MANPATH"
# 
# And reload with:
#  . ~/.im_sci.install.sh
#
# Run this script
#  ./ru-ra-lim.sh
#

PREFIX=/usr/local

mkdir src
cd src

#wget
curl -O http://ftp.gnu.org/pub/gnu/wget/wget-1.9.1.tar.gz
tar xzvf wget-1.9.1.tar.gz
cd wget-1.9.1
./configure --prefix=${PREFIX}
make
sudo make install
cd ..

#FreeImage
wget http://prdownloads.sourceforge.net/freeimage/FreeImage393.zip?download
unzip FreeImage393.zip
cd FreeImage
make
sudo make install
cd ..

#image_science
sudo gem install -y image_science

#Attachment_fu


