Chinaunix首页 | 论坛 | 博客
  • 博客访问: 868266
  • 博文数量: 275
  • 博客积分: 3904
  • 博客等级: 中校
  • 技术积分: 4605
  • 用 户 组: 普通用户
  • 注册时间: 2012-04-17 21:10
文章分类

全部博文(275)

文章存档

2014年(9)

2013年(124)

2012年(142)

分类: 系统运维

2014-01-07 11:50:25

 wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.01.tar.gz 

wget

pcre后
[root@domain0 nginx-0.7.53]# mkdir /usr/include/pcre
[root@domain0 nginx-0.7.53]# cp /usr/local/lib/libpcre.a /usr/include/pcre/libpcre.a
[root@domain0 nginx-0.7.53]# cp /usr/local/lib/libpcre.a /usr/include/pcre/libpcre.la
[root@domain0 nginx-0.7.53]# cp /usr/local/include/pcre.h /usr/include/pcre/pcre.h
[root@domain0 nginx-0.7.53]# mkdir /usr/include/pcre/.libs
[root@domain0 nginx-0.7.53]# cp /usr/local/lib/libpcre.a /usr/include/pcre/.libs/libpcre.a
[root@domain0 nginx-0.7.53]# cp /usr/local/lib/libpcre.a /usr/include/pcre/.libs/libpcre.la
[root@domain0 nginx-0.7.53]# cp /usr/local/include/pcre.h /usr/include/pcre/.libs/pcre.h

[root@domain0 nginx-0.7.53]#cd /usr/local

[root@domain0 nginx-0.7.53]#tar -zxvf nginx-0.7.61.tar.gz

[root@domain0 nginx-0.7.53]#cd nginx-0.7.61
[root@domain0 nginx-0.7.53]# ./configure --with-pcre=/usr/include/pcre --with-

http_stub_status_module --prefix=/usr/local/nginx

vi ./objs/Makefile(注:删除此文件1013行“./configure --disable-shared”)

make;
make install;

注:ssl模块安装

./configure --prefix=/usr/local/nginx --with-md5=/usr/lib --with-sha1=/usr/lib --with-cc-opt="-I /usr/include/pcre -I /usr/include/openssl" --with-http_ssl_module --with-pcre=/usr/include/pcre --with-http_stub_status_module
make -j10
make install

---------------------------------------------------------------------------------------------------------------------------

cd /usr/local
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.10.tar.gz
wget
tar -zxvf pcre-8.10.tar.gz
cd pcre-8.10
./configure
make && make install


cp /usr/local/lib/libpcre.a /usr/include/pcre/libpcre.a
cp /usr/local/lib/libpcre.a /usr/include/pcre/libpcre.la
cp /usr/local/include/pcre.h /usr/include/pcre/pcre.h
mkdir /usr/include/pcre/.libs
cp /usr/local/lib/libpcre.a /usr/include/pcre/.libs/libpcre.a
cp /usr/local/lib/libpcre.a /usr/include/pcre/.libs/libpcre.la
cp /usr/local/include/pcre.h /usr/include/pcre/.libs/pcre.h

cd /usr/local
tar -zxvf nginx-0.8.53.tar.gz
cd nginx-0.8.53
./configure --prefix=/usr/local/nginx --with-md5=/usr/lib --with-sha1=/usr/lib --with-cc-opt="-I /usr/include/pcre -I /usr/include/openssl" --with-http_ssl_module --with-pcre=/usr/include/pcre --with-http_stub_status_module
vi ./objs/Makefile(注:删除此文件“./configure --disable-shared”)
make -j10
make install

 
    
阅读(1989) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~