sudo yum update
sudo yum install git
git clone https://gist.github.com/2776679.git
chmod 777 install-redis.sh
./install-redis.sh
sudo yum install gcc-c++ make
sudo yum install openssl-devel
sudo yum install autoconf aclocal automake
sudo yum install libtool
sudo yum install libjpeg-devel libpng-devel libtiff-devel zlib-devel
install nodejs for any future dependencies, for reference: https://github.com/nodejs/node/blob/master/BUILDING.md
cd ~
mkdir libs && cd libs
git clone https://github.com/nodejs/node.git
cd node
./configure
make -j4
sudo make install
sudo nano /etc/sudoers
Defaults secure_path = /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
node -v
npm -v
cd ~/libs
wget http://www.leptonica.com/source/leptonica-1.74.1.tar.gz
tar -zxvf leptonica-1.74.1.tar.gz
cd leptonica-1.74.1
./configure
make
sudo make install
cd ~/libs
wget https://github.com/tesseract-ocr/tesseract/archive/3.05.00.tar.gz
tar -zxvf 3.05.00.tar.gz
cd tesseract3..
./autogen.sh
./configure
make
sudo make install
sudo ldconfig
cd /usr/local/share/tessdata
sudo wget https://github.com/tesseract-ocr/tessdata/archive/3.04.00.zip
sudo unzip 3.04.00.zip
sudo mv tessdata-3.04.00/*.* .
sudo rm -r tessdata-3.04.00
cd ~
sudo nano .bash_profile
export TESSDATA_PREFIX=/usr/local/share/
save and quit
source .bash_profile