我需要帮助,因为我在编译 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