c9s / r3

libr3 is a high-performance path dispatching library. It compiles your route paths into a prefix tree (trie). By using the constructed prefix trie in the start-up time, you may dispatch your routes with efficiency
http://c9s.github.com/r3/bench.html
MIT License
813 stars 83 forks source link

build failed since cannot find pcre lib on centos #132

Open zhiyong0804 opened 4 years ago

zhiyong0804 commented 4 years ago

OS ver : centos 7

sw ver: 2.0 branch

build steps:

 ./autogen.sh
 ./configure
 make
 make install

expect results : no error

actual results :

`configure: error: Package requirements (libpcre) were not met:

No package 'libpcre' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.

Alternatively, you may set the environment variables DEPS_CFLAGS and DEPS_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.`

bjosv commented 8 months ago

The pcre-devel package is required to be installed on CentOS before building. Running the following commands before above builds steps should work.

yum -y group install "Development tools"
yum -y install pcre-devel

Maybe the README is not fully clear about the need of the pcre development package, but there is an install example for Ubuntu.