解决nginx 集成openssl的异常

来源:互联网 发布:淘宝店标制作软件 编辑:程序博客网 时间:2024/06/10 23:40

解决nginx 集成openssl的异常

        一、背景

       1、nginx 集成 openssl 报错。具体的报错信息如下:       

                     undefined reference to `crypt_r' error       
       

        二、解决方法

        在configure 后添加  --with-cc-opt="-D NGX_HAVE_GNU_CRYPT_R=0"   编译参数即可。  
           添加后的编译参数为:

          ./configure  --with-cc-opt='-D NGX_HAVE_GNU_CRYPT_R=0'--prefix=/usr/local/nginx/  --with-http_ssl_module --with-pcre=../../pcre-8.39 --with-openssl=/root/openssl-1.0.1c-mp-gcl/openssl-1.0.1c-mp


       三、 参考文档

                http://mailman.nginx.org/pipermail/nginx-ru/2007-November/014343.html

阅读全文
1 0