# Upgrade problem to nginx 1.2.3

**URL:** <https://www.ruby-forum.com/t/upgrade-problem-to-nginx-1-2-3/222779>\
**Category:** NGINX\
**Created:** [September 10, 2012, 3:23pm UTC](https://www.ruby-forum.com/t/upgrade-problem-to-nginx-1-2-3/222779 "2012-09-10T15:23:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [September 10, 2012, 3:23pm UTC](https://www.ruby-forum.com/t/upgrade-problem-to-nginx-1-2-3/222779/1 "2012-09-10T15:23:12Z")

</div>

Hi,

I wnat to upgrade to nginx 1.2.3 but it gives me the following error:

objs/src/core/ngx\_regex.o: In function `ngx_pcre_free_studies': /usr/local/src/nginx-1.2.3/src/core/ngx_regex.c:307: undefined reference to`pcre\_free\_study’  
collect2: ld returned 1 exit status  
make[1]: \*\*\* [objs/nginx] Error 1  
make[1]: Leaving directory `/usr/local/src/nginx-1.2.3’  
make: \*\*\* [build] Error 2

No I searched some, but I can’t find a solution.

It has to do something with the location of pcre.h. But when I do:

locate /pcre.h

It gives me:

/usr/include/pcre.h  
/usr/local/include/pcre.h

As you can see I have two versions of pcre.h running. I just wanted to  
remove one by doing a yum remove pcre, but then it wants to remove a  
lot of other packages.

Please help me, I am a newbee and don’t know what to do.

–  
Best regards,

Ruben

---

<div class="post-metadata">

**Author:** ![Ruben\_Docter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/7993a0/32.png) [@Ruben\_Docter](https://www.ruby-forum.com/u/Ruben_Docter)\
**Post date:** [September 11, 2012, 1:29am UTC](https://www.ruby-forum.com/t/upgrade-problem-to-nginx-1-2-3/222779/2 "2012-09-11T01:29:50Z")

</div>

How do you install nginx?

–

_Yours sincerely,_  
_Christopher M._

Ambassador/Contributor of Fedora Project and many others.

> **[Magic Transit LaB](http://cicku.me)**
>
> DDoS Protection for Networks - Cloudflare
