Ubuntu / Debian Install PCRE Library ( Perl 5 Compatible Regular Expression Library )

by on March 28, 2008 · 7 comments· LAST UPDATED March 28, 2009

in , ,

I need to compile few application and I need Perl 5 Compatible Regular Expression Library (PCRE). Under CentOS I can use a package called pcre-devel, but Debian do not have the same. How do I install pcre-devel under Debian / Ubuntu Linux?

Perl-compatible regular expression library. PCRE has its own native API, but a set of "wrapper" functions that are based on the POSIX API are also supplied in the library libpcreposix. Note that this just provides a POSIX calling interface to PCRE: the regular expressions themselves still follow Perl syntax and semantics. The header file for the POSIX-style functions is called pcreposix.h. To install PCRE, type thy following command:
# apt-get update
# apt-get install libpcre3 libpcre3-dev

TwitterFacebookGoogle+PDF versionFound an error/typo on this page? Help us!

{ 7 comments… read them below or add one }

1 noobuntu November 29, 2010 at 9:29 pm

thank you sir!

Reply

2 Shaki Heighton June 16, 2011 at 1:36 pm

Hi, I’ve got a problem to install pcre in Ubuntu 10.04 LTS ‘cuz I’m getting error message that the is not found. Do I need to enable/add some repository ?

Thanks anyway …

Reply

3 Shaki Heighton June 16, 2011 at 1:37 pm

Hi, I’ve got a problem to install pcre in Ubuntu 10.04 LTS ‘cuz I’m getting error message that the package is not found. Do I need to enable/add some repository ?

Thanks anyway …

Reply

4 arcus February 28, 2012 at 10:35 am

it resolved my problem
I install passenger 3 for Ubuntu 11.04, error:
PCRE could not be downloaded

Reply

5 EvilG November 22, 2012 at 9:58 pm

Thank you!

Saved me a lot of trouble.

Reply

6 Revathi August 30, 2013 at 11:20 am

I have problem in install pcre. I give command in my terminal it saying,
E: Could not open lock file /var/lib/dpkg/lock – open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?.

Reply

7 csrgxtu February 25, 2014 at 6:56 am

thank you for solving my problem, i am using Lubuntu12.04 and want to install Nginx, when it appears a problem that says i don’t have a pcre lib.

Reply

Leave a Comment

Tagged as: , , , , , ,

Previous Faq:

Next Faq: