LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   bash: g++: command not found (https://www.linuxquestions.org/questions/linux-software-2/bash-g-command-not-found-289871/)

m_lp_ql_m 02-13-2005 10:06 PM

bash: g++: command not found
 
I've used g++ before, several "apt-get update"s ago, but now all I get is "bash: g++: command not found". I've tried re-installing it to no avail. Any ideas?

m_lp_ql_m 02-13-2005 10:11 PM

Oh, I should probably specify: Debian Sarge, KDE 3.3, kernel 2.6.8-2-686.

OneManArmy 02-14-2005 08:55 AM

AFAIK g++ is part of gcc (Gnu Compiler Collection). do u have gcc installed ?

reddazz 02-14-2005 09:11 AM

On some distros it's gcc-c++ (or gcc-cpp), or just g++ so it maybe worthwile for you to try those out.

m_lp_ql_m 02-16-2005 08:04 AM

Code:

mark@m:~$ gcc
bash: gcc: command not found
mark@m:~$ g++
bash: g++: command not found
mark@m:~$ gcc-g++
bash: gcc-g++: command not found
mark@m:~$ gcc-cpp
bash: gcc-cpp: command not found
mark@m:~$ gcc-c++
bash: gcc-c++: command not found
mark@m:~$ g++
bash: g++: command not found

Synaptic shows both gcc-3.3 and g++-3.3 installed. Any other ideas?

m_lp_ql_m 02-18-2005 12:20 AM

OK, a friend suggested I type "g <TAB><TAB>" in the console, and I found that my "g++" command is now, mysteriously, "g++-3.3". So it's still there, just annoyingly longer. New thread: how to make it shorter.

queency 06-02-2007 05:03 AM

after updateing kernel g++ changed his name
 
hello i'm new to linux (half a year)

amd-64 ubuntu feisy
====================

why is when i installed the kernel updated
g++ changed names to g++-3.3

and how can i direct anjuta to use the
g++-3.3 instead of g++ ?

should i renamed it back to g++ ?
it seems so stupid to encounter such errors
is there any release notes to read before
installing other updated from ubuntu ? ?

pablodc00 06-09-2010 10:31 PM

Quote:

Originally Posted by m_lp_ql_m (Post 1474827)
Code:

mark@m:~$ gcc
bash: gcc: command not found
mark@m:~$ g++
bash: g++: command not found
mark@m:~$ gcc-g++
bash: gcc-g++: command not found
mark@m:~$ gcc-cpp
bash: gcc-cpp: command not found
mark@m:~$ gcc-c++
bash: gcc-c++: command not found
mark@m:~$ g++
bash: g++: command not found

Synaptic shows both gcc-3.3 and g++-3.3 installed. Any other ideas?

Hi bud, I had that issue, I fixed it installing the package "C++ support for GCC". Hope it helps you too. Good luck!

innoshare 07-08-2010 01:45 PM

Try installing ccache
 
You might also try installing ccache - It should create symlinks in /usr/bin/ccache for g++ and gcc.
__________________
Atlanta Georgia Search Engine Optimization | Atlanta Website Design


All times are GMT -5. The time now is 11:43 PM.