全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 15383|回复: 10

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

[复制链接]
发表于 2010-5-17 12:53:17 | 显示全部楼层 |阅读模式
编译nginx 出现 make: *** No rule to make target `build', needed by `default'.  Stop.
求解!
发表于 2010-5-17 12:55:09 | 显示全部楼层
./configure 跑了?

跑了就是出错了。dependencies弄好。
发表于 2010-5-17 12:56:09 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
 楼主| 发表于 2010-5-17 12:57:06 | 显示全部楼层
./configure --user=web --group=web --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module
make && make install
配置是这样的!
发表于 2010-5-17 12:58:21 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
 楼主| 发表于 2010-5-17 12:58:43 | 显示全部楼层
 楼主| 发表于 2010-5-17 12:59:05 | 显示全部楼层
./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.

vps2906312:~/debian/nginx-0.7.65# make && make install
make: *** No rule to make target `build', needed by `default'.  Stop.
发表于 2010-5-17 13:00:13 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
 楼主| 发表于 2010-5-17 13:04:32 | 显示全部楼层
原帖由 Administrator 于 2010-5-17 13:00 发表
wget ftp://ftp.csx.cam.ac.uk/pub/soft ... cre/pcre-7.9.tar.gz
tar zxvf pcre-7.9.tar.gz
cd pcre-7.9/
./configure
make && make install

伪静态模块需要pcre库,先装上。

谢谢 安装了!
 楼主| 发表于 2010-5-17 13:06:15 | 显示全部楼层
pcre-7.9 可以用 apt-get 安装吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-5-17 05:46 , Processed in 0.091016 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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