Nginx Instalation : PCRE Library Not Found
by Kang Asep on 30.05.11
PCRE Library is a library that is required to use HTTP rewrite when we do a compilation of nginx. The PCRE package contains Perl Compatible Regular Expression libraries useful for implementing regular expression pattern matching.
If PCRE is not installed on the server, it will result in the following error message during the Nginx compliation:
checking for PCRE library ... not found
checking for PCRE library in /usr/local/ ... not found
checking for PCRE library in /usr/include/pcre/ ... not found
./configure: error: the HTTP rewrite module requires the PCRE library.
You can either disable the module by using --without-http_rewrite_module
option, or install the PCRE library into the system, or build the PCRE library
statically from the source with nginx by using --with-pcre=<path> option.
How to Install the PCRE library so we can install Nginx Web Server with the HTTP rewrite module ? login into your server via SSH as user ‘root’
1) First, goto a temporary directory
2) Download PCRE:
# wget http://downloads.sourceforge.net/pcre/pcre-8.10.tar.bz2
3) Unpack and change to the pcre directory
# tar -jxf pcre-8.10.tar.bz2
# cd pcre-8.10
4) Confiure PCRE:
5) Create the installation files and install PCRE
Once done, you should be able to install Nginx with the HTTP rewrite module.
Another Interesting Articles
- Wordpress Permalink with Kloxo and Lighttpd
When we use the kloxo control panel and choose Lighttpd as a web server, and then when we are going ... - Powerful Web Server Using nginx, php5 FastCGI, xcache on ubuntu
Nginx is a powerful web server. few large sites start using this web server. This web server is supe... - Install WordPress on Ubuntu Server using Nginx, PHP, MySQL
This timr i want to talk how to Install WordPress on Ubuntu Server using Nginx, PHP, MySQL. If durin... - How to Secure and Optimize a Server or VPS – 2
Tutorials following continued discussions from How to Secure and Optimize a Server or VPS part 1
... - How to Secure and Optimize a Server or VPS – I
When you have a Dedicated Server or Virtual Private Server (VPS) security issues and optimization of... - How to Set Up a Web Server using Webmin on CentOS
Now I will try for a bit of explaining how to set up a web server using webmin on CentOS, for those ... - Apache, PHP and MySQL Optimization
For Dedicated Server or VPS users, Apache, PHP and MySQL Optimization is very important, because wit... - Litespeed Web Server
Litespeed Web server is a new technology that was created to replace the Apache Web Server in the fu... - Differences and Advantages Shared Server and Dedicated Server
What is the Differences and Advantages Shared Server and Dedicated Server ? Perhaps many who already...
Tagged as:
http rewrite,
nginx,
nginx Instalation,
pcre library,
rewrite,
web server