/usr/local/http2-15
of your OS X machine.-- openssl % wget --no-check-certificate https://www.openssl.org/source/openssl-1.0.2-beta3.tar.gz % tar xzf openssl-1.0.2-beta3.tar.gz % cd openssl-1.0.2-beta3 % KERNEL_BITS=64 ./config shared enable-ec_nistp_64_gcc_128 --prefix=/usr/local/http2-15 % make % make install -- libevent % wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz % CFLAGS=-I/usr/local/http2-15/include CXXFLAGS=-I/usr/local/http2-15/include LDFLAGS=-L/usr/local/http2-15/lib ./configure --prefix=/usr/local/http2-15 % make % make install -- zlib-1.2.8 % wget http://zlib.net/zlib-1.2.8.tar.gz % tar xzf zlib-1.2.8.tar.gz % cd zlib-1.2.8 % ./configure --prefix=/usr/local/http2-15 % make % make install -- spdylay % git clone https://github.com/tatsuhiro-t/spdylay.git % cd spdylay % (cd m4 && wget http://keithr.org/eric/src/whoisserver-nightly/m4/am_path_xml2.m4) % autoreconf -i % PKG_CONFIG_PATH=/usr/local/http2-15/lib/pkgconfig ./configure --prefix=/usr/local/http-15 % make % make install -- nghttp2 % git clone https://github.com/tatsuhiro-t/nghttp2.git % cd nghttp2 % (cd m4 && wget http://keithr.org/eric/src/whoisserver-nightly/m4/am_path_xml2.m4) % autoreconf -i % PKG_CONFIG_PATH=/usr/local/http2-15/lib/pkgconfig ./configure --prefix=/usr/local/http2-15 --enable-app --disable-threads % make % make install
note: I have gathered this from my command history. Please forgive me if any of them are wrong.
EDIT: added libevent as pointed out by @tatsuhiro-t.