官方安装文档:http://tengine.taobao.org/document/install.html
首先安装了依赖的pcre,但是安装tengine的时候要指定pcre的安装包路径,而不是编译安装后的prefix路径,具体如下
./configure --prefix=/usr/local/nginx --with-pcre=/usr/local/pcre/
make
报错:
[root@ecs01 tengine-2.2.0]# make
make -f objs/Makefile
make[1]: Entering directory `/root/software/tengine-2.2.0'
cd /usr/local/pcre/ \
&& if [ -f Makefile ]; then make distclean; fi \
&& CC="cc" CFLAGS="-O2 -fomit-frame-pointer -pipe " \
./configure --disable-shared
/bin/sh: line 2: ./configure: 没有那个文件或目录
make[1]: *** [/usr/local/pcre//Makefile] 错误 127
make[1]: Leaving directory `/root/software/tengine-2.2.0'
make: *** [build] 错误 2
[root@ecs01 tengine-2.2.0]#
原因:
不是
./configure --prefix=/usr/local/nginx --with-pcre=/usr/local/pcre/
应该是
./configure --prefix=/usr/local/nginx --with-pcre=/root/software/pcre-8.39
本文转自 Tenderrain 51CTO博客,原文链接:http://blog.51cto.com/tenderrain/2068963