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.

19 comments:

  1. I love it. I hope that more and more Blogger will use this feature in the future, because it just makes the internet better I think!

    Game Of Thrones 6 Spoiler online
    watch game of thrones online streaming
    Got season 6 episodes 1 2 3 4 watch online

    ReplyDelete
    Replies
    1. 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

      Delete
  2. The blog or and best that is extremely useful to keep I can share the ideas
    of the future as this is really what I was looking for, I am very comfortable and pleased to come here. Thank you very much.
    wings io| earn to die 6
    earn to die 5| happy wheels
    |Red Ball | duck life

    ReplyDelete
  3. 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
  4. This is one of the cult game now, a lot of people enjoy playing them . Also you can refer to the game :
    animal jam 2 | five nights at freddys 2 | hotmail login

    ReplyDelete
  5. Always wonder how well research content i found on this website.
    Please Check Blogs As well||happy wheels game||fireboyandwatergirl.co
    ||happywheels.in||happy wheels

    ReplyDelete
  6. 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
  7. I'm shakshi.I am working in India top most Escort serviceMumbai EScorts.If u want to join the all facility of escorts Bhubaneswar Escorts.pls call me & whatssap Puri Escorts
    visit the sites. Cuttack Escorts or follow me.jaipur Escorts

    ReplyDelete
  8. Softhives
    Get your hands on latest mac and pc software. You can download unlimited games and pc applications cracks easily.
    softhives.com

    ReplyDelete
  9. Hey Thanks for sharing this valuable information with us. I will come back to your site and keep sharing this information with us.
    Best Regards - www.office.com/setup
    www.office.com/setup
    www.office.com/setup

    ReplyDelete