Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 649
azv Avatar asked Feb 01 '15 20:02

azv


3 Answers

  1. Install UPX. UPX is an executable packer and unpacker

    $ brew install upx
    
  2. Unpack the phantomjs executable

    $ upx -d phantomjs-2.0.0-macosx/bin/phantomjs
    
  3. Run the phantomjs executable

    $ ./phantomjs-2.0.0-macosx/bin/phantomjs
    
like image 130
Ram Avatar answered Nov 12 '22 03:11

Ram


re: running phantomjs on osx yosemite, download the build/fix found at:

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

original issue:

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

like image 63
sdeburca Avatar answered Nov 12 '22 01:11

sdeburca


The eugene1g release and UPX install didn't work for me on El Capitan. What did work for me was installing PhantomJS using the phantomjs2 NPM package:

npm install phantomjs2

# Optional: symlink in a dir that's on my PATH:
ln -s /usr/local/lib/node_modules/phantomjs2/lib/phantom/bin/phantomjs /usr/local/bin/phantomjs 
like image 2
Blaise Avatar answered Nov 12 '22 01:11

Blaise