2
rated 0 times
[
2]
[
0]
/ answers: 1 / hits: 9369
/ 2 Years ago, fri, october 28, 2022, 6:09:48
I have installed g++ and gcc from repository on ubuntu 12.04 ad you can see that they are indeed installed
mahmood@pc:~$ dpkg -l | grep gcc
ii gcc-4.4 4.4.7-1ubuntu2 GNU C compiler
ii gcc-4.4-base 4.4.7-1ubuntu2 GCC, the GNU Compiler Collection (base package)
ii gcc-4.4-multilib 4.4.7-1ubuntu2 GNU C compiler (multilib files)
ii gcc-4.6-base 4.6.3-1ubuntu5 GCC, the GNU Compiler Collection (base package)
ii lib32gcc1 1:4.6.3-1ubuntu5 GCC support library (32 bit Version)
ii libgcc1 1:4.6.3-1ubuntu5 GCC support library
ii libgcc1-dbg 1:4.6.3-1ubuntu5 GCC support library (debug symbols)
mahmood@pc:~$ dpkg -l | grep g++
ii g++-4.4 4.4.7-1ubuntu2 GNU C++ compiler
ii g++-4.4-multilib 4.4.7-1ubuntu2 GNU C++ compiler (multilib files)
However when I run gcc
or g++
commands, it says they are not installed
mahmood@pc:~$ g++
The program 'g++' can be found in the following packages:
* g++
* pentium-builder
Try: sudo apt-get install <selected package>
mahmood@pc:~$ gcc
The program 'gcc' can be found in the following packages:
* gcc
* pentium-builder
Try: sudo apt-get install <selected package>
What did I miss??
More From » 12.04