linux Phantomjs Casperjs 安装

 
更多

安装 必要的包

yum install gcc gcc-c++ make flex bison gperf ruby openssl-devel freetype-devel fontconfig-devel libicu-devel sqlite-devel libpng-devel libjpeg-devel bzip2

Phantomjs 安装

wget https://www.cxy163.net/soft/phantomjs-2.1.1-linux-x86_64.tar.bz2
tar -jxvf phantomjs-2.1.1-linux-x86_64.tar.bz2 -C /usr/local/
mv /usr/local/phantomjs-2.1.1-linux-x86_64/ /usr/local/phantomjs

vim /etc/profile

export PATH=/usr/local/phantomjs/bin:$PATH
source /etc/profile
phantomjs --version

Casperjs 安装

wget https://www.cxy163.net/soft/casperjs-1.1.0-0.tar.gz
tar -zxvf casperjs-1.1.0-0.tar.gz -C /usr/local/
mv casperjs-casperjs-b5c59e1/ casperjs

vim /etc/profile

export PATH=/usr/local/casperjs/bin:$PATH
source /etc/profile
casperjs --version

打赏

本文固定链接: https://www.cxy163.net/archives/1666 | 绝缘体

该日志由 绝缘体.. 于 2018年07月08日 发表在 首页 分类下,
原创文章转载请注明: linux Phantomjs Casperjs 安装 | 绝缘体

报歉!评论已关闭.