Error Pcre Headers Not Found
Contents |
a comment Question:When I try to compile a program, it fails with the following error. How can I fix this error pcre header file not found on [insert your Linux distro]?
configure: error: pcre.h not found ... pcre.h pcre header file not found is the development part present is a development header file for PCRE (Perl Compatible Regular Expressions), which is a C library for pattern-matching pcre.h no such file or directory ubuntu regular expressions whose syntax and semantics are inspired by the Perl language. More powerful and flexible than POSIX regular expressions, PCRE is popularly used by many open-source projects such as ApacheApache Pcre.h No Such File Or Directory
HTTP server, PHP, Postfix, Nmap, etc. There are also PCRE wrappers written in different languages (e.g., C++, PHP, .NET, Java) and built around PCRE API specification. The error "configure: error: pcre.h not found" indicates that your Linux system does not have PCRE development files installed. To install PCRE library and development header files, do the following. Install PCRE on Ubuntu, Debian, Linux fatal error: 'pcre.h' file not found mac Mint $ sudo apt-get install libpcre3-dev Install PCRE on CentOS, Fedora, RHEL $ sudo yum install pcre-devel Install PCRE from the Latest Source If you want to build and install PCRE library and development files from the latest source, you can do the following. Prior to building, install build dependencies on Debian-based system: $ sudo apt-get install gcc g++ make Prior to building, install build dependencies on Red Hat-based system: $ sudo yum install gcc gcc-c++ make Finally, compile and install PCRE as follows. To customize build options, you can pass additional parameters (e.g., --prefix=/opt) to the configure script. To check available build options, you can run "./configure --help" $ wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.38.tar.gz $ tar -xf pcre-8.38.tar.gz $ cd pcre-8.38 $ ./configure $ make $ sudo make install Download this article as ad-free PDF (made possible by your kind donation): Subscribe to Ask Xmodulo Do you want to receive Linux related questions & answers published at Ask Xmodulo? Enter your email address below, and we will deliver our Linux Q&A straight to your email box, for free. Delivery powered by Google Feedburner. Support X
or build with --without-pcre Added by tapas_mishra about 6 years ago I am installing lighttpd on Ubuntu 9.04.As per instructions on this page[[http://redmine.lighttpd.net/projects/lighttpd/wiki/InstallFromSource]]I did
svn checkout svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x/
cd lighttpd-1.4.x
./autogen.shand then when executed ./configure Got following error
Pcre-devel Rpm
configure: error: pcre-config not found, install the pcre-devel package or build with --without-pcre Also one
Undefined Reference To `pcre_free'
more errorconfigure: error: bzip2-headers and/or libs where not found, install them or build with --without-bzip2
What is that complaining about ? Replies (5) RE: http://ask.xmodulo.com/configure-error-pcre-h-not-found.html configure: error: pcre-config not found, install the pcre-devel package or build with --without-pcre - Added by crushmaster about 6 years ago You need the devel packages in order to build lighty. I think Ubuntu should be able to do it for you Debian style. Try:sudo apt-get build-dep lighttpdand things should work... http://redmine.lighttpd.net/boards/2/topics/3402 RE: configure: error: pcre-config not found, install the pcre-devel package or build with --without-pcre - Added by tapas_mishra about 6 years ago Tried did not worked. RE: configure: error: pcre-config not found, install the pcre-devel package or build with --without-pcre - Added by icy about 6 years ago Install the missing packages like it says. RE: configure: error: pcre-config not found, install the pcre-devel package or build with --without-pcre - Added by crushmaster about 6 years ago Try: sudo apt-get install libpcre3-dev libbz2-devand run configure again. RE: configure: error: pcre-config not found, install the pcre-devel package or build with --without-pcre - Added by tapas_mishra about 6 years ago Hi,by the time your reply came I was able to do it.But my step for libpcre3-dev had failed even before you suggested I had tried the same.To be able to get it up I had installed all pcre libraries which were
here for a quick overview of the site Help Center Detailed answers to any questions you http://unix.stackexchange.com/questions/66692/apache-installation-configuration-cant-find-pcre-pcre-config-for-libpcre-not might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of not found Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Apache installation configuration can't find PCRE? ( pcre-config for libpcre not found ) up vote 6 down vote file not found favorite These are the requirements and instructions on how to install Apache on Linux. http://httpd.apache.org/docs/current/install.html So I've installed everything (c++ compiler, apr and apr-util) to be able to install Apache correctly. The only thing left is PCRE, I've installed it and it's located in my /usr/local/src/pcre-8.32 As I'm trying to sudo ./configure --with-included-apr I get this error: checking for pcre-config... false configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/ What am I doing wrong? software-installation dependencies apache-httpd share|improve this question edited May 13 at 6:36 Jeff Schaller 10.6k51939 asked Mar 3 '13 at 2:25 Ivan Ivković 211127 add a comment| 3 Answers 3 active oldest votes up vote 8 down vote This solved it. First I installed pcre in /usr/local/pcre, using ./configure --prefix=/usr/local/pcre make sudo make install Then installed apache with ./configure --with-included-apr --with-pcre=/usr/local/pcre make sudo make install share|improve this answer edited Jun 29 '14 at 14:09 terdon♦ 87.3k16146252 answered Mar 3 '13 at 2:54 Ivan Ivković 211127 add a comm