Does Ubuntu 20.04.1 LTS not come with a c compiler by default?

I recently downloaded the official desktop version of 20.04.1 and installed it on a machine. I was surprised to find that there was no gcc command available! I installed it with apt but I always thought that every flavour of Linux came with gcc straight out of the box.

Has something recently changed in the release philosophy of Ubuntu?

4

1 Answer

The default version of gcc in Ubuntu 20.04 is gcc-9. Ubuntu 20.04 comes with gcc-9 installed by default which can be tested if it is installed by running apt policy gcc-9. gcc is the GNU C compiler, a fairly portable optimizing compiler for C. For more information type man gcc

gcc-10 is available in the default repositories of Ubuntu 20.04 and later. gcc-11 is available in Ubuntu 21.04 and later.

8

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like