我配置好了目录 /opt/nginx_hello_world/config, ngx_http_hello_world_module.c两个文件
然后./configure --prefix=/usr/local/nginx --add-module=/opt/nginx_hello_world
配置完成
然后make,报错
make[1]: *** No rule to make target `objs/addon/nginx_hello_world/ngx_http_hello_world_module.0^M',needed by 'objs/nginx'. Stop.
make: *** [build] Error 2
我试了很多次,还是这个问题!不知为什么!
nginx自定义模块编译错误
答案:2 悬赏:0 手机版
解决时间 2021-03-08 16:23
- 提问者网友:做自己de王妃
- 2021-03-07 23:38
最佳答案
- 五星知识达人网友:行路难
- 2021-03-07 23:56
你的--add-module=/opt/nginx_hello_world是啥意思?
去掉吧,新手直接./configure最好!
去掉吧,新手直接./configure最好!
全部回答
- 1楼网友:千夜
- 2021-03-08 00:10
config文件是在windows下编辑造成,需要dos2unix ,也有可能是最后的回车符造成, 去掉就行
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