HXS 发表于 2016-3-24 09:58:53

菜鸟求指导,nginx编译错误

# ./configure --user=nginx --group=nginx --prefix=/usr --sbin-path=/usr/sbin --conf-path=/etc/nginx/nginx.conf --pid-path=/var/run/nginx.pid --http-log-path=/var/log/nginx/access_log --error-log-path=/var/log/nginx/error_log --with-ipv6 --without-mail_imap_module --without-mail_smtp_module --with-http_ssl_module --with-http_realip_module --with-http_stub_status_module --with-http_gzip_static_module --with-http_dav_module --with-cc-opt=''-D FD_SETSIZE=32768'' --add-module=./ngx-fancyindex-master

./configure: error: invalid option "FD_SETSIZE=32768"

其中

--with-cc-opt=''-D FD_SETSIZE=32768'' 改成 单引号可以成功,--with-cc-opt='-D FD_SETSIZE=32768'


但是双引号就不行,

如何让编译出的参数为双引号啊?

ivanhao 发表于 2016-3-24 10:05:16

这是要干嘛

aaawww 发表于 2016-3-24 10:44:34

楼下来,我是看不懂了

0000000 发表于 2016-3-24 12:09:00

楼下来,我是看不懂了

leoynx 发表于 2016-3-24 12:40:50

因为脚本传递过去的值是--with-cc-opt=-D FD_SETSIZE=32768,这是2个参数"--with-cc-opt=-D", "FD_SETSIZE=32768" ,所以你需要用"'"

zrj766 发表于 2016-3-24 13:27:55


楼下来,我是看不懂了
页: [1]
查看完整版本: 菜鸟求指导,nginx编译错误