在安装NGINX的时候,出现错误,请前辈帮帮忙 10

[root@localhostnginx-1.8.0]#./configure--prefix=/www/service/nginx--with-pcre=/pcre--... [root@localhost nginx-1.8.0]# ./configure --prefix=/www/service/nginx --with-pcre=/pcre --with-zlib=/zlib
checking for OS
+ Linux 2.6.32-431.20.5.el6.x86_64 x86_64
checking for C compiler ... found
+ using GNU C compiler
+ gcc version: 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)
checking for gcc -pipe switch ... found

....more line...

checking for memalign() ... found
checking for mmap(MAP_ANON|MAP_SHARED) ... found
checking for mmap("/dev/zero", MAP_SHARED) ... found
checking for System V shared memory ... found
checking for POSIX semaphores ... not found
checking for POSIX semaphores in libpthread ... found
checking for struct msghdr.msg_control ... found
checking for ioctl(FIONBIO) ... found
checking for struct tm.tm_gmtoff ... found
checking for struct dirent.d_namlen ... not found
checking for struct dirent.d_type ... found
checking for sysconf(_SC_NPROCESSORS_ONLN) ... found
checking for openat(), fstatat() ... found
checking for getaddrinfo() ... found
checking for md5 in system md library ... not found
checking for md5 in system md5 library ... not found
checking for md5 in system OpenSSL crypto library ... not found
checking for sha1 in system md library ... not found
checking for sha1 in system OpenSSL crypto library ... not found
creating objs/Makefile

Configuration summary
+ using PCRE library: /pcre
+ OpenSSL library is not used
+ using builtin md5 code
+ sha1 library is not found
+ using zlib library: /zlib

nginx path prefix: "/www/service/nginx"
nginx binary file: "/www/service/nginx/sbin/nginx"
nginx configuration prefix: "/www/service/nginx/conf"
nginx configuration file: "/www/service/nginx/conf/nginx.conf"
nginx pid file: "/www/service/nginx/logs/nginx.pid"
nginx error log file: "/www/service/nginx/logs/error.log"
nginx http access log file: "/www/service/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"

[root@localhost nginx-1.8.0]# make
make -f objs/Makefile
make[1]: Entering directory `/download/nginx-1.8.0'
cd /pcre \
&& if [ -f Makefile ]; then make distclean; fi \
&& CC="cc" CFLAGS="-O2 -fomit-frame-pointer -pipe " \
./configure --disable-shared
/bin/sh: line 2: ./configure: No such file or directory
make[1]: *** [/pcre/Makefile] Error 127
make[1]: Leaving directory `/download/nginx-1.8.0'
make: *** [build] Error 2
[root@localhost nginx-1.8.0]#
展开
 我来答
  • 你的回答被采纳后将获得:
  • 系统奖励15(财富值+成长值)+难题奖励10(财富值+成长值)+提问者悬赏10(财富值+成长值)
匿名用户
2018-12-12
展开全部
提示很明显啊,当前目录下找不到configure文件。
bin/sh: line 2: ./configure: No such file or directory
你应该是安装的过程,进入了cd /pcre 目录。应到configure文件所在的目录下执行
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
lmylinux
2018-11-13
知道答主
回答量:5
采纳率:0%
帮助的人:3729
展开全部
你不用 --with-pcre的 你直接yum -y install pcre-devel 然后安装nginx的时候就
./configure --prefix=***** --user=nginx --group=nginx 如果你需要什么模块就自己添加就可以了
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
nxk88998
2018-06-22 · 超过62用户采纳过TA的回答
知道小有建树答主
回答量:224
采纳率:85%
帮助的人:50.4万
展开全部
./configure --prefix=/usr/local/nginx --user=nginx --group=nginx --with-http_stub_status_module --with-http_ssl_module --with-http_realip_module --add-module=/root/liehu_install/ngx_cache_purge-2.0/ --with-pcre=/root/liehu_install/pcre-8.38 && make && make install
这个是我的nginx编译命令
/pcre 确定pcre目录是否正确 或者我给你一个我写的部署包NGINX+PHP的
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
新皮中皮
2019-02-25
知道答主
回答量:28
采纳率:0%
帮助的人:3.8万
展开全部
编译器要升级,yum -y install gcc gcc-c++ autoconf automake make,执行这个命令就行了;楼下一群垃圾
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
你好啊js
2018-11-29 · TA获得超过295个赞
知道小有建树答主
回答量:714
采纳率:75%
帮助的人:61.1万
展开全部
./configure --prefix=/www/service/nginx --with-pcre=/pcre --with-zlib=/zlib
--with-pcre=DIR 是指 pcre 的源码目录不是安装目录
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 更多回答(6)
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式