# Compile error for Nginx 1.1.2

**URL:** <https://www.ruby-forum.com/t/compile-error-for-nginx-1-1-2/217438>\
**Category:** NGINX\
**Created:** [March 1, 2012, 2:29pm UTC](https://www.ruby-forum.com/t/compile-error-for-nginx-1-1-2/217438 "2012-03-01T14:29:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [March 1, 2012, 2:29pm UTC](https://www.ruby-forum.com/t/compile-error-for-nginx-1-1-2/217438/1 "2012-03-01T14:29:45Z")

</div>

Hello all,

I am trying to install Nginx-1.1.2 on mac os x-lion,but while doing make  
i am getting following error,i have searched through forums but didnt  
found clear steps to resolve the error,  
please help

cc1: warnings being treated as errors  
src/core/ngx\_crypt.c: In function ‘ngx\_crypt\_apr1’:  
src/core/ngx\_crypt.c:76: warning: ‘MD5\_Init’ is deprecated (declared at  
/usr/include/openssl/md5.h:113)  
src/core/ngx\_crypt.c:77: warning: ‘MD5\_Update’ is deprecated (declared  
at /usr/include/openssl/md5.h:114)  
src/core/ngx\_crypt.c:78: warning: ‘MD5\_Update’ is deprecated (declared  
at /usr/include/openssl/md5.h:114)  
src/core/ngx\_crypt.c:79: warning: ‘MD5\_Update’ is deprecated (declared  
at /usr/include/openssl/md5.h:114)  
src/core/ngx\_crypt.c:81: warning: ‘MD5\_Init’ is deprecated (declared at  
/usr/include/openssl/md5.h:113)  
src/core/ngx\_crypt.c:82: warning: ‘MD5\_Update’ is deprecated (declared  
at /usr/include/openssl/md5.h:114)  
src/core/ngx\_crypt.c:83: warning: ‘MD5\_Update’ is deprecated (declared  
at /usr/include/openssl/md5.h:114)  
src/core/ngx\_crypt.c:84: warning: ‘MD5\_Update’ is deprecated (declared  
at /usr/include/openssl/md5.h:114)  
src/core/ngx\_crypt.c:85: warning: ‘MD5\_Final’ is deprecated (declared at  
/usr/include/openssl/md5.h:115)  
src/core/ngx\_crypt.c:88: warning: ‘MD5\_Update’ is deprecated (declared  
at /usr/include/openssl/md5.h:114)  
src/core/ngx\_crypt.c:95: warning: ‘MD5\_Update’ is deprecated (declared  
at /usr/include/openssl/md5.h:114)  
src/core/ngx\_crypt.c:98: warning: ‘MD5\_Update’ is deprecated (declared  
at /usr/include/openssl/md5.h:114)  
src/core/ngx\_crypt.c:102: warning: ‘MD5\_Final’ is deprecated (declared  
at /usr/include/openssl/md5.h:115)  
src/core/ngx\_crypt.c:105: warning: ‘MD5\_Init’ is deprecated (declared at  
/usr/include/openssl/md5.h:113)  
src/core/ngx\_crypt.c:108: warning: ‘MD5\_Update’ is deprecated (declared  
at /usr/include/openssl/md5.h:114)  
src/core/ngx\_crypt.c:111: warning: ‘MD5\_Update’ is deprecated (declared  
at /usr/include/openssl/md5.h:114)  
src/core/ngx\_crypt.c:115: warning: ‘MD5\_Update’ is deprecated (declared  
at /usr/include/openssl/md5.h:114)  
src/core/ngx\_crypt.c:119: warning: ‘MD5\_Update’ is deprecated (declared  
at /usr/include/openssl/md5.h:114)  
src/core/ngx\_crypt.c:123: warning: ‘MD5\_Update’ is deprecated (declared  
at /usr/include/openssl/md5.h:114)  
src/core/ngx\_crypt.c:126: warning: ‘MD5\_Update’ is deprecated (declared  
at /usr/include/openssl/md5.h:114)  
src/core/ngx\_crypt.c:129: warning: ‘MD5\_Final’ is deprecated (declared  
at /usr/include/openssl/md5.h:115)  
src/core/ngx\_crypt.c: In function ‘ngx\_crypt\_ssha’:  
src/core/ngx\_crypt.c:215: warning: ‘SHA1\_Init’ is deprecated (declared  
at /usr/include/openssl/sha.h:121)  
src/core/ngx\_crypt.c:216: warning: ‘SHA1\_Update’ is deprecated (declared  
at /usr/include/openssl/sha.h:122)  
src/core/ngx\_crypt.c:217: warning: ‘SHA1\_Update’ is deprecated (declared  
at /usr/include/openssl/sha.h:122)  
src/core/ngx\_crypt.c:218: warning: ‘SHA1\_Final’ is deprecated (declared  
at /usr/include/openssl/sha.h:123)  
make[1]: \*\*\* [objs/src/core/ngx\_crypt.o] Error 1  
make: \*\*\* [build] Error 2

---

<div class="post-metadata">

**Author:** ![umesh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/c67d28/32.png) [@umesh](https://www.ruby-forum.com/u/umesh)\
**Post date:** [March 1, 2012, 3:01pm UTC](https://www.ruby-forum.com/t/compile-error-for-nginx-1-1-2/217438/2 "2012-03-01T15:01:39Z")

</div>

Hello!

On Thu, Mar 01, 2012 at 02:29:45PM +0100, umesh chaudhari wrote:

> /usr/include/openssl/md5.h:113)  
> Upgrade to nginx 1.1.16. There is a problem with openssl shipped  
> with Mac OS X Lion, the workaround has been added in nginx 1.1.3.

Maxim D.

---

<div class="post-metadata">

**Author:** ![umesh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/c67d28/32.png) [@umesh](https://www.ruby-forum.com/u/umesh)\
**Post date:** [March 2, 2012, 5:58am UTC](https://www.ruby-forum.com/t/compile-error-for-nginx-1-1-2/217438/3 "2012-03-02T05:58:07Z")

</div>

Hi Maxim, thanks for the quick reply but i managed to install nginx  
using brew on my mac…which solved my problem temporarily…brew has  
installed nginx-1.0.11…i will keep in mind your suggestion while  
installing nginx from source…thanks again…
