-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hhvm doesn't build on osx using homebrew #1580
Comments
@scannell Nope. I can build fine too. :-( |
I wonder if it's trying to use the system freetype rather than the brew one. Going to try reinstalling brew freetype and see what happens. I wish I was better versed in the gnu tools ecosystem :) |
@evert That may very well be (maybe for some people it's being pulled in as a dependency for another package). If installing freetype doesn't work, can you give us a gist with the contents of |
What I believe is going on is this:
What ends up happening is people that installed PHP through homebrew have the proper dependencies, and others do not. I've updated the wiki to hold this dependency. I'll bump @mcuadros to update his formula. |
This dependency is already installed if users install PHP through homebrew, but for users that did not do this, it will look at the outdated OSX headers causing build failures. See facebook/hhvm#1580
brew uninstall freetype && brew install freetype unfortunately did not fix that. My limited understanding is that brew packages are supposed to install in However, even after (re-)installing freetype using brew, the file that it looks for first has this path:
Do you guys know any way I can force brew to use the one from |
We definitely needed that dependency, so the wiki and homebrew update should still be ok. It's quite curious that installing that did not fix your problem though. The build should always be looking into that directory first, due to cmake setting: |
/usr/X11R6 was a symlink to /opt/X11. This probably happened while installing XQuartz. I removed the symlinks and now re-trying the build. |
now is fixed on brew, thanks @danslo |
Removing quartz indeed fixed my problem. Perhaps it's worth making a note of this? |
@evert: I think the problem is that pkg-config is reporting that X11R6 directory. However, |
I'm going to close this as there's no action for us to take -- feel free to continue the discussion here. Thanks @danslo! |
K I'm not entirely sure what that implies for me @danslo :) I do think other people can run into this that have quartz installed before installing hhvm. |
I've got the package working just fine, so I think we've solved this pretty well. I've still got some unrelated problems when building from source, but they're...not related to this :) |
I fixed this problem removing the links that @evert said. Thanks. |
I had the same error, so thanks a lot for making my life easier by identifying the Quartz conflict! I was able to install hhvm 2.4.0 after removing Quartz as stated here: https://discussions.apple.com/thread/4162096 |
I've been updating to the latest HEAD every few days, hoping this was a temporary issue. But since about 2 weeks I have not been able to install hhvm using brew.
I'm following these instructions:
https://github.com/facebook/hhvm/wiki/Building-and-installing-HHVM-on-OSX-10.9
The error plus some additional info:
Let me know if you need anything else :)
The text was updated successfully, but these errors were encountered: