Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

OS X binary does not work on Snow Leopard and Yosemite #12900

Closed
ariya opened this issue Jan 24, 2015 · 56 comments
Closed

OS X binary does not work on Snow Leopard and Yosemite #12900

ariya opened this issue Jan 24, 2015 · 56 comments
Assignees

Comments

@ariya
Copy link
Owner

ariya commented Jan 24, 2015

  • Download the OS X binary of PhantomJS 2.0
  • Run it on Snow Leopard
  • PhantomJS refuses to run
@ariya ariya self-assigned this Jan 24, 2015
@vokkim
Copy link

vokkim commented Jan 27, 2015

The OS X binary does not work in Yosemite (10.10.1) either, refuses to run and outputs Killed: 9.

@petermichaux
Copy link

The OS X binary for PhantomJS 1.9.8 seems to work on Yosemite (10.10.1). The 2.0.0 binary does not work.

@ariya ariya added the macOS label Feb 1, 2015
@eugene1g
Copy link
Contributor

eugene1g commented Feb 1, 2015

@vokkim @petermichaux I had the same "Killed: 9" issue while starting Phantom2 on Yosemite, so I applied a small patch as recommended elsewhere (#12630 (comment)) and recompiled working V2 binaries for OSX/Ubuntu/CentOS - they are available at https://github.com/eugene1g/phantomjs/releases if you want them

@jabez128
Copy link

jabez128 commented Feb 1, 2015

same issue +1

@ariya ariya changed the title OS X binary does not work on Snow Leopard OS X binary does not work on Snow Leopard and Yosemite Feb 2, 2015
@steel
Copy link

steel commented Feb 3, 2015

+1 here on Yosemite

@herrernst
Copy link

From #12974:

brew install upx
upx -d bin/phantomjs

Then it works.

@octatone
Copy link

Broken here with any binaries I try on Yosemite.

@MichielDeMey
Copy link

Exact same issue on OSX Yosemite.

[1]    57910 killed     ./phantomjs

@octatone
Copy link

This is the only binary I could get to run on Yosemite: https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-macosx.zip

@floriansemm
Copy link

The solution from @herrernst works for me on Yosemite

2 similar comments
@frameddialog
Copy link

The solution from @herrernst works for me on Yosemite

@jackblackCH
Copy link

The solution from @herrernst works for me on Yosemite

@sylvinus
Copy link

sylvinus commented Mar 1, 2015

Got the same on latest OS X 10.10.2

@milushov
Copy link

milushov commented Mar 3, 2015

thanks, @herrernst

@SpyderWeiss
Copy link

I searched for 4 hours today to find this solution, this needs to be posted in a more prominent place, but thank you @herrernst !

@iRet
Copy link

iRet commented Mar 12, 2015

+1

@ghost
Copy link

ghost commented Mar 17, 2015

Thanks @herrernst

brew install upx
upx -d bin/phantomjs

@bartsmilner
Copy link

Got the dreaded Killed: 9 with binary on Yosemite 10.10.2 but brew install phantomjs (on homebrew, natch) installed and worked no problem

@iabdulin
Copy link

+1 for

brew install upx
upx -d bin/phantomjs

@pyper
Copy link

pyper commented Mar 27, 2015

I think I found the issue. I cd’d into the dirs for local storage and the cache, and cleared them out completely. Once I did that no more problems. Perhaps a file format change between versions.

In my case(OS X) they were here:

cd ~/Library/Caches/Ofi\ Labs/PhantomJS
rm -f -r data7

cd ~/Library/Application\ Support/Ofi\ Labs/PhantomJS
rm -f *.localstorage

@factologist
Copy link

I used homebrew to update from 1.9.8 -> 2.0.0 which worked seamlessly on OSX 10.10.5.

$ brew install phantomjs (I was prompted to unlink the existing 1.9.8 -> Error: phantomjs-1.9.8 already installed followed by how-to instructions)

$ brew unlink phantomjs (successfully unlinked -> Unlinking /usr/local/Cellar/phantomjs/1.9.8... 2 symlinks removed)

$ brew install phantomjs and the install completed, version updated.

I had to mess with my required versions in my project's Gemfile and run bundler but that is to be expected.

@colinpade
Copy link

+1 @herrernst why can't this be fixed in the source?

@vml-rmott
Copy link

if this is going to keep lingering, it should be posted as a known issue on the home page.

@vitallium
Copy link
Collaborator

#12900 (comment)

@franksama
Copy link

+1 @herrernst .. took me hours to figure this out, the upx solution worked for me.

@discorick
Copy link

+1 @herrernst

@AbdullahAs
Copy link

@soda-wy's solution works perfectly for me as well.

the download link https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.0.0-macosx.zip on http://phantomjs.org/ failed with "Killed: 9".

https://github.com/eugene1g/phantomjs/releases works, thanks.

@xiaoyongwu
Copy link

"upx" solution worked for me on 10.10.5 Yosemite.

@jwalton
Copy link

jwalton commented Oct 28, 2015

Why is phantomjs still broken on mac 9 months after this was reported??? :(

@sebastianbochan
Copy link

Please check 2.0.1 version, which should fixed issues.

@lkraav
Copy link

lkraav commented Oct 29, 2015

Is there supposed to be a 2.0.1 git tag/release? https://github.com/ariya/phantomjs/releases shows 2.0.0 for latest.

@MichielDeMey
Copy link

2.0.1 is not released yet, check out the latest 2.0 branch.
That branch currently at 2.0.1-development.

@JordanTheriault
Copy link

I was having the same problem.
@herrernst +1 for the solution, worked for me on 10.10.2

kpdecker added a commit to kpdecker/istanbul that referenced this issue Nov 13, 2015
When the phantom process crashes due to environmental issues, the tests would silently hang waiting for the server process to complete. This explicitly handles the error and terminates the test.

ariya/phantomjs#12900 could contribute to this, among other errors.
@danemacaulay
Copy link

+1 for upx!

galdiolo added a commit to galdiolo/phantomjs that referenced this issue Nov 24, 2015
@vitallium
Copy link
Collaborator

Works now on OS X El Capitan.

@panxiubin
Copy link

I have a same issue
[1] 48389 killed phantomjs -v

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests