build-essential can't find gccHow to choose the default gcc and g++ version?Can't build gcc anymore since...

What is this cable/device?

Is it possible to put a rectangle as background in the author section?

If a character has darkvision, can they see through an area of nonmagical darkness filled with lightly obscuring gas?

Closed-form expression for certain product

What was this official D&D 3.5e Lovecraft-flavored rulebook?

Why should universal income be universal?

Longest common substring in linear time

Can I sign legal documents with a smiley face?

Does an advisor owe his/her student anything? Will an advisor keep a PhD student only out of pity?

Start making guitar arrangements

A social experiment. What is the worst that can happen?

Why electric field inside a cavity of a non-conducting sphere not zero?

Why Shazam when there is already Superman?

Are the IPv6 address space and IPv4 address space completely disjoint?

Multiplicative persistence

What are the purposes of autoencoders?

Is the U.S. Code copyrighted by the Government?

How do I find all files that end with a dot

Why is so much work done on numerical verification of the Riemann Hypothesis?

Create all possible words using a set or letters

Is there a single word describing earning money through any means?

Drawing ramified coverings with tikz

Should I outline or discovery write my stories?

Fear of getting stuck on one programming language / technology that is not used in my country



build-essential can't find gcc


How to choose the default gcc and g++ version?Can't build gcc anymore since upgrade to 11.10Ubuntu 12 breaks gcc 4.7 build from sourceHaving 2 versions of gccHow to build a particular version of gcc (4.5.1)?diff between x86_64-linux-gnu-gcc and plain old gcc?I have updated GCC, but g++ still seems to be using the stl files from the old GCChow to create a ppa .dep that depends on non-default GCC?How do I use the latest GCC on Ubuntu?Can't install GCC 7













0















I have ubuntu 12.04 installed. I just installed the gcc-4.6 and g++-4.6 from the same OS media. However when I attempted to install the build-essential package from the same OS media, it says gcc is not installed (what kind of a joke is this?). the version it is require >= 4.4 and the version installed = 4.6. How to get out of this crap?



Thanks










share|improve this question














