VPS侦探论坛

 找回密码
 注册
查看: 3613|回复: 5

lnmp1.4 ./install nginx 单独安装nginx失败

[复制链接]
发表于 2017-1-17 11:28:02 | 显示全部楼层 |阅读模式

环境 centos6.5 最小化安装未安装lnmp,想单独安装nginx,根据readme.md:* 可选3,执行:./install.sh nginx 可以直接单独安装Nginx。
命令过程如下:
./install.sh nginx

脚本下载的nginx版本是nginx-1.10.2

./configure --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_v2_module --with-http_gzip_static_module --with-ipv6 --with-http_sub_module --with-openssl=/root/lnmp1.4/src/openssl-1.0.2j

错误:中间略,直接复制错误部分信息如下:
./configure: error: the HTTP rewrite module requires the PCRE library.
You can either disable the module by using --without-http_rewrite_module
option, or install the PCRE library into the system, or build the PCRE library
statically from the source with nginx by using --with-pcre=<path> option.

+ make
make: *** No rule to make target `build', needed by `default'.  Stop.



为什么会提示--with-pcre=<path> 找不到这个参数。这个在脚本里面应该是有实现的吧,lnmp的时候就可以。单独安装nginx的时候就不行。

[ 本帖最后由 ericshaw 于 2017-1-17 13:36 编辑 ]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-1-17 13:28:50 | 显示全部楼层


/root/nginx-install.log
发日志
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2017-1-17 13:37:07 | 显示全部楼层

回复 2# 的帖子


日志已经发了。在附件。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-1-17 19:08:37 | 显示全部楼层



tar (child): pcre-8.39.tar.bz2: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now


cd lnmp1.4/src
wget http://soft.vpser.net/web/pcre/pcre-8.39.tar.bz2
cd ..
在重新安装应该就可以了
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2017-1-18 09:18:01 | 显示全部楼层

回复 4# 的帖子


确实可以了。我以为这个正常有下载的。这个在脚本里有必要修复一下吗,好像脚本里没有下载pcre-8.39.tar.bz2

军哥运维代购:http://shop63846532.taobao.com/

发表于 2017-1-18 09:40:05 | 显示全部楼层

回复 5# 的帖子


今天发布的会修复
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-28 01:21 , Processed in 0.027330 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表