build-essential can't find gcc
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
bumped to the homepage by Community♦ 2 hours ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
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
bumped to the homepage by Community♦ 2 hours ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
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
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
gcc
asked May 8 '13 at 22:18
user285825user285825
12325
12325
bumped to the homepage by Community♦ 2 hours 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♦ 2 hours ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
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.
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 packagegcc-4.6
is installed, but thegcc
is not. Anyway,build-essential
should pull it in. Are you trying to install it byapt-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
|
show 2 more comments
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.
add a comment |
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
});
}
});
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
Required, but never shown
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
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.
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 packagegcc-4.6
is installed, but thegcc
is not. Anyway,build-essential
should pull it in. Are you trying to install it byapt-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
|
show 2 more comments
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.
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 packagegcc-4.6
is installed, but thegcc
is not. Anyway,build-essential
should pull it in. Are you trying to install it byapt-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
|
show 2 more comments
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.
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.
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 packagegcc-4.6
is installed, but thegcc
is not. Anyway,build-essential
should pull it in. Are you trying to install it byapt-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
|
show 2 more comments
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 packagegcc-4.6
is installed, but thegcc
is not. Anyway,build-essential
should pull it in. Are you trying to install it byapt-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
|
show 2 more comments
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.
add a comment |
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.
add a comment |
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.
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.
answered Aug 3 '16 at 3:26
mchidmchid
23.3k25286
23.3k25286
add a comment |
add a comment |
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.
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
Required, but never shown
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
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
Required, but never shown
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
Required, but never shown
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
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