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

Phantomjs 2.0 fails to install on 10.11 #42249

Closed
enilsen16 opened this issue Jul 29, 2015 · 81 comments
Closed

Phantomjs 2.0 fails to install on 10.11 #42249

enilsen16 opened this issue Jul 29, 2015 · 81 comments

Comments

@enilsen16
Copy link
Contributor

~ brew install phantomjs
Warning: You are using OS X 10.11.
We do not provide support for this pre-release version.
You may encounter build failures or other breakage.
==> Downloading https://github.com/ariya/phantomjs/archive/2.0.0.tar.gz
==> Downloading from https://codeload.github.com/ariya/phantomjs/tar.gz/2.0.0
######################################################################## 100.0%
==> Downloading https://gist.githubusercontent.com/mikemcquaid/db645f7cbeec4f3b1b2e/raw/e664ecc5c259344d5a73a84b52e472bf8ad3733e/phantomjs-yosemite.patch
######################################################################## 100.0%
==> Patching
patching file src/qt/qtbase/src/plugins/platforms/cocoa/qcocoaapplicationdelegate.mm
patch unexpectedly ends in middle of line
==> ./build.sh --confirm --jobs 8 --qt-config -openssl-linked
OpenSSL disabled.
OpenSSL support cannot be enabled due to functionality tests!
 Turn on verbose messaging (-v) to /private/tmp/phantomjs20150729-52735-158fllc/phantomjs-2.0.0/src/qt/qtbase/configure to see the final report.
 If you believe this message is in error you may use the continue
 switch (-continue) to /private/tmp/phantomjs20150729-52735-158fllc/phantomjs-2.0.0/src/qt/qtbase/configure to continue.

READ THIS: https://git.io/brew-troubleshooting

These open issues may also help:
phantomjs: homepage fixed https://github.com/Homebrew/homebrew/pull/41623
Phantomjs fails to build on 10.6 https://github.com/Homebrew/homebrew/issues/38916
Warning: You are using OS X 10.11.
We do not provide support for this pre-release version.
You may encounter build failures or other breakage.
@dunn
Copy link
Contributor

dunn commented Jul 29, 2015

Could you post brew gist-logs phantomjs, please?

@enilsen16
Copy link
Contributor Author

Output from brew gist-logs phantomjs: https://gist.github.com/anonymous/10400b68b4d7ef15d104

@dunn dunn added the 10.11 label Jul 29, 2015
@MikeMcQuaid
Copy link
Member

This will be the internal Qt failing to compile.

@enilsen16
Copy link
Contributor Author

So it's just an unfortunate error message?

I'll try installing Qt with this patch - https://github.com/thoughtbot/capybara-webkit/issues/815

@MikeMcQuaid
Copy link
Member

@enilsen16 So, it's failing to find OpenSSL because we ask for it to be linked in but the actual fix will require upstream PhantomJS changes (and likely a new release).

@evadne
Copy link

evadne commented Aug 23, 2015

As a workaround, this seems to work: npm install phantom phantomjs -g (installs 1.9.8)

@flooie
Copy link

flooie commented Aug 25, 2015

@evadne your advice worked for me thanks

@nikz
Copy link

nikz commented Sep 2, 2015

@MikeMcQuaid is there anything we (I) can do to help out here? Sounds like this potentially requires moving parts from other projects, in which case I'll be patient :)

@MikeMcQuaid
Copy link
Member

@nikz If you can get it building locally and submit a PR once it's working that'd be ✨

@nikz
Copy link

nikz commented Sep 2, 2015

@MikeMcQuaid at risk of being a bit cheeky (ok, a lot cheeky) could you point me to where you'd start?

I'm a total newb, tend to just bash at this stuff until it seems to work. But I'm keen to help! 

@nikz
Copy link

nikz commented Sep 3, 2015

