본문 바로가기
LANG/CasperJS

phantomjs / casperjs

by 하하IT 2020. 4. 21.

phantomjs / casperjs 설치

 

1. phantomjs 설치

   https://bitbucket.org/ariya/phantomjs/downloads

 

 32bit   

wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-i686.tar.bz2

 64bit

wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2

 

  

  tar -xvf phantomjs-1.9.7-linux-i686.tar.bz2

  

  ln -sf `pwd`/bin/phantomjs /usr/local/bin/phantomjs

 

CentOS

 yum -y upgrade 

 yum -y update

 

 yum -y install libstdc++

 yum -y install libstdc++.i686

 yum -y install ld-linux.so.2

 yum -y install libfontconfig.so.1

 yum -y install libstdc++.so.6

 

 

 

 

  raspberry PI 용 phantomjs 설치

  

   root유저 말고  pi 유저로 설치

 

   https://github.com/piksel/phantomjs-raspberrypi

 

    git clone git://github.com/piksel/phantomjs-raspberrypi.git

    root@raspberrypi:~# vi ~/.bash_profile

    export PATH=/opt/pi/casperjs/bin/:/opt/pi/phantomjs-raspberrypi/bin/:$PATH

 

 

 

 

2. casperjs 설치

$ git clone git://github.com/n1k0/casperjs.git

$ cd casperjs

$ ln -sf `pwd`/bin/casperjs /usr/local/bin/casperjs

 

 

Once PhantomJS and CasperJS installed on your machine, you should obtain something like this:

 

$ phantomjs --version

1.9.2

$ casperjs

CasperJS version 1.1.0-DEV at /Users/niko/Sites/casperjs, using phantomjs version 1.9.2

 

 

 

3. path설정

root@raspberrypi:~# vi ~/.bash_profile

 

export PATH=/root/casperjs/bin/:/root/phantomjs-raspberrypi-master/bin/:$PATH

'LANG > CasperJS' 카테고리의 다른 글

casper installation  (0) 2020.04.22
CentOS / phantomjs , casperjs 한글깨짐  (0) 2020.04.22