Direct official website Download http://phantomjs.org/download.html
My environment is 64-bit: https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
Unzip the file [email protected]:~# wget https://bitbucket.org/ariya/phantomjs/downloads/ Phantomjs-2.1.1-linux-x86_64.tar.bz2[email protected]:~# tar xvf phantomjs-2.1.1-linux-x86 _64.tar.bz2[email protected]:~# mv phantomjs-2.1.1-linux-x86_64 phantomjs[email Protected]:~# mv phantomjs /usr/local/src/[email protected]:~# sudo ln -sf /usr/local/src/phantomjs/bin/phantomjs /usr/local/bin/phantomjs[email protected]:~# phantomjs phantomjs: error while loading shared libraries: libfontconfig.so.1: cannot open shared object file: no such file Or directory This error is resolved as follows: [email protected]:~# sudo apt-get install build-essential g++ flex bison gperf ruby perl libsqlite3-dev Libfontconfig1-dev libicu-dev libfreetype6 libssl-dev libpng-dev libjpeg-dev python libx11-dev libxext-dev[email protected]:~# phantomjs --version2.1.1 completely solved ~!
This article is from the "Joker" blog, make sure to keep this source http://jokerbug.blog.51cto.com/12943231/1945286
Ubuntu PHANTOMJS installation (PHANTOMJS crash can be resolved by this reload)