gcc compiler help
i have already installed gcc and its found in path(gcc: /usr/lib/gcc /usr/share/man/man1/gcc.1.gz).
But when i want to use the gcc it says:
Command 'gcc' not found, but can be installed with: sudo apt install gcc
and i try to install it but still its not working,,output after i install is:
Reading package lists... Done
Building dependency tree
Reading state information... Done
gcc is already the newest version (4:7.3.0-3ubuntu2.1).
0 to upgrade, 0 to newly install, 0 to remove and 8 not to upgrade.
if anybody know this please help
forexample If I run this command; gcc --version its output is
Command 'gcc' not found, but can be installed with:
sudo apt install gcc
why does this happen,since i have seen gcc in the path:
gcc: /usr/lib/gcc /usr/share/man/man1/gcc.1.gz
gcc
add a comment |
i have already installed gcc and its found in path(gcc: /usr/lib/gcc /usr/share/man/man1/gcc.1.gz).
But when i want to use the gcc it says:
Command 'gcc' not found, but can be installed with: sudo apt install gcc
and i try to install it but still its not working,,output after i install is:
Reading package lists... Done
Building dependency tree
Reading state information... Done
gcc is already the newest version (4:7.3.0-3ubuntu2.1).
0 to upgrade, 0 to newly install, 0 to remove and 8 not to upgrade.
if anybody know this please help
forexample If I run this command; gcc --version its output is
Command 'gcc' not found, but can be installed with:
sudo apt install gcc
why does this happen,since i have seen gcc in the path:
gcc: /usr/lib/gcc /usr/share/man/man1/gcc.1.gz
gcc
2
And how are you trying to use it and what doeswhich gccsay? Lets us see exact command!
– George Udosen
Nov 30 at 7:16
1
/usr/lib/gccis not on the executable searchPATH- it sounds like you've broken the symbolic link/usr/bin/gcc(which should point to the default version for your system - such asgcc-7)
– steeldriver
Nov 30 at 7:37
fyi: mywhereis gccreports "gcc: /usr/bin/gcc /usr/lib/gcc /usr/share/man/man1/gcc.1.gz" (/usr/bin/ being in my $PATH), with afile /usr/bin/gccreporting "/usr/bin/gcc: symbolic link to gcc-8" as @steeldriver indicated (my /usr/lib/gcc is a directory (of directories))
– guiverc
Nov 30 at 8:10
If it is a missing symlink, then it may be sufficient to reinstall the package:sudo apt-get install --reinstall gcc
– steeldriver
Nov 30 at 11:53
tnx steeldriver,, sudo apt-get install --reinstall gcc works
– getch
Dec 1 at 7:31
add a comment |
i have already installed gcc and its found in path(gcc: /usr/lib/gcc /usr/share/man/man1/gcc.1.gz).
But when i want to use the gcc it says:
Command 'gcc' not found, but can be installed with: sudo apt install gcc
and i try to install it but still its not working,,output after i install is:
Reading package lists... Done
Building dependency tree
Reading state information... Done
gcc is already the newest version (4:7.3.0-3ubuntu2.1).
0 to upgrade, 0 to newly install, 0 to remove and 8 not to upgrade.
if anybody know this please help
forexample If I run this command; gcc --version its output is
Command 'gcc' not found, but can be installed with:
sudo apt install gcc
why does this happen,since i have seen gcc in the path:
gcc: /usr/lib/gcc /usr/share/man/man1/gcc.1.gz
gcc
i have already installed gcc and its found in path(gcc: /usr/lib/gcc /usr/share/man/man1/gcc.1.gz).
But when i want to use the gcc it says:
Command 'gcc' not found, but can be installed with: sudo apt install gcc
and i try to install it but still its not working,,output after i install is:
Reading package lists... Done
Building dependency tree
Reading state information... Done
gcc is already the newest version (4:7.3.0-3ubuntu2.1).
0 to upgrade, 0 to newly install, 0 to remove and 8 not to upgrade.
if anybody know this please help
forexample If I run this command; gcc --version its output is
Command 'gcc' not found, but can be installed with:
sudo apt install gcc
why does this happen,since i have seen gcc in the path:
gcc: /usr/lib/gcc /usr/share/man/man1/gcc.1.gz
gcc
gcc
edited Nov 30 at 8:25
asked Nov 30 at 7:13
getch
12
12
2
And how are you trying to use it and what doeswhich gccsay? Lets us see exact command!
– George Udosen
Nov 30 at 7:16
1
/usr/lib/gccis not on the executable searchPATH- it sounds like you've broken the symbolic link/usr/bin/gcc(which should point to the default version for your system - such asgcc-7)
– steeldriver
Nov 30 at 7:37
fyi: mywhereis gccreports "gcc: /usr/bin/gcc /usr/lib/gcc /usr/share/man/man1/gcc.1.gz" (/usr/bin/ being in my $PATH), with afile /usr/bin/gccreporting "/usr/bin/gcc: symbolic link to gcc-8" as @steeldriver indicated (my /usr/lib/gcc is a directory (of directories))
– guiverc
Nov 30 at 8:10
If it is a missing symlink, then it may be sufficient to reinstall the package:sudo apt-get install --reinstall gcc
– steeldriver
Nov 30 at 11:53
tnx steeldriver,, sudo apt-get install --reinstall gcc works
– getch
Dec 1 at 7:31
add a comment |
2
And how are you trying to use it and what doeswhich gccsay? Lets us see exact command!
– George Udosen
Nov 30 at 7:16
1
/usr/lib/gccis not on the executable searchPATH- it sounds like you've broken the symbolic link/usr/bin/gcc(which should point to the default version for your system - such asgcc-7)
– steeldriver
Nov 30 at 7:37
fyi: mywhereis gccreports "gcc: /usr/bin/gcc /usr/lib/gcc /usr/share/man/man1/gcc.1.gz" (/usr/bin/ being in my $PATH), with afile /usr/bin/gccreporting "/usr/bin/gcc: symbolic link to gcc-8" as @steeldriver indicated (my /usr/lib/gcc is a directory (of directories))
– guiverc
Nov 30 at 8:10
If it is a missing symlink, then it may be sufficient to reinstall the package:sudo apt-get install --reinstall gcc
– steeldriver
Nov 30 at 11:53
tnx steeldriver,, sudo apt-get install --reinstall gcc works
– getch
Dec 1 at 7:31
2
2
And how are you trying to use it and what does
which gcc say? Lets us see exact command!– George Udosen
Nov 30 at 7:16
And how are you trying to use it and what does
which gcc say? Lets us see exact command!– George Udosen
Nov 30 at 7:16
1
1
/usr/lib/gcc is not on the executable search PATH - it sounds like you've broken the symbolic link /usr/bin/gcc (which should point to the default version for your system - such as gcc-7)– steeldriver
Nov 30 at 7:37
/usr/lib/gcc is not on the executable search PATH - it sounds like you've broken the symbolic link /usr/bin/gcc (which should point to the default version for your system - such as gcc-7)– steeldriver
Nov 30 at 7:37
fyi: my
whereis gcc reports "gcc: /usr/bin/gcc /usr/lib/gcc /usr/share/man/man1/gcc.1.gz" (/usr/bin/ being in my $PATH), with a file /usr/bin/gcc reporting "/usr/bin/gcc: symbolic link to gcc-8" as @steeldriver indicated (my /usr/lib/gcc is a directory (of directories))– guiverc
Nov 30 at 8:10
fyi: my
whereis gcc reports "gcc: /usr/bin/gcc /usr/lib/gcc /usr/share/man/man1/gcc.1.gz" (/usr/bin/ being in my $PATH), with a file /usr/bin/gcc reporting "/usr/bin/gcc: symbolic link to gcc-8" as @steeldriver indicated (my /usr/lib/gcc is a directory (of directories))– guiverc
Nov 30 at 8:10
If it is a missing symlink, then it may be sufficient to reinstall the package:
sudo apt-get install --reinstall gcc– steeldriver
Nov 30 at 11:53
If it is a missing symlink, then it may be sufficient to reinstall the package:
sudo apt-get install --reinstall gcc– steeldriver
Nov 30 at 11:53
tnx steeldriver,, sudo apt-get install --reinstall gcc works
– getch
Dec 1 at 7:31
tnx steeldriver,, sudo apt-get install --reinstall gcc works
– getch
Dec 1 at 7:31
add a comment |
active
oldest
votes
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%2f1097348%2fgcc-compiler-help%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2f1097348%2fgcc-compiler-help%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
2
And how are you trying to use it and what does
which gccsay? Lets us see exact command!– George Udosen
Nov 30 at 7:16
1
/usr/lib/gccis not on the executable searchPATH- it sounds like you've broken the symbolic link/usr/bin/gcc(which should point to the default version for your system - such asgcc-7)– steeldriver
Nov 30 at 7:37
fyi: my
whereis gccreports "gcc: /usr/bin/gcc /usr/lib/gcc /usr/share/man/man1/gcc.1.gz" (/usr/bin/ being in my $PATH), with afile /usr/bin/gccreporting "/usr/bin/gcc: symbolic link to gcc-8" as @steeldriver indicated (my /usr/lib/gcc is a directory (of directories))– guiverc
Nov 30 at 8:10
If it is a missing symlink, then it may be sufficient to reinstall the package:
sudo apt-get install --reinstall gcc– steeldriver
Nov 30 at 11:53
tnx steeldriver,, sudo apt-get install --reinstall gcc works
– getch
Dec 1 at 7:31