安装nginx的时候,是怎么编译老出错啊 10

mkdir/var/log/nginxmkdir/var/run/nginxchowndaemon:daemon/var/log/nginx-Rchowndaemon:d... mkdir /var/log/nginx
mkdir /var/run/nginx
chown daemon:daemon /var/log/nginx -R
chown daemon:daemon /var/run/nginx -R
我已经设置权限啦,还是编译安装不了啊

./configure --prefix=/usr/local/nginx
--error-log-path=/var/log/nginx/error.log
--pid-path=/var/run/nginx/nginx.pid
--lock-path=/var/run/nginx/nginx.lock --user=daemon --group=daemon
--with-rtsig_module --with-select_module --with-http_ssl_module --with-http_realip_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --http-log-path=/var/log/nginx/access.log --with-pcre --with-pcre=/usr/local/pcre
然后make就出错啦。
Configuration summary
+ using PCRE library: /usr/local/pcre
+ 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/nginx.pid"
nginx error log file: "/var/log/nginx/error.log"
nginx http access log file: "/var/log/nginx/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@viintest nginx-1.5.12]# make
make -f objs/Makefile
make[1]: Entering directory `/root/yang-soft/nginx-1.5.12'
cd /usr/local/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]: *** [/usr/local/pcre/Makefile] Error 127
make[1]: Leaving directory `/root/yang-soft/nginx-1.5.12'
make: *** [build] Error 2
谁能解答啊。
展开
 我来答
微笑撐不住眼淚
2014-03-28 · TA获得超过215个赞
知道小有建树答主
回答量:118
采纳率:66%
帮助的人:75.4万
展开全部

 

最后2个,去掉最后一个

Ar_Sanguinary
推荐于2016-01-10 · TA获得超过620个赞
知道小有建树答主
回答量:295
采纳率:0%
帮助的人:173万
展开全部
详细信息如下:
./configure参数
./configure --prefix=/usr/local/nginx --user=www --group=www
make错误
objs/ngx_modules.o \
-lpthread -lcrypt -lpcre -lcrypto -lcrypto -lz
objs/src/core/ngx_regex.o(.text+0x35d): In function `ngx_pcre_free_studies':
src/core/ngx_regex.c:307: undefined reference to `pcre_free_study'
collect2: ld returned 1 exit status
make[1]: *** [objs/nginx] 错误 1
make[1]: Leaving directory `/root/nginx-1.3.5'
make: *** [build] 错误 2
<要加--with-pcre=/root/pcre-8.31>
/root/pcre-8.31是解压pcre后的目录
./configure --prefix=/usr/local/nginx --user=www --group=www --with-pcre=/root/pcre-8.31
-lpthread -lcrypt /root/pcre-8.31/.libs/libpcre.a -lcrypto -lcrypto -lz
make[1]: Leaving directory `/root/nginx-1.3.5'
make -f objs/Makefile manpage
make[1]: Entering directory `/root/nginx-1.3.5'
sed -e "s|%%PREFIX%%|/usr/local/nginx|" \
-e "s|%%PID_PATH%%|/usr/local/nginx/logs/nginx.pid|" \
-e "s|%%CONF_PATH%%|/usr/local/nginx/conf/nginx.conf|" \
-e "s|%%ERROR_LOG_PATH%%|/usr/local/nginx/logs/error.log|" \
< man/nginx.8 > objs/nginx.8
make[1]: Leaving directory `/root/nginx-1.3.5'
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
danceneboy
2015-07-27 · TA获得超过285个赞
知道答主
回答量:70
采纳率:0%
帮助的人:53.3万
展开全部
什么系统?
出错提示什么?
说清楚,否则没办法回答你
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 更多回答(1)
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

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

类别

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

说明

0/200

提交
取消

辅 助

模 式