{"id":1259,"date":"2011-01-22T04:42:49","date_gmt":"2011-01-22T08:42:49","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=1259"},"modified":"2013-03-20T08:43:57","modified_gmt":"2013-03-20T12:43:57","slug":"pcre-library-not-found-nginx-compilation","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/pcre-library-not-found-nginx-compilation","title":{"rendered":"PCRE Library Not Found: Nginx compilation"},"content":{"rendered":"<p>The HTTP rewrite module requires the PCRE library during the Nginx compilation. The PCRE package contains Perl Compatible Regular Expression libraries useful for implementing regular expression pattern matching.<\/p>\n<p>If PCRE package is not installed on the server, NGINX installation will fail with the following message:<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\">checking for PCRE library ... not found <\/span><\/pre>\n<pre><span style=\"color: #0000ff;\">checking for PCRE library in \/usr\/local\/ ... not found <\/span><\/pre>\n<pre><span style=\"color: #0000ff;\">checking for PCRE library in \/usr\/include\/pcre\/ ... not found <\/span><\/pre>\n<pre><\/pre>\n<pre><\/pre>\n<p>&nbsp;<\/p>\n<pre><span style=\"color: #0000ff;\">.\/configure: the HTTP rewrite module requires the PCRE library. <\/span><\/pre>\n<pre><span style=\"color: #0000ff;\">You can disable the module by using --without-http_rewrite_module <\/span><\/pre>\n<pre><span style=\"color: #0000ff;\">or install the PCRE library into the system, <\/span><\/pre>\n<pre><span style=\"color: #0000ff;\">or build the PCRE library statically from the source with nginx <\/span><\/pre>\n<pre><span style=\"color: #0000ff;\">by using--with-pcre=&lt;path&gt; option.<\/span><\/pre>\n<\/blockquote>\n<p><strong>How to Install the PCRE library?<\/strong><\/p>\n<p><strong>1)<\/strong> SSH to the server and go to a temporary directory<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"> # cd \/usr\/local\/src<\/span><\/pre>\n<\/blockquote>\n<p><strong>2)<\/strong> Download PCRE:<\/p>\n<blockquote>\n<pre> <span style=\"color: #0000ff;\"># wget http:\/\/downloads.sourceforge.net\/pcre\/pcre-8.10.tar.bz2<\/span><\/pre>\n<\/blockquote>\n<p><strong>3)<\/strong> Unpack and change to the pcre directory<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># tar -jxf pcre-8.10.tar.bz2 <\/span><\/pre>\n<pre><span style=\"color: #0000ff;\"># cd pcre-8.10<\/span><\/pre>\n<\/blockquote>\n<p><strong>4)<\/strong> Confiure PCRE:<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># .\/configure<\/span><\/pre>\n<\/blockquote>\n<p><strong>5)<\/strong> Create the installation files and install PCRE<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># make <\/span><\/pre>\n<pre><span style=\"color: #0000ff;\"># make install<\/span><\/pre>\n<\/blockquote>\n<p>Once done, you should be able to install Nginx with the HTTP rewrite module.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The HTTP rewrite module requires the PCRE library during the Nginx compilation. The PCRE package contains Perl Compatible Regular Expression libraries useful for implementing regular expression pattern matching.<br \/>\nIf PCRE package is not installed on the server, NGINX installation will fail with the following message:<\/p>\n<p>checking for PCRE library &#8230; not found<br \/>\nchecking for PCRE library in \/usr\/local\/ &#8230; not found<br \/>\nchecking for PCRE library in \/usr\/include\/pcre\/ &#8230; not found <\/p>\n<p>&nbsp;<br \/>\n.\/configure: the HTTP rewrite module requires the PCRE library.<br \/>\nYou can disable the module by using &#8211;without-http_rewrite_module<br \/>\nor install the [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[1170,1172,1173,1171],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1259"}],"collection":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/comments?post=1259"}],"version-history":[{"count":8,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1259\/revisions"}],"predecessor-version":[{"id":2265,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1259\/revisions\/2265"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=1259"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=1259"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=1259"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}