2

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?

Pilot6
  • 90,100
  • 91
  • 213
  • 324
NickT
  • 2,203
  • 2
    No it doesn't, and whilst I can't confirm if it was ever a default, I've always had to install build-essential manually (but I wasn't a user for 4.10). I would expect that, given most users of Ubuntu (inc. flavors) are users, and not developers – guiverc Sep 20 '20 at 12:27
  • I've never, ever had to do it before, going back to sometime before version 12. Also with Xbuntu, debian, all the raspbian flavours had it. – NickT Sep 20 '20 at 12:29
  • I mainly use flavors, and a QA install made today (groovy as that's the current testing release) doesn't have it installed, though some gcc-10 libraries are present (no gcc package for Lubuntu) Neither for Kubuntu 20.04.1 – guiverc Sep 20 '20 at 12:42
  • Concur, aptitude why gcc on our 18.04 systems (Ubuntu, Lubuntu) gives build-essential as the reason for presence. – Organic Marble Sep 20 '20 at 14:49

1 Answers1

3

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.

karel
  • 114,770