ubuntu phantomjs安裝(PhantomJS崩潰可以按這個重裝解決)

來源:互聯網
上載者:User

標籤:pyspider

直接官網下載http://phantomjs.org/download.html

我的環境是64位:https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2

解壓下檔案[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這個錯誤解決如下:[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完全解決了~!


本文出自 “joker” 部落格,請務必保留此出處http://jokerbug.blog.51cto.com/12943231/1945286

ubuntu phantomjs安裝(PhantomJS崩潰可以按這個重裝解決)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.