Forum: NGINX Update from 0.6.32 to 0.7.59

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
2974d09ac2541e892966b762aad84943?d=identicon&s=25 grigory (Guest)
on 2009-05-26 14:32
(Received via mailing list)
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
103e3ecb1c838c6c7e52a0ee12ee6e1a?d=identicon&s=25 Glen Lumanau (Guest)
on 2009-05-26 14:45
(Received via mailing list)
This error is just been discussed.

You can solve it by installing openssl-devel package

Best Regards,

Glen Lumanau
-
Sent from my BlackBerry®
5640e332954fc0006aea97a155ce0afd?d=identicon&s=25 Igor Sysoev (Guest)
on 2009-05-26 14:48
(Received via mailing list)
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
2974d09ac2541e892966b762aad84943?d=identicon&s=25 grigory (Guest)
on 2009-05-26 15:38
(Received via mailing list)
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. :-)

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,2388,2397#msg-2397
This topic is locked and can not be replied to.