# Undefined symbols for architecture i386

**URL:** <https://www.ruby-forum.com/t/undefined-symbols-for-architecture-i386/216531>\
**Category:** NGINX\
**Created:** [February 7, 2012, 11:57am UTC](https://www.ruby-forum.com/t/undefined-symbols-for-architecture-i386/216531 "2012-02-07T11:57:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [February 7, 2012, 11:57am UTC](https://www.ruby-forum.com/t/undefined-symbols-for-architecture-i386/216531/1 "2012-02-07T11:57:03Z")

</div>

Hello,  
problems installing  
Mac OS X 10.6.8 arch i386  
pcre 8.21  
nginx 1.1.14  
make - ok  
make install:

```
objs/src/http/modules/ngx_http_browser_module.o \
objs/src/http/modules/ngx_http_upstream_ip_hash_module.o \
objs/src/http/modules/ngx_http_upstream_keepalive_module.o \
objs/ngx_modules.o \
-lpcre -lssl -lcrypto -lz

```

Undefined symbols for architecture i386:  
“\_pcre\_free\_study”, referenced from:  
\_ngx\_pcre\_free\_studies in ngx\_regex.o  
ld: symbol(s) not found for architecture i386  
collect2: ld returned 1 exit status  
make[1]: \*\*\* [objs/nginx] Error 1  
make: \*\*\* [install] Error 2

nginx 1.0.11 - ok

Thanx,  
Kakawki Inc.

---

<div class="post-metadata">

**Author:** ![suxsonic\_suxsonic](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/5e9695/32.png) [@suxsonic\_suxsonic](https://www.ruby-forum.com/u/suxsonic_suxsonic)\
**Post date:** [February 7, 2012, 12:19pm UTC](https://www.ruby-forum.com/t/undefined-symbols-for-architecture-i386/216531/2 "2012-02-07T12:19:30Z")

</div>

On Monday 06 February 2012 17:28:47 suxsonic suxsonic wrote:

> ```
> objs/src/http/modules/ngx_http_upstream_ip_hash_module.o \
> 
> ```
> 
> nginx 1.0.11 - ok

I assume this is related to your problem:

> **[comment:9 by Maxim Dounin, 15 years ago - #94 (1.1.14 compilation fails on Mac...](https://trac.nginx.org/nginx/ticket/94#comment:9)**
>
> The Mac OS X have /usr/lib/libpcre.0.dylib in base system and strange system search paths, so installing PCRE into /usr/local/ won't work - the pcre.h will be used from /usr/local/include, but libpcre.0.dylib will be used from /usr/lib (not...

wbr, Valentin V. Bartenev
