Debian – Install PhantomJS, CasperJS, Node, NPM, Tesseract-OCR, ImageMagick

Pre – requiremets
# apt-get install build-essential chrpath libssl-dev libxft-dev
# apt-get install libfreetype6 libfreetype6-dev
# apt-get install libfontconfig1 libfontconfig1-dev
# apt-get install curl wget

INSTALL PhantomJS
# cd /opt/
# mkdir phantomjs
# cd /opt/phantomjs/
# wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
# tar xvjf phantomjs-2.1.1-linux-x86_64.tar.bz2
# mv phantomjs-2.1.1-linux-x86_64 /usr/local/share/
# cd /usr/local/bin/
# ln -sf /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin/

INSTALL NODEJS
# apt-get install nodejs
# nodejs –version (should be v. 4.x) – Not have NPM
# cd /opt/
# mkdir nodejs
# cd /opt/nodejs/
# curl -sL https://deb.nodesource.com/setup_10.x -o nodesource_setup.sh
# /bin/bash nodesource_setup.sh
# apt-get install nodejs
# nodejs –version (should be v. 10.x)
# cd /usr/lib/node_modules/npm

INSTALL CASPERJS from NPM
# npm install -g casperjs

INSTALL TESSERACT-OCR
# apt-get install tesseract-ocr
# apt-get install libtesseract-dev
# which tesseract
INSTALL ImageMagick
# apt-get install imagemagick
# which convert

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.