configure: error: Couldn’t find pcre.h, try installing the libpcre

Written by Yujin Boby

Edit in WordPress

When installing PHP OAuth, I get the following error

configure: error: Couldn't find pcre.h, try installing the libpcre development/headers package
ERROR: `/tmp/pear/temp/oauth/configure --with-php-config=/usr/bin/php-config' failed

To fix, install libpcre3-dev

apt install libpcre3-dev

See Errors