This repository has been archived by the owner. 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

Comments

Projects
None yet
@enilsen16
Contributor

enilsen16 commented Jul 29, 2015

~ 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

This comment has been minimized.

Show comment
Hide comment
@dunn

dunn Jul 29, 2015

Contributor

Could you post brew gist-logs phantomjs, please?

Contributor

dunn commented Jul 29, 2015

Could you post brew gist-logs phantomjs, please?

@enilsen16

This comment has been minimized.

Show comment
Hide comment
@enilsen16

enilsen16 Jul 29, 2015

Contributor

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

Contributor

enilsen16 commented Jul 29, 2015

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

@dunn dunn added the 10.11 label Jul 29, 2015

@MikeMcQuaid

This comment has been minimized.

Show comment
Hide comment
@MikeMcQuaid

MikeMcQuaid Jul 29, 2015

Member

This will be the internal Qt failing to compile.

Member

MikeMcQuaid commented Jul 29, 2015

This will be the internal Qt failing to compile.

@enilsen16

This comment has been minimized.

Show comment
Hide comment
@enilsen16

enilsen16 Jul 29, 2015

Contributor

So it's just an unfortunate error message?

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

Contributor

enilsen16 commented Jul 29, 2015

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

This comment has been minimized.

Show comment
Hide comment
@MikeMcQuaid

MikeMcQuaid Aug 1, 2015

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).

Member

MikeMcQuaid commented Aug 1, 2015

@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

This comment has been minimized.

Show comment
Hide comment
@evadne

evadne Aug 23, 2015

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

evadne commented Aug 23, 2015

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

@flooie

This comment has been minimized.

Show comment
Hide comment
@flooie

flooie Aug 25, 2015

@evadne your advice worked for me thanks

flooie commented Aug 25, 2015

@evadne your advice worked for me thanks

@nikz

This comment has been minimized.

Show comment
Hide comment
@nikz

nikz 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 :)

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

This comment has been minimized.

Show comment
Hide comment
@MikeMcQuaid

MikeMcQuaid Sep 2, 2015

Member

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

Member

MikeMcQuaid commented Sep 2, 2015

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

@nikz

This comment has been minimized.

Show comment
Hide comment
@nikz

nikz 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 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

This comment has been minimized.

Show comment
Hide comment
@nikz

nikz 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.

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

This comment has been minimized.

Show comment
Hide comment
@MikeMcQuaid

MikeMcQuaid Sep 13, 2015

Member

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

Member

MikeMcQuaid commented Sep 13, 2015

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

@Vitallium

This comment has been minimized.

Show comment
Hide comment
@Vitallium

Vitallium Sep 13, 2015

@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).

Vitallium commented Sep 13, 2015

@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

This comment has been minimized.

Show comment
Hide comment
@MikeMcQuaid

MikeMcQuaid Sep 13, 2015

Member

@Vitallium np, thanks, good to know!

Member

MikeMcQuaid commented Sep 13, 2015

@Vitallium np, thanks, good to know!

@jcoyne

This comment has been minimized.

Show comment
Hide comment
@jcoyne

jcoyne 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.

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

This comment has been minimized.

Show comment
Hide comment
@DomT4

DomT4 Sep 21, 2015

Contributor

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

Contributor

DomT4 commented Sep 21, 2015

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

@jcoyne

This comment has been minimized.

Show comment
Hide comment
@jcoyne

jcoyne Sep 21, 2015

@DomT4 yes

$ xcodebuild -version
Xcode 7.0
Build version 7A220

jcoyne commented Sep 21, 2015

@DomT4 yes

$ xcodebuild -version
Xcode 7.0
Build version 7A220
@DomT4

This comment has been minimized.

Show comment
Hide comment
@DomT4

DomT4 Sep 21, 2015

Contributor

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.

Contributor

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

This comment has been minimized.

Show comment
Hide comment
@ywen

ywen Oct 1, 2015

Can we do anything about it?

ywen commented Oct 1, 2015

Can we do anything about it?

@maxnordlund

This comment has been minimized.

Show comment
Hide comment
@maxnordlund

maxnordlund Oct 3, 2015

Contributor

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

Contributor

maxnordlund commented Oct 3, 2015

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

@lasg125

This comment has been minimized.

Show comment
Hide comment
@lasg125

lasg125 Oct 4, 2015

@evadne your advice works!

lasg125 commented Oct 4, 2015

@evadne your advice works!

@zykadelic

This comment has been minimized.

Show comment
Hide comment
@zykadelic

zykadelic Oct 12, 2015

@evadne +1 for npm workaround

zykadelic commented Oct 12, 2015

@evadne +1 for npm workaround

@maxnordlund

This comment has been minimized.

Show comment
Hide comment
@maxnordlund

maxnordlund Oct 12, 2015

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)

Contributor

maxnordlund commented Oct 12, 2015

@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

This comment has been minimized.

