Skip to content

Instantly share code, notes, and snippets.

@ryanoboril
Last active June 13, 2019 18:09
Show Gist options
  • Save ryanoboril/278197b04cb8c838d72b to your computer and use it in GitHub Desktop.
Save ryanoboril/278197b04cb8c838d72b to your computer and use it in GitHub Desktop.
Setup PhantomJS on CentOS 6.5
# Use one of the download links here: http://phantomjs.org/download.html
# In this case, it's the 32-bit version.
sudo yum install freetype fontconfig
cd ~
wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-i686.tar.bz2
bunzip2 phantomjs*.tar.bz2
tar xvf phantomjs*.tar
sudo cp phantomjs*/bin/phantomjs /usr/bin/phantomjs
phantomjs -v
@DSoftwareArtist
Copy link

This don't work in my CentOS Server

@Neoshinji-
Copy link

PhantomJS team is encouraging to build the Linux version from source.

It's really easy to build (maybe long wait - my own 45 minutes on CentOS 6.4), if you follow the steps from here: http://phantomjs.org/build.html

Information

Binary packages for Linux are still being prepared. There are still issues to be solved until a static build is available (see issue 12948 for more details).
ariya/phantomjs#12948
In the mean time, it is recommended that you build the Linux version from source.

@mmhuang
Copy link

mmhuang commented Mar 21, 2017

it works for me.

@impactcolor
Copy link

Does this not work anymore? I got an error
clone of 'https://github.com/Vitallium/phantomjs-3rdparty-win.git' into submodule path '/usr/local/share/phantomjs/src/qt/3rdparty' failed

@impactcolor
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment