配置:错误:无法识别的选项:-–with-mail=/usr/bin/sendmail 安装 nagios 3.5.0 时

4 nagios3 software-installation

到达步骤时,请遵循此安装指南

./configure --with-nagios-group=nagios --with-command-group=nagcmd -–with-mail=/usr/bin/sendmail
Run Code Online (Sandbox Code Playgroud)

我收到以下错误:

configure: error: unrecognized option: -–with-mail=/usr/bin/sendmail 
Try `./configure --help' for more information.
Run Code Online (Sandbox Code Playgroud)

知道为什么吗?是否保存删除最后一个参数(-–with-mail=/usr/bin/sendmail)并继续?

我这样做是为了测试和配置阶段通过而没有错误,但我害怕暗示,当然在生产几天后我不想再次重新编译 nagios ;)

小智 7

对不起这是我的错!“with-mail”之前的“-”字符之一不是“-”。这次从 PDF 复制粘贴到控制台效果不佳。抱歉并感谢您的阅读。