我正在尝试在强化操作系统 CentOS 中安装 nagios,但我不能:
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in `/home/nagios-4.3.2':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
我已经安装了所有 gcc 软件包,但不能
有什么建议吗?
答案1
这里的核心问题是 /home 分区挂载了该noexec
标志,从而阻止 make/compilation 进程运行它正在创建的可执行文件。