./configure cannot find GCC but whereis is able to?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I have the minimal install from CentOS-7-x86_64-Everything-1708.iso running in VirtualBox.



Due to an Apache HTTPD dependency issue, I am trying to configure pcre via:



./configure --prefix /usr/local/pcre/8.41


but I end up with:




configure: error: You need a C++ compiler for C++ support.




I find GCC/CPP/CC via



whereis gcc
whereis cpp
whereis cc


and, respectively, receive:




cc: /usr/bin/cc



cpp: /usr/bin/cpp /usr/lib/cpp /usr/share/man/man1/cpp.1.gz



gcc: /usr/bin/gcc /usr/lib/gcc /usr/libexec/gcc /usr/share/man/man1/gcc.1.gz




yum install gcc reports:




...



Package gcc-4.8.5-16.el7_4.1.x86_64 already installed and latest version



Nothing to do




Can anyone point me in the right direction?



I am quite green in regards to administering Linux from scratch but I am trying really hard to learn how to install Apache/PHP via make since yum's latest PHP is 5.4.







share|improve this question






















  • Did you read the log file, like it keeps telling you to?
    – Ignacio Vazquez-Abrams
    Feb 19 at 3:41










  • @IgnacioVazquez-Abrams I'm sorry, which command tells me that info? I do not see anything about logs when using ./configure --prefix /usr/local/pcre/8.41
    – MonkeyZeus
    Feb 19 at 3:43






  • 2




    gcc is a C compiler - the C++ compiler g++ would usually be packaged separately
    – steeldriver
    Feb 19 at 3:45










  • @steeldriver Oh boy, I have a long road ahead of me, looks like I need gcc-c++ in specific? Would yum install gcc* be advisable?
    – MonkeyZeus
    Feb 19 at 3:48







  • 2




    Possible duplicate of Problems with CMake in CentOS 6
    – muru
    Feb 19 at 4:09














up vote
0
down vote

favorite












I have the minimal install from CentOS-7-x86_64-Everything-1708.iso running in VirtualBox.



Due to an Apache HTTPD dependency issue, I am trying to configure pcre via:



./configure --prefix /usr/local/pcre/8.41


but I end up with:




configure: error: You need a C++ compiler for C++ support.




I find GCC/CPP/CC via



whereis gcc
whereis cpp
whereis cc


and, respectively, receive:




cc: /usr/bin/cc



cpp: /usr/bin/cpp /usr/lib/cpp /usr/share/man/man1/cpp.1.gz



gcc: /usr/bin/gcc /usr/lib/gcc /usr/libexec/gcc /usr/share/man/man1/gcc.1.gz




yum install gcc reports:




...



Package gcc-4.8.5-16.el7_4.1.x86_64 already installed and latest version



Nothing to do




Can anyone point me in the right direction?



I am quite green in regards to administering Linux from scratch but I am trying really hard to learn how to install Apache/PHP via make since yum's latest PHP is 5.4.







share|improve this question






















  • Did you read the log file, like it keeps telling you to?
    – Ignacio Vazquez-Abrams
    Feb 19 at 3:41










  • @IgnacioVazquez-Abrams I'm sorry, which command tells me that info? I do not see anything about logs when using ./configure --prefix /usr/local/pcre/8.41
    – MonkeyZeus
    Feb 19 at 3:43






  • 2




    gcc is a C compiler - the C++ compiler g++ would usually be packaged separately
    – steeldriver
    Feb 19 at 3:45










  • @steeldriver Oh boy, I have a long road ahead of me, looks like I need gcc-c++ in specific? Would yum install gcc* be advisable?
    – MonkeyZeus
    Feb 19 at 3:48







  • 2




    Possible duplicate of Problems with CMake in CentOS 6
    – muru
    Feb 19 at 4:09












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have the minimal install from CentOS-7-x86_64-Everything-1708.iso running in VirtualBox.



Due to an Apache HTTPD dependency issue, I am trying to configure pcre via:



./configure --prefix /usr/local/pcre/8.41


but I end up with:




configure: error: You need a C++ compiler for C++ support.




I find GCC/CPP/CC via