Show comment
Hide comment
@zykadelic

zykadelic Oct 12, 2015

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

zykadelic commented Oct 12, 2015

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

@vihuvac

This comment has been minimized.

Show comment
Hide comment
@vihuvac

vihuvac 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.

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

This comment has been minimized.

Show comment
Hide comment
@MikeMcQuaid

MikeMcQuaid Dec 18, 2015

Member

@SimonChong That's not a Homebrew issue.

Member

MikeMcQuaid commented Dec 18, 2015

@SimonChong That's not a Homebrew issue.

@alan707

This comment has been minimized.

Show comment
Hide comment
@alan707

alan707 commented Jan 2, 2016

@evadne +1

@tofagerl

This comment has been minimized.

Show comment
Hide comment
@tofagerl

tofagerl 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.

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

This comment has been minimized.

Show comment
Hide comment
@kfix

kfix Jan 8, 2016

Contributor

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

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

This comment has been minimized.

Show comment
Hide comment
@MikeMcQuaid

MikeMcQuaid Jan 8, 2016

Member

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

Member

MikeMcQuaid commented Jan 8, 2016

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

@MikeMcQuaid

This comment has been minimized.

Show comment
Hide comment
@MikeMcQuaid

MikeMcQuaid Jan 9, 2016

Member

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

Member

MikeMcQuaid commented Jan 9, 2016

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

@geoffwalmsley

This comment has been minimized.

Show comment
Hide comment
@geoffwalmsley

geoffwalmsley Jan 10, 2016

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

geoffwalmsley commented Jan 10, 2016

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

This comment has been minimized.

Show comment
Hide comment
@jcoyne

jcoyne Jan 10, 2016

@geoffwalmsley that's rude and not helpful

jcoyne commented Jan 10, 2016

@geoffwalmsley that's rude and not helpful

@geoffwalmsley

This comment has been minimized.

Show comment
Hide comment
@geoffwalmsley

geoffwalmsley Jan 10, 2016

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

geoffwalmsley commented Jan 10, 2016

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

@jcoyne

This comment has been minimized.

Show comment
Hide comment
@jcoyne

jcoyne 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.

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

This comment has been minimized.

Show comment
Hide comment
@dunn

dunn Jan 10, 2016

Contributor

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)

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

This comment has been minimized.

Show comment
Hide comment
@DomT4

DomT4 Jan 10, 2016

Contributor

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.

Contributor

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

This comment has been minimized.

Show comment
Hide comment
@MikeMcQuaid
Member

MikeMcQuaid commented Jan 10, 2016

@dunn

This comment has been minimized.

Show comment
Hide comment
@dunn

dunn Jan 10, 2016

Contributor

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

Contributor

dunn commented Jan 10, 2016

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

@nikz

This comment has been minimized.

Show comment
Hide comment
@nikz

nikz Jan 10, 2016

Yay! Thanks everyone! 😄

nikz commented Jan 10, 2016

Yay! Thanks everyone! 😄

@brunowego

This comment has been minimized.

Show comment
Hide comment
@brunowego

brunowego commented Jan 11, 2016

👍

@bmishkin

This comment has been minimized.

Show comment
Hide comment
@bmishkin

bmishkin Jan 11, 2016

👍 working great, thanks team

bmishkin commented Jan 11, 2016

👍 working great, thanks team

@erictheise

This comment has been minimized.

Show comment
Hide comment
@erictheise

erictheise Jan 14, 2016

I'm seeing

$ phantomjs --version
2.0.0

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

erictheise commented Jan 14, 2016

I'm seeing

$ phantomjs --version
2.0.0

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

@dunn

This comment has been minimized.

Show comment
Hide comment
@dunn

dunn Jan 14, 2016

Contributor

@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

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

This comment has been minimized.

Show comment
Hide comment
@zvilich

zvilich 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

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

This comment has been minimized.

Show comment
Hide comment
@DomT4

DomT4 Jan 19, 2016

Contributor

@zvilich I suspect you need to brew update.

Contributor

DomT4 commented Jan 19, 2016

@zvilich I suspect you need to brew update.

@zvilich

This comment has been minimized.

Show comment
Hide comment
@zvilich

zvilich Jan 19, 2016

👍 working great, thanks DomT4

zvilich commented Jan 19, 2016

👍 working great, thanks DomT4

@EFF

This comment has been minimized.

Show comment
Hide comment
@EFF

EFF Jan 21, 2016

YES well done on this one guys !

EFF commented Jan 21, 2016

YES well done on this one guys !

@mneumark

This comment has been minimized.

Show comment
Hide comment
@mneumark

mneumark Jan 25, 2016

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.

mneumark commented Jan 25, 2016

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

This comment has been minimized.

Show comment
Hide comment
@AnalyzePlatypus

AnalyzePlatypus Apr 10, 2016

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

AnalyzePlatypus commented Apr 10, 2016

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.