- 论坛徽章:
- 0
|
本帖最后由 waterc2 于 2012-03-29 20:52 编辑
我在一台全新的centos的服务器上安装php环境,用的编译安装, mysql php PHP-FPM 都安装正常,但装到nginx的时候出错了。
在安装nginx之前我用默认的方法编译安装了pcre
然后在nginx文件夹里面执行- ./configure --user=www --group=www \
- --prefix=/usr/local/nginx \
- --sbin-path=/usr/local/nginx/sbin/nginx \
- --conf-path=/usr/local/nginx/conf/nginx.conf \
- --with-http_stub_status_module \
- --with-http_ssl_module \
- --with-pcre=\
- --lock-path=/var/run/nginx.lock \
- --pid-path=/var/run/nginx.pid
复制代码 最后输出- Configuration summary
- + using PCRE library: --lock-path=/var/run/nginx.lock
- + using system OpenSSL library
- + md5: using OpenSSL library
- + sha1: using OpenSSL library
- + using system zlib library
-
- nginx path prefix: "/usr/local/nginx"
- nginx binary file: "/usr/local/nginx/sbin/nginx"
- nginx configuration prefix: "/usr/local/nginx/conf"
- nginx configuration file: "/usr/local/nginx/conf/nginx.conf"
- nginx pid file: "/var/run/nginx.pid"
- nginx error log file: "/usr/local/nginx/logs/error.log"
- nginx http access log file: "/usr/local/nginx/logs/access.log"
- nginx http client request body temporary files: "client_body_temp"
- nginx http proxy temporary files: "proxy_temp"
- nginx http fastcgi temporary files: "fastcgi_temp"
- nginx http uwsgi temporary files: "uwsgi_temp"
- nginx http scgi temporary files: "scgi_temp"
复制代码 之后执行make,报错如下:- make -f objs/Makefile
- make[1]: Entering directory `/web/soft/nginx-1.1.18'
- make[1]: *** No rule to make target `--lock-path=/var/run/nginx.lock/pcre.h', needed by `objs/src/core/nginx.o'. Stop.
- make[1]: Leaving directory `/web/soft/nginx-1.1.18'
- make: *** [build] Error 2
复制代码 查了很久也没找到解决方法,请大家帮忙看下。
谢谢了
|
|