IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    compile nginx on mac os x lion

    yzprofile发表于 2011-09-12 00:00:00
    love 0

    在lion下编译nginx会遇到openssl的一个错误,原因其中一些api被建议废弃了,编译时不停的报警告之后错误。 你可能得到一串下面类似的错误

    cc1: warnings being treated as errors
    src/core/ngx_crypt.c: In function ‘ngx_crypt_apr1’:
    src/core/ngx_crypt.c:76: warning: ‘MD5_Init’ is deprecated (declared
    at /usr/include/openssl/md5.h:113)

    只需要在configure时加上一条:

    ./configure --with-cc-opt="-Wno-deprecated-declarations"

    hava fun : )



沪ICP备19023445号-2号
友情链接