Install the PCRE library in Ubuntu or Debian

Source: Internet
Author: User
Tags install openssl
I need to compile some applications and Perl5 compatible regular expression library (PCRE ). In CentOs, I can use a pcre-devel, But Debian is different. How can I install pcre-devel in Debian/UbuntuLinux? Perl-compatibleregularexpressionlibr I need to compile some applications and also require Perl 5 compatible regular expression library (PCRE ). In CentOs, I can use a pcre-devel, But Debian is different. How can I install pcre-devel in 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:

Perl compatible regular expression library (PCRE) has its own native API, but this series of encapsulation functions are based on posix api, and posix api also supports libpcreposix Library. In this way, after a POSIX call interface is provided to PCRE, the regular expression itself still follows the Perl syntax and semantics. The header file of POSIX-style is pcreposix. h. therefore, to install PCRE, run the following command.

Sudo apt-get update
Sudo apt-get install libpcre3 libpcre3-dev

You may also need to install
Sudo apt-get install openssl libssl-dev
 
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.