1、安装依赖的库
<pre>
sudo apt-get install g++ flex bison gperf ruby perl \ libsqlite3-dev libfontconfig1-dev libicu-dev libfreetype6 libssl-dev \ libpng-dev libjpeg-dev
</pre>
2、下载、编译
<pre>
wget https://bbuseruploads.s3.amazonaws.com/ariya/phantomjs/downloads/phantomjs-2.0.0-source.zip unzip phantomjs-2.0.0-source.zip ./build.sh
</pre>
时间: 2024-10-11 06:01:07