GCC

From Alpine Linux
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

GCC, which stands for GNU Compiler Collection, is a free, open-source compiler system produced by the GNU Project.

Installation

The quickest way to get started with GCC on Alpine Linux is by issuing the following command:

# apk add build-base

build-base is a meta-package that will install the gcc, libc-dev and binutils packages (amongst others).

For a smaller install you may install just gcc but will also need at least musl-dev or libc-dev (meta package for local libc).