nginx 0.7.44发布了,我还是像往常一样,下载下来,然后解压,然后编译。
引用
wget http://sysoev.ru/nginx/nginx-0.7.44.tar.gz
tar zxvf nginx-0.7.44.tar.gz
cd nginx-0.7.44
./configure --user=www --group=www --prefix=/usr/local/nginx/ --with-http_stub_status_module --with-openssl=/usr/lib
make

  make的时候,问题出现了,提示错误。
引用
objs/src/http/ngx_http_file_cache.o: In function `ngx_http_file_cache_create_key':
ngx_http_file_cache.c.text+0x119d): undefined reference to `MD5_Init'
ngx_http_file_cache.c.text+0x121c): undefined reference to `MD5_Update'
ngx_http_file_cache.c.text+0x124d): undefined reference to `MD5_Final'
collect2: ld returned 1 exit status
make[1]: *** [objs/nginx] Error 1
make[1]: Leaving directory `/home/softs/nginx-0.7.44'
make: *** [build] Error 2

  看样子好像是,ngx_http_file_cache.c中使用了未定义的MD5_Init等。看名字,这个与加密有关,也许问题出在openssl上。那么把--with-openssl去掉。
引用
./configure --user=www --group=www --prefix=/usr/local/nginx/ --with-http_stub_status_module
make

  编译,安装顺利完成。不过这样就缺少了openssl支持,但是我暂时用不上,也就这样了。我尝试过使用最新版本的Openssl,但是也无法编译通过。等0.7.45出来以后,再看看还会不会有这个问题吧。

Tags:
纯技术分类 » Web服务器 | 评论(0) | 引用(0) | 阅读(1070)
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]