免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2450 | 回复: 0
打印 上一主题 下一主题

一个安装pcre和nginx的问题-在线等 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-03-29 20:48 |只看该作者 |倒序浏览
本帖最后由 waterc2 于 2012-03-29 20:52 编辑

我在一台全新的centos的服务器上安装php环境,用的编译安装, mysql php   PHP-FPM 都安装正常,但装到nginx的时候出错了。
在安装nginx之前我用默认的方法编译安装了pcre
然后在nginx文件夹里面执行
  1. ./configure --user=www --group=www \
  2. --prefix=/usr/local/nginx \
  3. --sbin-path=/usr/local/nginx/sbin/nginx \
  4. --conf-path=/usr/local/nginx/conf/nginx.conf \
  5. --with-http_stub_status_module \
  6. --with-http_ssl_module \
  7. --with-pcre=\
  8. --lock-path=/var/run/nginx.lock \
  9. --pid-path=/var/run/nginx.pid
复制代码
最后输出
  1. Configuration summary
  2.   + using PCRE library: --lock-path=/var/run/nginx.lock
  3.   + using system OpenSSL library
  4.   + md5: using OpenSSL library
  5.   + sha1: using OpenSSL library
  6.   + using system zlib library

  7.   nginx path prefix: "/usr/local/nginx"
  8.   nginx binary file: "/usr/local/nginx/sbin/nginx"
  9.   nginx configuration prefix: "/usr/local/nginx/conf"
  10.   nginx configuration file: "/usr/local/nginx/conf/nginx.conf"
  11.   nginx pid file: "/var/run/nginx.pid"
  12.   nginx error log file: "/usr/local/nginx/logs/error.log"
  13.   nginx http access log file: "/usr/local/nginx/logs/access.log"
  14.   nginx http client request body temporary files: "client_body_temp"
  15.   nginx http proxy temporary files: "proxy_temp"
  16.   nginx http fastcgi temporary files: "fastcgi_temp"
  17.   nginx http uwsgi temporary files: "uwsgi_temp"
  18.   nginx http scgi temporary files: "scgi_temp"
复制代码
之后执行make,报错如下:
  1. make -f objs/Makefile
  2. make[1]: Entering directory `/web/soft/nginx-1.1.18'
  3. make[1]: *** No rule to make target `--lock-path=/var/run/nginx.lock/pcre.h', needed by `objs/src/core/nginx.o'.  Stop.
  4. make[1]: Leaving directory `/web/soft/nginx-1.1.18'
  5. make: *** [build] Error 2
复制代码
查了很久也没找到解决方法,请大家帮忙看下。

谢谢了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP