V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
alect
V2EX  ›  问与答

apache 2.4.17 应该怎么编译才能支持 http2?

  •  
  •   alect · 2015-10-14 19:35:57 +08:00 · 2849 次点击
    这是一个创建于 3123 天前的主题,其中的信息可能已经有所发展或是发生改变。
    编译的时候加上选项--enable-http2 提示错误。。谁成功了?
    第 1 条附言  ·  2015-10-15 01:31:43 +08:00
    手工编译失败, yum 成功。。。
    依赖 libnghttp2 ,需要先安装,之前不知为何手工编译总是失败,后来换了 yum 就可以了
    yum install libnghttp2-devel ,
    然后再编译 apache 加上--enable-http2 就成功了
    4 条回复    2016-12-25 00:13:02 +08:00
    timonwong
        1
    timonwong  
       2015-10-14 20:29:55 +08:00
    mod_http2 依赖 nghttp2 ,装了没有?
    alect
        2
    alect  
    OP
       2015-10-14 20:56:30 +08:00
    @timonwong git 装了,但是装的时候提示版本小于 1.0.0 。。。
    能给个大概的配置方法吗?我应该是哪里姿势不对。。
    alect
        3
    alect  
    OP
       2015-10-15 01:30:35 +08:00
    奶奶的,手工编译失败, yum 成功。。。 yum install libnghttp2-devel ,然后再加上--enable-http2 就成功了
    Binarization
        4
    Binarization  
       2016-12-25 00:13:02 +08:00
    Apache mod_http2 至今还是实验功能
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1069 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 17:55 · PVG 01:55 · LAX 10:55 · JFK 13:55
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.