Skip to content

Instantly share code, notes, and snippets.

@astagi
Forked from ianchen06/phantomjs_install.sh
Last active April 15, 2019 20:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save astagi/7968c111bba77fa77153161f712bfd99 to your computer and use it in GitHub Desktop.
Save astagi/7968c111bba77fa77153161f712bfd99 to your computer and use it in GitHub Desktop.
How to install PhantomJS on CentOS/RHEL
yum install fontconfig freetype freetype-devel fontconfig-devel libstdc++
wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
tar -xjvf ~/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 --strip-components 1 /opt/phantomjs/
sudo yum install libffi-devel openssl-devel
pip install pyopenssl pyasn1
pip install requests[security]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment