This is a step-by-step guide to building Heron on Mac OS X (versions 10.10 and 10.11).
If Homebrew isn't yet installed on your system, you can install it using this one-liner:
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
wget -O /tmp/bazel.sh https://github.com/bazelbuild/bazel/releases/download/3.0.0/bazel-3.0.0-installer-darwin-x86_64.sh chmod +x /tmp/bazel.sh /tmp/bazel.sh --user
brew install automake
brew install cmake
brew install libtool
$ export CC=/usr/bin/clang $ export CXX=/usr/bin/clang++ $ echo $CC $CXX
$ git clone https://github.com/apache/incubator-heron.git && cd incubator-heron
$ ./bazel_configure.py
If this configure script fails with missing dependencies, Homebrew can be used to install those dependencies.
$ bazel build --config=darwin heron/...
$ bazel build --config=darwin scripts/packages:binpkgs $ bazel build --config=darwin scripts/packages:tarpkgs
This will install Heron packages in the bazel-bin/scripts/packages/
directory.