whereis gcc
whereis cpp
whereis cc


and, respectively, receive:




cc: /usr/bin/cc



cpp: /usr/bin/cpp /usr/lib/cpp /usr/share/man/man1/cpp.1.gz



gcc: /usr/bin/gcc /usr/lib/gcc /usr/libexec/gcc /usr/share/man/man1/gcc.1.gz




yum install gcc reports:




...



Package gcc-4.8.5-16.el7_4.1.x86_64 already installed and latest version



Nothing to do




Can anyone point me in the right direction?



I am quite green in regards to administering Linux from scratch but I am trying really hard to learn how to install Apache/PHP via make since yum's latest PHP is 5.4.







share|improve this question














I have the minimal install from CentOS-7-x86_64-Everything-1708.iso running in VirtualBox.



Due to an Apache HTTPD dependency issue, I am trying to configure pcre via:



./configure --prefix /usr/local/pcre/8.41


but I end up with:




configure: error: You need a C++ compiler for C++ support.




I find GCC/CPP/CC via



whereis gcc
whereis cpp
whereis cc


and, respectively, receive:




cc: /usr/bin/cc



cpp: /usr/bin/cpp /usr/lib/cpp /usr/share/man/man1/cpp.1.gz



gcc: /usr/bin/gcc /usr/lib/gcc /usr/libexec/gcc /usr/share/man/man1/gcc.1.gz




yum install gcc reports:




...



Package gcc-4.8.5-16.el7_4.1.x86_64 already installed and latest version



Nothing to do




Can anyone point me in the right direction?



I am quite green in regards to administering Linux from scratch but I am trying really hard to learn how to install Apache/PHP via make since yum's latest PHP is 5.4.









share|improve this question













share|improve this question




share|improve this question








edited Feb 19 at 3:41

























asked Feb 19 at 3:40









MonkeyZeus

1086




1086











  • Did you read the log file, like it keeps telling you to?
    – Ignacio Vazquez-Abrams
    Feb 19 at 3:41










  • @IgnacioVazquez-Abrams I'm sorry, which command tells me that info? I do not see anything about logs when using ./configure --prefix /usr/local/pcre/8.41
    – MonkeyZeus
    Feb 19 at 3:43






  • 2




    gcc is a C compiler - the C++ compiler g++ would usually be packaged separately
    – steeldriver
    Feb 19 at 3:45










  • @steeldriver Oh boy, I have a long road ahead of me, looks like I need gcc-c++ in specific? Would yum install gcc* be advisable?
    – MonkeyZeus
    Feb 19 at 3:48







  • 2




    Possible duplicate of Problems with CMake in CentOS 6
    – muru
    Feb 19 at 4:09
















  • Did you read the log file, like it keeps telling you to?
    – Ignacio Vazquez-Abrams
    Feb 19 at 3:41










  • @IgnacioVazquez-Abrams I'm sorry, which command tells me that info? I do not see anything about logs when using ./configure --prefix /usr/local/pcre/8.41
    – MonkeyZeus
    Feb 19 at 3:43






  • 2




    gcc is a C compiler - the C++ compiler g++ would usually be packaged separately
    – steeldriver
    Feb 19 at 3:45










  • @steeldriver Oh boy, I have a long road ahead of me, looks like I need gcc-c++ in specific? Would yum install gcc* be advisable?
    – MonkeyZeus
    Feb 19 at 3:48







  • 2




    Possible duplicate of Problems with CMake in CentOS 6
    – muru
    Feb 19 at 4:09















Did you read the log file, like it keeps telling you to?
– Ignacio Vazquez-Abrams
Feb 19 at 3:41




Did you read the log file, like it keeps telling you to?
– Ignacio Vazquez-Abrams
Feb 19 at 3:41












@IgnacioVazquez-Abrams I'm sorry, which command tells me that info? I do not see anything about logs when using ./configure --prefix /usr/local/pcre/8.41
– MonkeyZeus
Feb 19 at 3:43




@IgnacioVazquez-Abrams I'm sorry, which command tells me that info? I do not see anything about logs when using ./configure --prefix /usr/local/pcre/8.41
– MonkeyZeus
Feb 19 at 3:43




