GCC: Difference between revisions

From Alpine Linux
(explain libc-dev)
(use pkg template)
Line 4: Line 4:


The quickest way to get started with GCC on Alpine Linux is by issuing the following command:
The quickest way to get started with GCC on Alpine Linux is by issuing the following command:
{{cmd|apk add build-base}}
{{cmd|# apk add {{pkg|build-base}}}}


<code>build-base</code> is a meta-package that will install the GCC, libc-dev and binutils packages (amongst others).
{{pkg|build-base}} is a meta-package that will install the {{pkg|gcc}}, {{pkg|libc-dev}} and {{pkg|binutils}} packages (amongst others).


For a smaller install you may install just <code>gcc</code> but will also need at least <code>musl-dev</code> or <code>libc-dev</code> (meta package for local libc).
For a smaller install you may install just {{pkg|gcc}} but will also need at least {{pkg|musl-dev}} or {{pkg|libc-dev}} (meta package for local libc).


[[Category:Development]]
[[Category:Development]]

Revision as of 11:24, 10 November 2023

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).