CentOS5.8 64位平台上,Tengine1.4.1 编译安装

参考url:
http://linux.fcbu.com/nginx-upgrade-tengine.htm

相关网站:
1、http://pcre.org/
2、http://tengine.taobao.org/
3、http://www.openssl.org/

1、安装pcre-8.31
tar zxvf /tmp/pcre-8.31.tar.gz && cd pcre-8.31
./configure --prefix=/usr/local/pcre
make
make install

2、安装tengine-1.4.1,如果make的时候遇到如下错误:
------------
cd /usr/ \
&& make clean \
&& ./config --prefix=/usr//.openssl no-shared no-threads \
&& make \
&& make install LIBDIR=lib
make[2]: Entering directory `/usr'
make[2]: *** 没有规则可以创建目标“clean”。 停止。
make[2]: Leaving directory `/usr'
make[1]: *** [/usr//.openssl/include/openssl/ssl.h] 错误 2
make[1]: Leaving directory `/usr/local/tengine-1.4.1'
make: *** [build] 错误 2
-----或者-----
cd /usr/ \
&& make clean \
&& ./config --prefix=/usr//.openssl no-shared no-threads \
&& make \
&& make install LIBDIR=lib
make[2]: Entering directory `/usr'
make[2]: *** No rule to make target `clean'. Stop.
make[2]: Leaving directory `/usr'
make[1]: *** [/usr//.openssl/include/openssl/ssl.h] Error 2
make[1]: Leaving directory `/user/local/tengine-1.4.1'
make: *** [build] Error 2

则需下载openssl,并解压缩

3、然后安装tengine-1.4.1
tar zxvf tengine-1.4.1.tar.gz && cd tengine-1.4.1
./configure --prefix=/usr/local/tengine --with-http_stub_status_module --with-openssl=/usr/local/openssl-1.0.1c --with-pcre=/usr/local/pcre-8.31
make
make install

注意,--with-openssl指向的是openssl的源代码目录,--with-pcre也是指向源代码目录
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值