hhvm / homebrew-hhvm

Official Mac OS X Homebrew formula for HHVM
MIT License
81 stars 22 forks source link

hhvm error during the installing #42

Closed ghost closed 8 years ago

ghost commented 8 years ago

Description

I Tried to install hhvm by using this command in terminal: brew install hhvm but I got the below issue:

$ brew install hhvm ==> Installing hhvm from hhvm/hhvm ==> Downloading http://dl.hhvm.com/source/hhvm-3.13.1.tar.bz2 Already downloaded: /Users/hamidebadi/Library/Caches/Homebrew/hhvm-3.13.1.tar.bz2 ==> Downloading https://github.com/facebook/hhvm/commit/fead9b7c43b03f4b3d711019 Already downloaded: /Users/hamidebadi/Library/Caches/Homebrew/hhvm--patch-8245b7da1804d8afe8a24f3e079a46829927cdd1fcf7335b9147dabf3d60c92f.patch ==> Downloading https://github.com/facebook/hhvm/commit/59d7d2885e21cfda51ea3d43 Already downloaded: /Users/hamidebadi/Library/Caches/Homebrew/hhvm--patch-e63e1a460ff8e62b8aa5cc90d5a155b2b159e67a7fe5e131f1dc4f69a5c825a6.patch ==> Downloading https://github.com/facebook/hhvm/commit/57580d81e4b1da628c82d6d2 Already downloaded: /Users/hamidebadi/Library/Caches/Homebrew/hhvm--patch-9c1dfda6a3ca98b8ba7a3956a74bfd43b4a6a185b7503addd2c8fc6c6f0e9d0c.patch ==> Downloading https://github.com/facebook/hhvm/commit/5e92f7701626ebd7eb3c5b8b Already downloaded: /Users/hamidebadi/Library/Caches/Homebrew/hhvm--patch-a21ce61876099114b8310999d1de851fcd064bebf1eeea70d1f978d60ecdbd4d.patch ==> Downloading https://github.com/facebook/hhvm/commit/9d3fff4b0f05b1ed568f93d4 Already downloaded: /Users/hamidebadi/Library/Caches/Homebrew/hhvm--patch-a09373467d2e9806a434c6b4407c36c14fb7f70e98b73da506a3d09ef9d0f4dc.patch ==> Downloading https://github.com/facebook/hhvm/commit/21004b2dba474ea22cdd4a0d Already downloaded: /Users/hamidebadi/Library/Caches/Homebrew/hhvm--patch-b9236638363c2a1dfd5d23f5f05da0ff80a42d016b8bf3bfe960b6f6e5778fd3.patch ==> Patching ==> Applying fead9b7c43b03f4b3d711019bc6395ef140f265c.patch patching file hphp/hack/hhi/Makefile ==> Applying 59d7d2885e21cfda51ea3d436522807383d5bfff.patch patching file hphp/hack/src/fsevents/fsevents_stubs.c ==> Applying 57580d81e4b1da628c82d6d28d257f483aaa7b14.patch patching file hphp/hack/src/client/clientBuild.ml patching file hphp/hack/src/client/clientCheck.ml patching file hphp/hack/src/client/clientIde.ml patching file hphp/hack/src/client/clientRestart.ml patching file hphp/hack/src/client/clientStart.ml patching file hphp/hack/src/client/clientStop.ml patching file hphp/hack/src/monitor/serverMonitor.ml patching file hphp/hack/src/procs/worker.ml patching file hphp/hack/src/server/hhServerMonitor.ml patching file hphp/hack/src/utils/exit_status.ml patching file hphp/hack/src/utils/sys_utils.ml ==> Applying 5e92f7701626ebd7eb3c5b8bd57f186cb8e9e3b2.patch patching file hphp/hack/src/_tags ==> Applying 9d3fff4b0f05b1ed568f93d4bbc9e0336baffbf0.patch patching file hphp/hack/src/utils/lint.ml patching file hphp/hack/src/utils/lint.mli ==> Applying 21004b2dba474ea22cdd4a0d0fa47a849ac14367.patch patching file hphp/hack/src/_tags ==> cmake -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/hhvm/3.13.1_1 -DDEFAULT_CONFI ==> make Last 15 lines from /Users/hamidebadi/Library/Logs/Homebrew/hhvm/02.make: [ 56%] Building CXX object hphp/runtime/CMakeFiles/hphp_runtime_static.dir/base/mixed-array.cpp.o [ 56%] Building CXX object hphp/runtime/CMakeFiles/hphp_runtime_static.dir/base/object-data.cpp.o [ 57%] Building CXX object hphp/runtime/CMakeFiles/hphp_runtime_static.dir/base/output-file.cpp.o In file included from /tmp/hhvm-20160626-30934-199nwfh/hhvm-3.13.1/hphp/runtime/base/object-data.cpp:33: In file included from /tmp/hhvm-20160626-30934-199nwfh/hhvm-3.13.1/hphp/runtime/ext/simplexml/ext_simplexml.h:22: /tmp/hhvm-20160626-30934-199nwfh/hhvm-3.13.1/hphp/runtime/ext/libxml/ext_libxml.h:23:10: fatal error: 'libxml/parser.h' file not found

include <libxml/parser.h>

     ^

[ 57%] Building CXX object hphp/runtime/CMakeFiles/hphp_runtime_static.dir/base/packed-array.cpp.o [ 57%] Building CXX object hphp/runtime/CMakeFiles/hphp_runtime_static.dir/base/php-globals.cpp.o 1 error generated. make[2]: * [hphp/runtime/CMakeFiles/hphp_runtime_static.dir/base/object-data.cpp.o] Error 1 make[2]: * Waiting for unfinished jobs.... make[1]: * [hphp/runtime/CMakeFiles/hphp_runtime_static.dir/all] Error 2 make: * [all] Error 2

READ THIS: https://git.io/brew-troubleshooting If reporting this issue please do so at (not Homebrew/brew): https://github.com/hhvm/homebrew-hhvm/issues

Context and Logs

Parameter Value
OS X Version: 10.11Homebrew Version: Homebrew 0.9.9
Xcode Version: 7.3.1

Output of clang -v: Apple LLVM version 7.3.0 (clang-703.0.31)

Build logs: https://gist.github.com/27e1cc0ae18600c9571c585e3f8720db`

jwatzman commented 8 years ago

You've upgraded XCode but not the CLI tools. Try xcode-select --install. LMK if that doesn't fix it.

ghost commented 8 years ago

@jwatzman thanks it fixed my issue :)

ghost commented 8 years ago

@jwatzman Hey! Do you know where the typechecker is located when I used brew install hhvm command ? I cant find it's path!

jwatzman commented 8 years ago

It should be at $(brew --prefix)/bin/hh_client (and hh_server) -- usually /usr/local/bin/hh_client.