LoginSignup
1
1

More than 5 years have passed since last update.

[memo] Install phantomjs into Ubuntu

Last updated at Posted at 2018-04-11
sudo apt-get update 
sudo apt-get install build-essential chrpath libssl-dev libxft-dev -y 
sudo apt-get install libfreetype6 libfreetype6-dev -y
sudo apt-get install libfontconfig1 libfontconfig1-dev -y 
cd ~ 
export PHANTOM_JS="phantomjs-2.1.1-linux-x86_64" 
wget https://github.com/Medium/phantomjs/releases/download/v2.1.1/$PHANTOM_JS.tar.bz2
sudo tar xvjf $PHANTOM_JS.tar.bz2 
sudo mv $PHANTOM_JS /usr/local/share 
sudo ln -sf /usr/local/share/$PHANTOM_JS/bin/phantomjs /usr/local/bin 
phantomjs --version
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1