PhantomJS: getting "Killed: 9" for everything I'm trying

Just installed phantomjs, mac os x yosemite. Whenever I run / bin / phantomjs, with any option, I get Killed: 9 . Any idea?

+66
phantomjs osx-yosemite
Feb 01 '15 at 20:59
source share
5 answers

re: run phantomjs on osx yosemite, download the build / patch found at:

https://github.com/eugene1g/phantomjs/releases

original version:

https://github.com/ariya/phantomjs/issues/12928

+63
Feb 01 '15 at 21:57
source share
  • Install UPX. UPX is an executable packer and unpacker

     $ brew install upx 
  • Unzip the phantomjs

     $ upx -d phantomjs-2.0.0-macosx/bin/phantomjs 
  • Run phantomjs executable

     $ ./phantomjs-2.0.0-macosx/bin/phantomjs 
+99
Mar 06 '15 at 0:07
source share

The release of eugene1g and the installation of UPX did not work for me on El Capitan. For me, installing PhantomJS using the NPM phantomjs2 package worked:

 npm install phantomjs2 # Optional: symlink in a dir that on my PATH: ln -s /usr/local/lib/node_modules/phantomjs2/lib/phantom/bin/phantomjs /usr/local/bin/phantomjs 
+2
Oct 07 '15 at 10:21
source share

$ npm install -g phantomjs worked for me on El Capitan.

The npm package is not "official", it is supported by the contributor, but it works. https://github.com/eugene1g/phantomjs

+2
Jan 07 '16 at 16:00
source share

Blunt reinstall using brew

Everything in /usr/local/bin/phantomjs stopped working for you.

If you have ~ 30 minutes, you can reinstall and reuse with brew:

  # unlink old version brew unlink phantomjs # reinstall phantomjs brew update && brew install phantomjs # (You may wish to make a refreshing herbal tea or similar beverage here...) # Update link to usr/local/bin brew link --overwrite phantomjs 

If you want to check what brew will do with overwrite , you can run

  brew link --overwrite --dry-run phantomjs 
+1
Oct 07 '15 at 13:54 on
source share



All Articles