编译varnish出错

root@www varnish-2.1.3]# ./configure --prefix=/usr/local/varnish          //编译安装

checking for socket in -lsocket... no
checking for getaddrinfo in -lnsl... yes
checking for cos in -lm... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for PCRE... 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 PCRE_CFLAGS
and PCRE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

到最后显示出缺少“libpcre”错误

解决办法:

#yum    install   -y    libpcre

# rpm -vhi /mnt/CentOS/pcre-devel-6.6-2.el5_1.7.i386.rpm 

#vi  /etc/profile

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

source    /etc/profile                        //解决

 

你可能感兴趣的:(职场,休闲,编译varnish出错)