Skip to content

Instantly share code, notes, and snippets.

@zdne
Last active January 20, 2023 15:43
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save zdne/6391879 to your computer and use it in GitHub Desktop.
Save zdne/6391879 to your computer and use it in GitHub Desktop.
Install phantomjs 1.9.1 x64 on Ubuntu Precise
$ sudo apt-get install libfontconfig
$ cd /usr/local/share
$ sudo wget https://phantomjs.googlecode.com/files/phantomjs-1.9.1-linux-x86_64.tar.bz2
$ sudo tar xjf phantomjs-1.9.1-linux-x86_64.tar.bz2
$ sudo ln -s /usr/local/share/phantomjs-1.9.1-linux-x86_64/bin/phantomjs /usr/local/share/phantomjs
$ sudo ln -s /usr/local/share/phantomjs-1.9.1-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs
$ sudo ln -s /usr/local/share/phantomjs-1.9.1-linux-x86_64/bin/phantomjs /usr/bin/phantomjs
$ sudo rm -rf phantomjs-1.9.1-linux-x86_64
$ sudo rm /usr/local/share/phantomjs
$ sudo rm /usr/local/bin/phantomjs
$ sudo rm /usr/bin/phantomjs
@ahmadelmorshedy
Copy link

That's great, you just saved me 👍
BTW, the link for 1.9.1 you've provided is no more working, still you can download phantomjs 1.9.1 from this page https://repo1.maven.org/maven2/com/github/klieber/phantomjs/1.9.1/

@kerrermanisNL
Copy link

Awesome, thanks for the support :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment