Wednesday, November 5, 2014

[memo] Installing nghttp2 onto OSX

Following the steps below should install nghttp2 with all of its useful apps for testing into /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.

8 comments:

  1. This is a great article. It gave me a lot of useful information. thank you very much.
    Run 3 | Stick Run 2 | Return Man 2
    Run 2 | Stick Run | Return Man | run 3 game | run 3 unblocked

    ReplyDelete
  2. You managed to hit the nail upon the top and also defined out the whole thing without having side effect , people could take a signal. Will likely be back to get more. Thanks
    Tangki Panel
    Tangki Fiberglass
    Jual Septic Tank
    Tangki Kimia
    Jual Talang Fiber
    Jual Rotameter
    jual mesin ro
    Jual Botol Plastik Agro

    Jual Botol Plastik Murah

    ReplyDelete
  3. Now you can win free stuff online, free giveaways, enter every day to win latest iphones, smartphones, macbooks, laptops, accessories, technology and much more.

    Participate, Win & Keep A Free Apple iPhone 6

    ReplyDelete
  4. Text Blast have been proven to be incredibly efficient in modern marketing with responses far better than other corresponding channels. Businesses have used the most basic feature of a cell phone and turned it into the ultimate channel of business communication.

    ReplyDelete
  5. Hey,
    I have read your article and very impressed with the way you have organised the information and data. I found it quite fascinating and valuable too. By the way, I am here to inform you that we are associated with the world’s no. 1 assignment help services i.e. Online Assignment Expert. Here, we are associated with a pool of experts and ex-professors from a reputed university and colleges. They help us in providing a flawless and genuine nursing assignment help. Therefore, the students searching for the world’s best academic writing professionals can reach to us any time.
    Our assignment experts are well-qualified, highly-experienced and capable to deal with any type of assignment whether it is related to essay, case study, research paper or any other form of assignment.
    Hence whenever you need assistance from assignment help Australia, reach to us. We assure that you will be profoundly happy with our nursing assignment help.

    ReplyDelete

Note: Only a member of this blog may post a comment.