Nagios compilation problem in hardened OS

Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I am trying to install nagios in hardened OS CentOS, but I can not:
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
I already installed all gcc packages, but can not
any advice ?
centos compiling nagios hardening
add a comment |Â
up vote
0
down vote
favorite
I am trying to install nagios in hardened OS CentOS, but I can not:
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
I already installed all gcc packages, but can not
any advice ?
centos compiling nagios hardening
Looks like /home may be mounted noexec; a common hardening option.
â Jeff Schaller
Oct 16 '17 at 14:59
mount | grep /homecould confirm
â Jeff Schaller
Oct 16 '17 at 14:59
orstrace -ff ...the configure and see exactly what was being run
â thrig
Oct 16 '17 at 15:37
/dev/xvdb10 on /home type ext4 (rw,noexec,nosuid,nodev) / yes noexec ,thanks , so can i make this as a exec and after this change again /home with no exec ,what y think ?
â ggg
Oct 16 '17 at 15:47
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am trying to install nagios in hardened OS CentOS, but I can not:
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
I already installed all gcc packages, but can not
any advice ?
centos compiling nagios hardening
I am trying to install nagios in hardened OS CentOS, but I can not:
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
I already installed all gcc packages, but can not
any advice ?
centos compiling nagios hardening
edited Oct 16 '17 at 14:58
Jeff Schaller
32.1k849109
32.1k849109
asked Oct 16 '17 at 14:29
ggg
1
1
Looks like /home may be mounted noexec; a common hardening option.
â Jeff Schaller
Oct 16 '17 at 14:59
mount | grep /homecould confirm
â Jeff Schaller
Oct 16 '17 at 14:59
orstrace -ff ...the configure and see exactly what was being run
â thrig
Oct 16 '17 at 15:37
/dev/xvdb10 on /home type ext4 (rw,noexec,nosuid,nodev) / yes noexec ,thanks , so can i make this as a exec and after this change again /home with no exec ,what y think ?
â ggg
Oct 16 '17 at 15:47
add a comment |Â
Looks like /home may be mounted noexec; a common hardening option.
â Jeff Schaller
Oct 16 '17 at 14:59
mount | grep /homecould confirm
â Jeff Schaller
Oct 16 '17 at 14:59
orstrace -ff ...the configure and see exactly what was being run
â thrig
Oct 16 '17 at 15:37
/dev/xvdb10 on /home type ext4 (rw,noexec,nosuid,nodev) / yes noexec ,thanks , so can i make this as a exec and after this change again /home with no exec ,what y think ?
â ggg
Oct 16 '17 at 15:47
Looks like /home may be mounted noexec; a common hardening option.
â Jeff Schaller
Oct 16 '17 at 14:59
Looks like /home may be mounted noexec; a common hardening option.
â Jeff Schaller
Oct 16 '17 at 14:59
mount | grep /home could confirmâ Jeff Schaller
Oct 16 '17 at 14:59
mount | grep /home could confirmâ Jeff Schaller
Oct 16 '17 at 14:59
or
strace -ff ... the configure and see exactly what was being runâ thrig
Oct 16 '17 at 15:37
or
strace -ff ... the configure and see exactly what was being runâ thrig
Oct 16 '17 at 15:37
/dev/xvdb10 on /home type ext4 (rw,noexec,nosuid,nodev) / yes noexec ,thanks , so can i make this as a exec and after this change again /home with no exec ,what y think ?
â ggg
Oct 16 '17 at 15:47
/dev/xvdb10 on /home type ext4 (rw,noexec,nosuid,nodev) / yes noexec ,thanks , so can i make this as a exec and after this change again /home with no exec ,what y think ?
â ggg
Oct 16 '17 at 15:47
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
The core issue here was the the /home partition was mounted with the noexec flag, preventing the make/compilation process from running executables that it was creating.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
The core issue here was the the /home partition was mounted with the noexec flag, preventing the make/compilation process from running executables that it was creating.
add a comment |Â
up vote
0
down vote
The core issue here was the the /home partition was mounted with the noexec flag, preventing the make/compilation process from running executables that it was creating.
add a comment |Â
up vote
0
down vote
up vote
0
down vote
The core issue here was the the /home partition was mounted with the noexec flag, preventing the make/compilation process from running executables that it was creating.
The core issue here was the the /home partition was mounted with the noexec flag, preventing the make/compilation process from running executables that it was creating.
answered Oct 16 '17 at 16:08
Jeff Schaller
32.1k849109
32.1k849109
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f398431%2fnagios-compilation-problem-in-hardened-os%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Looks like /home may be mounted noexec; a common hardening option.
â Jeff Schaller
Oct 16 '17 at 14:59
mount | grep /homecould confirmâ Jeff Schaller
Oct 16 '17 at 14:59
or
strace -ff ...the configure and see exactly what was being runâ thrig
Oct 16 '17 at 15:37
/dev/xvdb10 on /home type ext4 (rw,noexec,nosuid,nodev) / yes noexec ,thanks , so can i make this as a exec and after this change again /home with no exec ,what y think ?
â ggg
Oct 16 '17 at 15:47