nginx 0.7.44发布了,我还是像往常一样,下载下来,然后解压,然后编译。
make的时候,问题出现了,提示错误。
看样子好像是,ngx_http_file_cache.c中使用了未定义的MD5_Init等。看名字,这个与加密有关,也许问题出在openssl上。那么把--with-openssl去掉。
编译,安装顺利完成。不过这样就缺少了openssl支持,但是我暂时用不上,也就这样了。我尝试过使用最新版本的Openssl,但是也无法编译通过。等0.7.45出来以后,再看看还会不会有这个问题吧。
引用
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
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.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
make
编译,安装顺利完成。不过这样就缺少了openssl支持,但是我暂时用不上,也就这样了。我尝试过使用最新版本的Openssl,但是也无法编译通过。等0.7.45出来以后,再看看还会不会有这个问题吧。
【转】nginx init.d boot-up script for Linux
nginx 0.7.44无法编译的终极解决办法


2009/03/24 17:52 | by
