安装nghttp2:
apt-get install nghttp2
然鹅版本太低,从源码编译:
依赖:
sudo apt-get install libcunit1 libcunit1-doc libcunit1-dev sudo apt-get install libc-ares-dev sudo apt-get install libevent-dev sudo apt-get install libjansson-dev sudo apt-get install libjemalloc-dev sudo apt-get install libsystemd-dev sudo apt-get install libev-dev
编译:
git clone https://github.com/tatsuhiro-t/nghttp2.git && cd nghttp2 && autoreconf -i && automake && autoconf && ./configure && make && sudo make install
注意,务必:Applications: yes
Features: Applications: yes HPACK tools: no Libnghttp2_asio:no Examples: yes Python bindings:no Threading: yes
路径:
/usr/local/lib
/usr/local/share/doc/nghttp2