赞
踩
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
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。