Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
@monmon29

This comment has been minimized.

Copy link

commented Oct 25, 2015

This don't work in my CentOS Server

@Neoshinji-

This comment has been minimized.

Copy link

commented Nov 6, 2015

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

This comment has been minimized.

Copy link

commented Mar 21, 2017

it works for me.

@impactcolor

This comment has been minimized.

Copy link

commented Jun 13, 2019

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

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.