Nagios compilation problem in hardened OS

The name of the pictureThe name of the pictureThe name of the pictureClash 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 ?







share|improve this question






















  • 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










  • 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















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 ?







share|improve this question






















  • 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










  • 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













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 ?







share|improve this question














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 ?









share|improve this question













share|improve this question




share|improve this question








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 /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










  • /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










  • 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










  • /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











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.






share|improve this answer




















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    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






























    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.






    share|improve this answer
























      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.






      share|improve this answer






















        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.






        share|improve this answer












        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.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Oct 16 '17 at 16:08









        Jeff Schaller

        32.1k849109




        32.1k849109



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            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













































































            Popular posts from this blog

            Peggy Mitchell

            Palaiologos

            The Forum (Inglewood, California)