Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
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

 Answers
4

You don't have the packages gcc and g++ installed.



This packages contain the files /usr/bin/gcc and /usr/bin/g++ while the package gcc-4.4 contains /usr/bin/gcc-4.4 and the package g++-4.4 contains /usr/bin/g++-4.4.


[#32764] Saturday, October 29, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
variark

Total Points: 82
Total Questions: 114
Total Answers: 122

Location: Sweden
Member since Mon, May 8, 2023
1 Year ago
variark questions
Wed, Nov 3, 21, 13:30, 3 Years ago
Sun, Jan 8, 23, 16:05, 1 Year ago
Thu, Dec 15, 22, 02:10, 1 Year ago
Sun, Jun 26, 22, 12:20, 2 Years ago
Tue, Dec 14, 21, 15:40, 2 Years ago
;