pcre-config command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
pcre-config: command not found
or when using sudo you get the following error message
sudo: pcre-config: command not found
Solutions to pcre-config: command not found
How To Fix pcre-config: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu pcre-config is provided by libpcre3-dev package.
libpcre3-dev is:
This is a library of functions to support regular expressions whose syntax and semantics are as close as possible to those of the Perl 5 language.
New packages should use the newer pcre2 packages, and existing packages should migrate to pcre2.
This package contains the development files, including headers, static libraries, and documentation.
To fix this problem, we can install more using the command below.
sudo apt-get -y install libpcre3-dev
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libpcre3-dev.
sudo apt -y install libpcre3-dev
Or if you have aptitude installed you can use the following command.
sudo aptitude install libpcre3-dev
Summary
In this tutorial we learn how to fix pcre-config command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.