分类: 系统运维
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