安装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
谁能解答啊。 展开
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
谁能解答啊。 展开
3个回答
金山毒霸
2024-10-31 广告
2024-10-31 广告
大部分系统错误,是因为某些DLL文件丢失造成的,比如未安装DirectX9或DirectX 9.0组件已损坏、缺少Visual C ++库、未安装.net库。解决方法如下:一、 手动解决方法1、先确定电脑操作系统是多少位的,现在的电脑一般都...
点击进入详情页
本回答由金山毒霸提供
展开全部
详细信息如下:
./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'
./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'
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
什么系统?
出错提示什么?
说清楚,否则没办法回答你
出错提示什么?
说清楚,否则没办法回答你
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询