Ubuntu PHANTOMJS installation (PHANTOMJS crash can be resolved by this reload)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.