Update from 0.6.32 to 0.7.59


#1

Hi, I have installed nginx-0.6.32 and it works fine.
I’ve been trying to install the new nginx (0.7.59) today but received
some errors:

./configure --with-pcre=/usr/local/nginx/nginx-0.6.32/pcre-7.9
–with-zlib=/usr/local/nginx/nginx-0.6.32/zlib-1.2.3

Configuration summary

  • using PCRE library: /usr/local/nginx/nginx-0.6.32/pcre-7.9
  • OpenSSL library is not used
  • md5 library is not found
  • sha1 library is not used
  • using zlib library: /usr/local/nginx/nginx-0.6.32/zlib-1.2.3

nginx path prefix: “/usr/local/nginx”
nginx binary file: “/usr/local/nginx/sbin/nginx”
nginx configuration prefix: “/usr/local/nginx/conf”
nginx configuration file: “/usr/local/nginx/conf/nginx.conf”
nginx pid file: “/usr/local/nginx/logs/nginx.pid”
nginx error log file: “/usr/local/nginx/logs/error.log”
nginx http access log file: “/usr/local/nginx/logs/access.log”
nginx http client request body temporary files: “client_body_temp”
nginx http proxy temporary files: “proxy_temp”
nginx http fastcgi temporary files: “fastcgi_temp”

An the error is:

In file included from src/http/ngx_http_file_cache.c:10:
src/core/ngx_md5.h:18:17: error: md5.h: No such file or directory
In file included from src/http/ngx_http_file_cache.c:10:
src/core/ngx_md5.h:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘ngx_md5_t’
src/http/ngx_http_file_cache.c: In function
‘ngx_http_file_cache_create_key’:
src/http/ngx_http_file_cache.c:120: error: ‘ngx_md5_t’ undeclared (first
use in this function)
src/http/ngx_http_file_cache.c:120: error: (Each undeclared identifier
is reported only once
src/http/ngx_http_file_cache.c:120: error: for each function it appears
in.)
src/http/ngx_http_file_cache.c:120: error: expected ‘;’ before ‘md5’
cc1: warnings being treated as errors
src/http/ngx_http_file_cache.c:128: warning: implicit declaration of
function ‘MD5Init’
src/http/ngx_http_file_cache.c:128: error: ‘md5’ undeclared (first use
in this function)
src/http/ngx_http_file_cache.c:138: warning: implicit declaration of
function ‘MD5Update’
src/http/ngx_http_file_cache.c:145: warning: implicit declaration of
function ‘MD5Final’
make[1]: *** Error 1
make[1]: Leaving directory `/usr/local/nginx/nginx-0.7.59’
make: *** Error 2

What i need to do to solve this problem?

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,2388,2388#msg-2388


#2

This error is just been discussed.

You can solve it by installing openssl-devel package

Best Regards,

Glen L.

Sent from my BlackBerry®


#3

On Tue, May 26, 2009 at 08:23:51AM -0400, grigory wrote:

  • using zlib library: /usr/local/nginx/nginx-0.6.32/zlib-1.2.3
    nginx http fastcgi temporary files: “fastcgi_temp”

An the error is:

In file included from src/http/ngx_http_file_cache.c:10:
src/core/ngx_md5.h:18:17: error: md5.h: No such file or directory

Currently nginx can use md5 in
*) system md5 library
*) OpenSSL system library (requires openssl-dev package on Linux)
*) md5 library built from sources
*) OpenSSL library built from sources

However, nginx builds OpenSSL from sources only if you use
–with-http_ssl_module

In your case you may download md5 library sources
http://sysoev/nginx/libmd5-0.8.2b.tar.gz
and use --with-md5=/path/to/libmd5-0.8.2b


#4

Thanks. Openssl-devel solved my problem. I thought that “yum install
openssl” was quite enough and didn’t install “yum install
openssl-devel”. Now everything is okay. Thanks again. :slight_smile:

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,2388,2397#msg-2397