sh 为了在CentOS中安装casper
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 为了在CentOS中安装casper相关的知识,希望对你有一定的参考价值。
#!/bin/sh
## Preconditions
# phantomjs prerequisites, see https://www.bonusbits.com/wiki/HowTo:Install_PhantomJS_on_CentOS
yum install fontconfig freetype freetype-devel fontconfig-devel libstdc++
# for bunzip2
yum install bzip2
# for git
yum install git
# PhantomJS version
# See http://phantomjs.org/download.html, for Linux 64-bit
target=phantomjs-2.1.1-linux-x86_64
## Install PhantomJS
wget https://bitbucket.org/ariya/phantomjs/downloads/${target}.tar.bz2
bunzip2 ${target}.tar.bz2
tar xf ${target}.tar
mv ${target} /opt/
ln -s /opt/${target}/ /opt/phantomjs
ln -s /opt/phantomjs/bin/phantomjs /usr/local/bin/
#check what you've just done
which phantomjs
phantomjs --version
## Install casperJS
#start installing casperjs
git clone https://github.com/n1k0/casperjs.git
mv casperjs/ /opt/casperjs
ln -s /opt/casperjs/bin/casperjs /usr/local/bin/
#check what you've just done
which casperjs
casperjs --version
# Based on https://gist.github.com/florinel-chis/6173221
以上是关于sh 为了在CentOS中安装casper的主要内容,如果未能解决你的问题,请参考以下文章
在 CentOS 中安装 JDK
CentOS中安装Azkaban 2.5
如何在CentOS 7中安装Git
docker中安装的centos启动tomcat 非常慢解决方案
在VM虚拟机中安装Centos操作系统
在VM虚拟机中安装Centos操作系统