当前位置:   article > 正文

linux nginx discuz安装失败,安装 nginx出错 - 系统管理 - LinuxTone | 运维专家网论坛 - 最棒的Linux运维与开源架构技术交流社区! - Powered ...

nginx undefined reference to crypt

1、Tar  jxvf  pcre-7.8.tar.bz2

Cd pcre-7.8

./configure

Make && make install

2、        cd nginx-1.0.5

patch -p0  < /opt/software/nginx_upstream_hash-0.3.1/nginx.patch

3、./configure --prefix=/usr/local/nginx --with-http_stub_status_module \

--with-http_gzip_static_module --with-http_realip_module \

--with-http_flv_module --without-http_browser_module \

--without-mail_pop3_module --without-mail_imap_module \

--without-mail_smtp_module --with-http_perl_module \

--with-http_image_filter_module --with-http_ssl_module \

--add-module=/opt/software/agentzh-headers-more-nginx-module-9508330 \

--add-module=/opt/software/nginx_upstream_hash-0.3.1

4、make 就出错,现在错误是

-Wl,-E -Wl,-rpath,/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/auto/DynaLoader/DynaLoader.a -L/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE -lperl -lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc

objs/src/http/modules/ngx_http_image_filter_module.o: In function `ngx_http_image_source':

/opt/software/nginx-1.0.5/src/http/modules/ngx_http_image_filter_module.c:1000: undefined reference to `gdImageCreateFromJpegPtr'

/opt/software/nginx-1.0.5/src/http/modules/ngx_http_image_filter_module.c:1010: undefined reference to `gdImageCreateFromPngPtr'

objs/src/http/modules/ngx_http_image_filter_module.o: In function `ngx_http_image_out':

/opt/software/nginx-1.0.5/src/http/modules/ngx_http_image_filter_module.c:1076: undefined reference to `gdImageJpegPtr'

/opt/software/nginx-1.0.5/src/http/modules/ngx_http_image_filter_module.c:1086: undefined reference to `gdImagePngPtr'

collect2: ld returned 1 exit status

make[1]: *** [objs/nginx] Error 1

make[1]: Leaving directory `/opt/software/nginx-1.0.5'

make: *** [build] Error 2

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/笔触狂放9/article/detail/662181
推荐阅读
相关标签
  

闽ICP备14008679号