# Compiling on Mac OS X Leopard (intel)

**URL:** <https://www.ruby-forum.com/t/compiling-on-mac-os-x-leopard-intel/119158>\
**Category:** NGINX\
**Created:** [November 4, 2007, 12:24am UTC](https://www.ruby-forum.com/t/compiling-on-mac-os-x-leopard-intel/119158 "2007-11-04T00:24:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![croxmeister](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/53a042/32.png) [@croxmeister](https://www.ruby-forum.com/u/croxmeister)\
**Post date:** [November 4, 2007, 12:24am UTC](https://www.ruby-forum.com/t/compiling-on-mac-os-x-leopard-intel/119158/1 "2007-11-04T00:24:18Z")

</div>

Wondering if anyone could shed some light on a problem I’m having with  
the make file,

./configure --with-http\_ssl\_module --prefix=/usr/local/nginx  
–with-pcre=/usr/local

when I then run ‘make’ I get the following error;

make -f objs/Makefile  
cd /usr/local   
&& if [-f Makefile]; then make distclean; fi   
&& CC=“gcc” CFLAGS="-O2 -fomit-frame-pointer -pipe "   
./configure --disable-shared  
/bin/sh: ./configure: No such file or directory  
make[1]: \*\*\* [/usr/local/Makefile] Error 127  
make: \*\*\* [build] Error 2

Failing because Makefile doesn’t exist in /usr/local/

Why is it looking here for it?

---

<div class="post-metadata">

**Author:** ![croxmeister](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/53a042/32.png) [@croxmeister](https://www.ruby-forum.com/u/croxmeister)\
**Post date:** [November 4, 2007, 8:33am UTC](https://www.ruby-forum.com/t/compiling-on-mac-os-x-leopard-intel/119158/2 "2007-11-04T08:33:18Z")

</div>

On Sun, Nov 04, 2007 at 12:24:18AM +0100, Richard C. wrote:

> && if [-f Makefile]; then make distclean; fi   
> && CC=“gcc” CFLAGS="-O2 -fomit-frame-pointer -pipe "   
> ./configure --disable-shared  
> /bin/sh: ./configure: No such file or directory  
> make[1]: \*\*\* [/usr/local/Makefile] Error 127  
> make: \*\*\* [build] Error 2
> 
> Failing because Makefile doesn’t exist in /usr/local/
> 
> Why is it looking here for it?

–with-pcre= is looking for untarred PCRE sources to built them  
statically  
with nginx. If you have got the system PCRE library in /usr/local/, then  
you do not need to specify it: configure should find it by itself.  
So remove “–with-pcre=/usr/local” at all.

---

<div class="post-metadata">

**Author:** ![croxmeister](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/53a042/32.png) [@croxmeister](https://www.ruby-forum.com/u/croxmeister)\
**Post date:** [November 4, 2007, 12:21pm UTC](https://www.ruby-forum.com/t/compiling-on-mac-os-x-leopard-intel/119158/3 "2007-11-04T12:21:58Z")

</div>

Igor S. wrote:

> –with-pcre= is looking for untarred PCRE sources to built them  
> statically  
> with nginx. If you have got the system PCRE library in /usr/local/, then  
> you do not need to specify it: configure should find it by itself.  
> So remove “–with-pcre=/usr/local” at all.

Thank you Igor, it successfully compiled.
