wiki:InstallationGuidelines/PhantomJS

Install PhantomJS

This is required for UserGuidelines/Admin/MapPrinting.

This is not available in Debian Wheezy, and the version in Debian SID (unstable) is too old so we can need to build from source:

apt-get update
apt-get -y install build-essential chrpath git-core libssl-dev libfontconfig1-dev libxft-dev libfreetype6-dev libicu-dev gperf bison ruby flex
git clone https://github.com/ariya/phantomjs
cd phantomjs
git checkout 2.1
git cherry-pick d0388371cfda166d97165c1b68182857b954cc83 # Fix for addCookie
python build.py
cp -f bin/phantomjs /usr/bin/

For Windows or Mac, can download the binary & place in the path (Use 1.9.8 instead of 2.1.1 as addCookie is broken in 2.x):

Last modified 8 years ago Last modified on 03/09/17 11:59:24
Note: See TracWiki for help on using the wiki.