bumped to the homepage by Community 15 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.




















    0















    I have ubuntu 12.04 installed. I just installed the gcc-4.6 and g++-4.6 from the same OS media. However when I attempted to install the build-essential package from the same OS media, it says gcc is not installed (what kind of a joke is this?). the version it is require >= 4.4 and the version installed = 4.6. How to get out of this crap?



    Thanks










    share|improve this question














    bumped to the homepage by Community 15 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      0












      0








      0








      I have ubuntu 12.04 installed. I just installed the gcc-4.6 and g++-4.6 from the same OS media. However when I attempted to install the build-essential package from the same OS media, it says gcc is not installed (what kind of a joke is this?). the version it is require >= 4.4 and the version installed = 4.6. How to get out of this crap?



      Thanks










      share|improve this question














      I have ubuntu 12.04 installed. I just installed the gcc-4.6 and g++-4.6 from the same OS media. However when I attempted to install the build-essential package from the same OS media, it says gcc is not installed (what kind of a joke is this?). the version it is require >= 4.4 and the version installed = 4.6. How to get out of this crap?



      Thanks







      gcc






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked May 8 '13 at 22:18









      user285825user285825

      12325




      12325





      bumped to the homepage by Community 15 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 15 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          2 Answers
          2






          active

          oldest

          votes


















          0














          Try typing this at a terminal:



          which gcc



          If nothing comes back, then GCC is probably not in your path variable. Type:



          sudo updatedb
          locate gcc


          If nothing comes up, then there is no executable called gcc on your machine. Reinstall GCC.



          If you do get the location of an executable called gcc, such as /usr/bin/gcc, then add the directory to your path:



          PATH=/usr/bin:$PATH



          Obviously use what came back on your system. See if that fixes things. If it does, you can make the PATH change permanent by putting that line in your ~/.bashrc file.






          share|improve this answer
























          • You're welcome. If this works for you, make sure to mark the answer as accepted

            – Freedom_Ben
            May 8 '13 at 23:02











          • Sorry I could not finish the comment.Thanks dude, you are really helpful. I created a symbolic link gcc in /usr/bin of gcc-4.6. and I am able to see it by which command and also I can execute gcc. But the problem is still there. please help.

            – user285825
            May 8 '13 at 23:03













          • That's very strange. Does your machine have internet access that can get to the official package repositories? Also, do you need GCC 4.6 or can you use 4.7? If you can, try isntalling the GCC and build-essential from the official repositories and see if it has the same error. The OS disc sometimes has really old packages in it.

            – Freedom_Ben
            May 8 '13 at 23:21













          • Seems like the package gcc-4.6 is installed, but the gcc is not. Anyway, build-essential should pull it in. Are you trying to install it by apt-get?

            – grimpitch
            May 8 '13 at 23:25











          • @grimpitch No he is using the OS media. If possible, I would recommend using the package repositories.

            – Freedom_Ben
            May 8 '13 at 23:28



















          0














          I think I had the same problem.



          which gcc


          returns nothing, however,



          whereis gcc


          does return a path: /usr/bin/gcc



          The fix for this is to reinstall build-essential.



          sudo apt-get update
          sudo apt-get install --reinstall build-essential


          Now, the following command:



          which gcc


          returns this:



          /usr/bin/gcc


          Hope this helps.






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            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',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f292781%2fbuild-essential-cant-find-gcc%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Try typing this at a terminal:



            which gcc



            If nothing comes back, then GCC is probably not in your path variable. Type:



            sudo updatedb
            locate gcc


            If nothing comes up, then there is no executable called gcc on your machine. Reinstall GCC.



            If you do get the location of an executable called gcc, such as /usr/bin/gcc, then add the directory to your path:



            PATH=/usr/bin:$PATH



            Obviously use what came back on your system. See if that fixes things. If it does, you can make the PATH change permanent by putting that line in your ~/.bashrc file.






            share|improve this answer
























            • You're welcome. If this works for you, make sure to mark the answer as accepted

              – Freedom_Ben
              May 8 '13 at 23:02











            • Sorry I could not finish the comment.Thanks dude, you are really helpful. I created a symbolic link gcc in /usr/bin of gcc-4.6. and I am able to see it by which command and also I can execute gcc. But the problem is still there. please help.

              – user285825
              May 8 '13 at 23:03













            • That's very strange. Does your machine have internet access that can get to the official package repositories? Also, do you need GCC 4.6 or can you use 4.7? If you can, try isntalling the GCC and build-essential from the official repositories and see if it has the same error. The OS disc sometimes has really old packages in it.

              – Freedom_Ben
              May 8 '13 at 23:21













            • Seems like the package gcc-4.6 is installed, but the gcc is not. Anyway, build-essential should pull it in. Are you trying to install it by apt-get?

              – grimpitch
              May 8 '13 at 23:25











            • @grimpitch No he is using the OS media. If possible, I would recommend using the package repositories.

              – Freedom_Ben
              May 8 '13 at 23:28
















            0














            Try typing this at a terminal:



            which gcc



            If nothing comes back, then GCC is probably not in your path variable. Type:



            sudo updatedb
            locate gcc


            If nothing comes up, then there is no executable called gcc on your machine. Reinstall GCC.



            If you do get the location of an executable called gcc, such as /usr/bin/gcc, then add the directory to your path:



            PATH=/usr/bin:$PATH



            Obviously use what came back on your system. See if that fixes things. If it does, you can make the PATH change permanent by putting that line in your ~/.bashrc file.






            share|improve this answer
























            • You're welcome. If this works for you, make sure to mark the answer as accepted

              – Freedom_Ben
              May 8 '13 at 23:02











            • Sorry I could not finish the comment.Thanks dude, you are really helpful. I created a symbolic link gcc in /usr/bin of gcc-4.6. and I am able to see it by which command and also I can execute gcc. But the problem is still there. please help.

              – user285825
              May 8 '13 at 23:03













            • That's very strange. Does your machine have internet access that can get to the official package repositories? Also, do you need GCC 4.6 or can you use 4.7? If you can, try isntalling the GCC and build-essential from the official repositories and see if it has the same error. The OS disc sometimes has really old packages in it.

              – Freedom_Ben
              May 8 '13 at 23:21













            • Seems like the package gcc-4.6 is installed, but the gcc is not. Anyway, build-essential should pull it in. Are you trying to install it by apt-get?

              – grimpitch
              May 8 '13 at 23:25











            • @grimpitch No he is using the OS media. If possible, I would recommend using the package repositories.

              – Freedom_Ben
              May 8 '13 at 23:28














            0












            0








            0







            Try typing this at a terminal:



            which gcc



            If nothing comes back, then GCC is probably not in your path variable. Type:



            sudo updatedb
            locate gcc


            If nothing comes up, then there is no executable called gcc on your machine. Reinstall GCC.



            If you do get the location of an executable called gcc, such as /usr/bin/gcc, then add the directory to your path:



            PATH=/usr/bin:$PATH



            Obviously use what came back on your system. See if that fixes things. If it does, you can make the PATH change permanent by putting that line in your ~/.bashrc file.






            share|improve this answer













            Try typing this at a terminal:



            which gcc



            If nothing comes back, then GCC is probably not in your path variable. Type:



            sudo updatedb
            locate gcc


            If nothing comes up, then there is no executable called gcc on your machine. Reinstall GCC.



            If you do get the location of an executable called gcc, such as /usr/bin/gcc, then add the directory to your path:



            PATH=/usr/bin:$PATH



            Obviously use what came back on your system. See if that fixes things. If it does, you can make the PATH change permanent by putting that line in your ~/.bashrc file.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered May 8 '13 at 22:33









            Freedom_BenFreedom_Ben

            5,33262232




            5,33262232













            • You're welcome. If this works for you, make sure to mark the answer as accepted

              – Freedom_Ben
              May 8 '13 at 23:02











            • Sorry I could not finish the comment.Thanks dude, you are really helpful. I created a symbolic link gcc in /usr/bin of gcc-4.6. and I am able to see it by which command and also I can execute gcc. But the problem is still there. please help.

              – user285825
              May 8 '13 at 23:03













            • That's very strange. Does your machine have internet access that can get to the official package repositories? Also, do you need GCC 4.6 or can you use 4.7? If you can, try isntalling the GCC and build-essential from the official repositories and see if it has the same error. The OS disc sometimes has really old packages in it.

              – Freedom_Ben
              May 8 '13 at 23:21













            • Seems like the package gcc-4.6 is installed, but the gcc is not. Anyway, build-essential should pull it in. Are you trying to install it by apt-get?

              – grimpitch
              May 8 '13 at 23:25











            • @grimpitch No he is using the OS media. If possible, I would recommend using the package repositories.

              – Freedom_Ben
              May 8 '13 at 23:28



















            • You're welcome. If this works for you, make sure to mark the answer as accepted

              – Freedom_Ben
              May 8 '13 at 23:02











            • Sorry I could not finish the comment.Thanks dude, you are really helpful. I created a symbolic link gcc in /usr/bin of gcc-4.6. and I am able to see it by which command and also I can execute gcc. But the problem is still there. please help.

              – user285825
              May 8 '13 at 23:03













            • That's very strange. Does your machine have internet access that can get to the official package repositories? Also, do you need GCC 4.6 or can you use 4.7? If you can, try isntalling the GCC and build-essential from the official repositories and see if it has the same error. The OS disc sometimes has really old packages in it.

              – Freedom_Ben
              May 8 '13 at 23:21













            • Seems like the package gcc-4.6 is installed, but the gcc is not. Anyway, build-essential should pull it in. Are you trying to install it by apt-get?

              – grimpitch
              May 8 '13 at 23:25











            • @grimpitch No he is using the OS media. If possible, I would recommend using the package repositories.

              – Freedom_Ben
              May 8 '13 at 23:28

















            You're welcome. If this works for you, make sure to mark the answer as accepted

            – Freedom_Ben
            May 8 '13 at 23:02





            You're welcome. If this works for you, make sure to mark the answer as accepted

            – Freedom_Ben
            May 8 '13 at 23:02













            Sorry I could not finish the comment.Thanks dude, you are really helpful. I created a symbolic link gcc in /usr/bin of gcc-4.6. and I am able to see it by which command and also I can execute gcc. But the problem is still there. please help.

            – user285825
            May 8 '13 at 23:03







            Sorry I could not finish the comment.Thanks dude, you are really helpful. I created a symbolic link gcc in /usr/bin of gcc-4.6. and I am able to see it by which command and also I can execute gcc. But the problem is still there. please help.

            – user285825
            May 8 '13 at 23:03















            That's very strange. Does your machine have internet access that can get to the official package repositories? Also, do you need GCC 4.6 or can you use 4.7? If you can, try isntalling the GCC and build-essential from the official repositories and see if it has the same error. The OS disc sometimes has really old packages in it.

            – Freedom_Ben
            May 8 '13 at 23:21







            That's very strange. Does your machine have internet access that can get to the official package repositories? Also, do you need GCC 4.6 or can you use 4.7? If you can, try isntalling the GCC and build-essential from the official repositories and see if it has the same error. The OS disc sometimes has really old packages in it.

            – Freedom_Ben
            May 8 '13 at 23:21















            Seems like the package gcc-4.6 is installed, but the gcc is not. Anyway, build-essential should pull it in. Are you trying to install it by apt-get?

            – grimpitch
            May 8 '13 at 23:25





            Seems like the package gcc-4.6 is installed, but the gcc is not. Anyway, build-essential should pull it in. Are you trying to install it by apt-get?

            – grimpitch
            May 8 '13 at 23:25













            @grimpitch No he is using the OS media. If possible, I would recommend using the package repositories.

            – Freedom_Ben
            May 8 '13 at 23:28





            @grimpitch No he is using the OS media. If possible, I would recommend using the package repositories.

            – Freedom_Ben
            May 8 '13 at 23:28













            0














            I think I had the same problem.



            which gcc


            returns nothing, however,



            whereis gcc


            does return a path: /usr/bin/gcc



            The fix for this is to reinstall build-essential.



            sudo apt-get update
            sudo apt-get install --reinstall build-essential


            Now, the following command:



            which gcc


            returns this:



            /usr/bin/gcc


            Hope this helps.






            share|improve this answer




























              0














              I think I had the same problem.



              which gcc


              returns nothing, however,



              whereis gcc


              does return a path: /usr/bin/gcc



              The fix for this is to reinstall build-essential.



              sudo apt-get update
              sudo apt-get install --reinstall build-essential


              Now, the following command:



              which gcc


              returns this:



              /usr/bin/gcc


              Hope this helps.






              share|improve this answer


























                0












                0








                0







                I think I had the same problem.



                which gcc


                returns nothing, however,



                whereis gcc


                does return a path: /usr/bin/gcc



                The fix for this is to reinstall build-essential.



                sudo apt-get update
                sudo apt-get install --reinstall build-essential


                Now, the following command:



                which gcc


                returns this:



                /usr/bin/gcc


                Hope this helps.






                share|improve this answer













                I think I had the same problem.



                which gcc


                returns nothing, however,



                whereis gcc


                does return a path: /usr/bin/gcc



                The fix for this is to reinstall build-essential.



                sudo apt-get update
                sudo apt-get install --reinstall build-essential


                Now, the following command:



                which gcc


                returns this:



                /usr/bin/gcc


                Hope this helps.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Aug 3 '16 at 3:26









                mchidmchid

                23.3k25286




                23.3k25286






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f292781%2fbuild-essential-cant-find-gcc%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Why do type traits not work with types in namespace scope?What are POD types in C++?Why can templates only be...

                    Will tsunami waves travel forever if there was no land?Why do tsunami waves begin with the water flowing away...

                    Simple Scan not detecting my scanner (Brother DCP-7055W)Brother MFC-L2700DW printer can print, can't...