2




2




gcc is a C compiler - the C++ compiler g++ would usually be packaged separately
– steeldriver
Feb 19 at 3:45




gcc is a C compiler - the C++ compiler g++ would usually be packaged separately
– steeldriver
Feb 19 at 3:45












@steeldriver Oh boy, I have a long road ahead of me, looks like I need gcc-c++ in specific? Would yum install gcc* be advisable?
– MonkeyZeus
Feb 19 at 3:48





@steeldriver Oh boy, I have a long road ahead of me, looks like I need gcc-c++ in specific? Would yum install gcc* be advisable?
– MonkeyZeus
Feb 19 at 3:48





2




2




Possible duplicate of Problems with CMake in CentOS 6
– muru
Feb 19 at 4:09




Possible duplicate of Problems with CMake in CentOS 6
– muru
Feb 19 at 4:09










1 Answer
1






active

oldest

votes

















up vote
4
down vote



accepted










On systems using the GCC suite of compilers, the C++ compiler is g++ (cpp is the C preprocessor).



A common name to find a C++ compiler under is c++. This is often a symbolic link to an appropriate C++ compiler such as g++ or clang++ or whatever the installed system compiler is (if it is installed).



The error message from the configure script indicates that there is no C++ compiler installed on your system. On your Linux, the C++ compiler is installed separately from the C compiler.



To install the GCC C++ compiler on CentOS:



yum install gcc-c++





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%2f425072%2fconfigure-cannot-find-gcc-but-whereis-is-able-to%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
    4
    down vote



    accepted










    On systems using the GCC suite of compilers, the C++ compiler is g++ (cpp is the C preprocessor).



    A common name to find a C++ compiler under is c++. This is often a symbolic link to an appropriate C++ compiler such as g++ or clang++ or whatever the installed system compiler is (if it is installed).



    The error message from the configure script indicates that there is no C++ compiler installed on your system. On your Linux, the C++ compiler is installed separately from the C compiler.



    To install the GCC C++ compiler on CentOS:



    yum install gcc-c++





    share|improve this answer


























      up vote
      4
      down vote



      accepted










      On systems using the GCC suite of compilers, the C++ compiler is g++ (cpp is the C preprocessor).



      A common name to find a C++ compiler under is c++. This is often a symbolic link to an appropriate C++ compiler such as g++ or clang++ or whatever the installed system compiler is (if it is installed).



      The error message from the configure script indicates that there is no C++ compiler installed on your system. On your Linux, the C++ compiler is installed separately from the C compiler.



      To install the GCC C++ compiler on CentOS:



      yum install gcc-c++





      share|improve this answer
























        up vote
        4
        down vote



        accepted







        up vote
        4
        down vote



        accepted






        On systems using the GCC suite of compilers, the C++ compiler is g++ (cpp is the C preprocessor).



        A common name to find a C++ compiler under is c++. This is often a symbolic link to an appropriate C++ compiler such as g++ or clang++ or whatever the installed system compiler is (if it is installed).



        The error message from the configure script indicates that there is no C++ compiler installed on your system. On your Linux, the C++ compiler is installed separately from the C compiler.



        To install the GCC C++ compiler on CentOS:



        yum install gcc-c++





        share|improve this answer














        On systems using the GCC suite of compilers, the C++ compiler is g++ (cpp is the C preprocessor).



        A common name to find a C++ compiler under is c++. This is often a symbolic link to an appropriate C++ compiler such as g++ or clang++ or whatever the installed system compiler is (if it is installed).



        The error message from the configure script indicates that there is no C++ compiler installed on your system. On your Linux, the C++ compiler is installed separately from the C compiler.



        To install the GCC C++ compiler on CentOS:



        yum install gcc-c++






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Feb 19 at 9:14

























        answered Feb 19 at 6:57









        Kusalananda

        103k13202318




        103k13202318






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f425072%2fconfigure-cannot-find-gcc-but-whereis-is-able-to%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            Peggy Mitchell

            Palaiologos

            The Forum (Inglewood, California)