![编译源时出现 NGINX 错误](https://linux22.com/image/679047/%E7%BC%96%E8%AF%91%E6%BA%90%E6%97%B6%E5%87%BA%E7%8E%B0%20NGINX%20%E9%94%99%E8%AF%AF.png)
我需要帮助,因为我在编译 nginx v1.9.12 时出现错误
编译代码
./configure --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --user=www-data --group=www-data --with-http_ssl_module --with-http_gunzip_module --with-http_gzip_static_module --without-http_rewrite_module
错误返回
objs/src/http/modules/ngx_http_upstream_zone_module.o \
objs/ngx_modules.o \
-ldl -lpthread -lcrypt -lssl -lcrypto -ldl -lz \
-Wl,-E
sed -e "s|%%PREFIX%%|/etc/nginx|" \
-e "s|%%PID_PATH%%|/var/run/nginx.pid|" \
-e "s|%%CONF_PATH%%|/etc/nginx/nginx.conf|" \
-e "s|%%ERROR_LOG_PATH%%|/var/log/nginx/error.log|" \
< man/nginx.8 > objs/nginx.8
make[1]: quittant le répertoire « /opt/nginx-1.9.12 »
有人可以帮忙吗?
答案1
如果你正在谈论这个消息
objs/src/http/modules/ngx_http_upstream_zone_module.o \
objs/ngx_modules.o \
-ldl -lpthread -lcrypt -lpcre -lcrypto -lcrypto -lz \
-Wl,-E
sed -e "s|%%PREFIX%%|/opt/nginx-1.9.12|" \
-e "s|%%PID_PATH%%|/opt/nginx-1.9.12/logs/nginx.pid|" \
-e "s|%%CONF_PATH%%|/opt/nginx-1.9.12/conf/nginx.conf|" \
-e "s|%%ERROR_LOG_PATH%%|/opt/nginx-1.9.12/logs/error.log|" \
< man/nginx.8 > objs/nginx.8
make[1]: Leaving directory `/root/rpmbuild/BUILDROOT/nginx-1.9.12'
根本不是错误。nginx 已成功编译。你只需要安装它
# make install