Administrator
发布于 2022-12-04 / 578 阅读
1
0

nghttp2编译

构建http2可直接编译 https://github.com/nghttp2/nghttp2

构建http3需要使用

OpenSSL https://github.com/quictls/openssl
ngxhttp3 https://github.com/ngtcp2/nghttp3
ngxtcp2 https://github.com/ngtcp2/ngtcp2
同时curl的configure参数带上–with-openssl= --with-nghttp3= --with-ngtcp2=

[root@cdn-test nghttp2-1.19.0]# ./configure -prefix=/home/zhoulei/nghttp2-1.19.0 --enable-app
configure: summary of build options:

    Package version: 1.19.0
    Library version: 26:4:12
    Install prefix:  /home/zhoulei/nghttp2-1.19.0
    System types:
      Build:         x86_64-pc-linux-gnu
      Host:          x86_64-pc-linux-gnu
      Target:        x86_64-pc-linux-gnu
    Compiler:
      C compiler:     gcc
      CFLAGS:         -g -O2
      LDFLAGS:        
      C++ compiler:   g++
      CXXFLAGS:       
      CXXCPP:         
      C preprocessor: gcc -E
      CPPFLAGS:       
      WARNCFLAGS:     
      WARNCXXFLAGS:   
      CXX1XCXXFLAGS:  
      EXTRACFLAG:     -fvisibility=hidden
      LIBS:           
    Library:
      Shared:         yes
      Static:         yes
    Python:
      Python:         /usr/bin/python
      PYTHON_VERSION: 2.7
      pyexecdir:      ${exec_prefix}/lib64/python2.7/site-packages
      Python-dev:     yes
      PYTHON_CPPFLAGS:-I/usr/include/python2.7
      PYTHON_LDFLAGS: -L/usr/lib64 -lpython2.7
      Cython:         cython
    Test:
      CUnit:          no (CFLAGS='' LIBS='')
      Failmalloc:     yes
    Libs:
      OpenSSL:        yes (CFLAGS='-I/home/zhoulei/bin/include  ' LIBS='-L/home/zhoulei/bin/lib -lssl -lcrypto  ')
      Libxml2:        no (CFLAGS='' LIBS='')
      Libev:          no (CFLAGS='' LIBS='')
      Libc-ares       no (CFLAGS='' LIBS='')
      Libevent(SSL):  no (CFLAGS='' LIBS='')
      Spdylay:        no (CFLAGS='' LIBS='')
      Jansson:        no (CFLAGS='' LIBS='')
      Jemalloc:       no (LIBS='')
      Zlib:           yes (CFLAGS=' ' LIBS='-lz  ')
      Boost CPPFLAGS: 
      Boost LDFLAGS:  
      Boost::ASIO:    
      Boost::System:  
      Boost::Thread:  
    Third-party:
      http-parser:    no
      MRuby:          no (CFLAGS='' LIBS='')
      Neverbleed:     no
    Features:
      Applications:   no
      HPACK tools:    no
      Libnghttp2_asio:no
      Examples:       no
      Python bindings:yes
      Threading:      no

[root@cdn-test nghttp2-1.19.0]#

评论