If you add the patch suggested by @enilsen16, then qt builds, but not the included qt for Phantom JS (I'm guessing).

I'll take a closer look at the recipe and see if I can't add that patch to the included qt.

@MikeMcQuaid
Copy link
Member

@vitallium Any chance we'll see a new PhantomJS 2 release any time soon? Thanks!

@vitallium
Copy link

@MikeMcQuaid hi, yes. We're working on 2.0.1 release. Coming release will work on OS X smoothly. Unfortunately, we don't have any ETA on it (there are 2 blocking issues for this release).

@MikeMcQuaid
Copy link
Member

@vitallium np, thanks, good to know!

@jcoyne
Copy link

jcoyne commented Sep 21, 2015

I'm getting the same error on osx 10.10.5
running this command:

brew install phantomjs --HEAD
==> Cloning https://github.com/ariya/phantomjs.git
Cloning into '/Library/Caches/Homebrew/phantomjs--git'...
remote: Counting objects: 27176, done.
remote: Compressing objects: 100% (19331/19331), done.
remote: Total 27176 (delta 8130), reused 21349 (delta 7238), pack-reused 0
Receiving objects: 100% (27176/27176), 93.74 MiB | 431.00 KiB/s, done.
Resolving deltas: 100% (8130/8130), done.
Checking connectivity... done.
Checking out files: 100% (25492/25492), done.
==> Checking out branch master
==> ./build.sh --confirm --jobs 4 --qt-config -openssl-linked
OpenSSL disabled.
OpenSSL support cannot be enabled due to functionality tests!
 Turn on verbose messaging (-v) to /private/tmp/phantomjs20150921-27100-r1jikw/src/qt/qtbase/configure to see the final report.
 If you believe this message is in error you may use the continue
 switch (-continue) to /private/tmp/phantomjs20150921-27100-r1jikw/src/qt/qtbase/configure to continue.

@DomT4
Copy link
Member

DomT4 commented Sep 21, 2015

@jcoyne I presume you've upgraded to Xcode 7?

@jcoyne
Copy link

jcoyne commented Sep 21, 2015

@DomT4 yes

$ xcodebuild -version
Xcode 7.0
Build version 7A220

@DomT4
Copy link
Member

DomT4 commented Sep 21, 2015

That's the issue. Phantom (Or rather the internal Qt) glues itself to sysroot to find things for compile. In this case, sysroot is likely to be blank because Xcode 7 did not ship the 10.10 SDK for an unknown reason, and it won't fallback on checking the contents of /usr.

You could try installing the Command Line Tools package, but I'm not sure it'll do the job in this situation given the qt build system.

@ywen
Copy link

ywen commented Oct 1, 2015

Can we do anything about it?

@maxnordlund
Copy link
Contributor

The tracking issue upstream is ariya/phantomjs#12902 Not sure when it will be released though.

@sanchezcodes
Copy link

@evadne your advice works!

@zykadelic
Copy link

@evadne +1 for npm workaround

@maxnordlund
Copy link
Contributor

@zykadelic @lasg125 and @evadne that doesn't solve the problem of compiling version 2.0 on El Capitan, since it reverts back to 1.9.8. I've to say -1 for that tip here (but very useful if you just want something)

@zykadelic
Copy link

@maxnordlund It is indeed not a proper fix, but it helped me proceed

@vihuvac
Copy link

vihuvac commented Oct 17, 2015

I got a similar problem at installing phantomjs in Mac OS X El Capitan. I get the following error:

phantomjs: OS X Yosemite or older is required.
Error: An unsatisfied requirement failed this build.

I cannot even install older phatomjs versions.

@MikeMcQuaid
Copy link
Member

@SimonChong That's not a Homebrew issue.

@alan707
Copy link

alan707 commented Jan 2, 2016

@evadne +1

@tofagerl
Copy link

tofagerl commented Jan 4, 2016

How do I install the 2.0.1 version? I tried using NPM syntax, i.e. brew install phantomjs@2.0.1, but that was no go.

@kfix
Copy link
Contributor

kfix commented Jan 8, 2016

2.0.1 will never be released, the target for 10.11 support is PhantomJS 2.1: ariya/phantomjs#12970

Please don't spam that issue, they'd like real help here: ariya/phantomjs#13861

@MikeMcQuaid
Copy link
Member

@kfix I think I may just ship 2.0.1 as-is.

@MikeMcQuaid
Copy link
Member

I tried, failed: #47835. Anyone else: feel free to pick that up and we'll consider merging 2.0.1.

@geoffwalmsley
Copy link

Install fails:

brew install phantomjs

phantomjs: This formula either does not compile or function as expected on OS X
versions newer than Yosemite due to an upstream incompatibility.
Error: An unsatisfied requirement failed this build.

C'mon guys - this is pretty basic stuff

@jcoyne
Copy link

jcoyne commented Jan 10, 2016

@geoffwalmsley that's rude and not helpful

@geoffwalmsley
Copy link

@jcoyne is there an expectation that brew will not keep pace with major os releases as the error I posted seems to suggest?

@jcoyne
Copy link

jcoyne commented Jan 10, 2016

@geoffwalmsley Sorry, I'm not a maintainer, I don't know the answer to that. I was just here to report the error I saw.

@dunn
Copy link
Contributor

dunn commented Jan 10, 2016

May be a good time to remind everyone of our code of conduct: https://github.com/Homebrew/homebrew/blob/master/CODEOFCONDUCT.md

is there an expectation that brew will not keep pace with major os releases as the error I posted seems to suggest?

As the error message says, PhantomJS 2.0 doesn't build on El Capitan due to an upstream incompatibility. It's not because we're dragging our feet on supporting 10.11, and it's why we're looking for ways to package 2.0.1 as soon as possible: #42249 (comment)

@DomT4
Copy link
Member

DomT4 commented Jan 10, 2016

I can't write that error message to be any more obvious; It's an upstream issue, not a Homebrew one. We can't magically wave a wand here and "make it work". As we've said, someone can feel free to pick up on where Mike's PR was left and we'll review it.

Can we please keep this Issue on point. If you have solutions we more than welcome them.

@MikeMcQuaid
Copy link
Member

@dunn
Copy link
Contributor

dunn commented Jan 10, 2016

2.0.1 is now available through Homebrew, thank you all for your patience!

@nikz
Copy link

nikz commented Jan 10, 2016

Yay! Thanks everyone! 😄

@brunowego
Copy link

👍

@bmishkin
Copy link

👍 working great, thanks team

@erictheise
Copy link

I'm seeing

$ phantomjs --version
2.0.0

after installing 2.0.1. Thanks everyone for your work on this.

@dunn
Copy link
Contributor

dunn commented Jan 14, 2016

@erictheise that's just the version-strings not being updated in the fork we're temporarily using: https://github.com/Vitallium/phantomjs/blob/master/src/consts.h#L35-L38

@zvilich
Copy link

zvilich commented Jan 19, 2016

when i do:
brew install phantomjs
I still receive :
phantomjs: This formula either does not compile or function as expected on OS X
versions newer than Yosemite due to an upstream incompatibility.
Error: An unsatisfied requirement failed this build.

OS version 10.11.2

@DomT4
Copy link
Member

DomT4 commented Jan 19, 2016

@zvilich I suspect you need to brew update.

@zvilich
Copy link

zvilich commented Jan 19, 2016

👍 working great, thanks DomT4

@EFF
Copy link

EFF commented Jan 21, 2016

YES well done on this one guys !

@mneumark
Copy link

Just letting everyone know that phantomjs 2.1 was officially released last night! So just doing a normal update/upgrade will fix this problem officially.

@AnalyzePlatypus
Copy link

brew install phantomjs works flawlessly now. No problems on El Capitan 10.11.4

@Homebrew Homebrew locked and limited conversation to collaborators Apr 10, 2016
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