GCC: Difference between revisions

From Alpine Linux
m (Summer moved page Gcc to GCC: Title should be all in capital letters (in this case))
(Remove deprecated libc-dev)
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[https://gcc.gnu.org/ GCC] (GNU Compiler Collection) is a free, open-source compiler system produced by the [https://gnu.org/ GNU Project].
[https://gcc.gnu.org/ GCC], which stands for GNU Compiler Collection, is a free, open-source compiler system produced by the [https://gnu.org/ GNU Project].


== Installation ==
== Installation ==


The quickest way to install 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|musl-dev}} and {{pkg|binutils}} packages (amongst others).
 
For a smaller install you may install just {{pkg|gcc}} but will also need at least {{pkg|musl-dev}}.
 
[[Category:Development]]

Latest revision as of 17:11, 22 June 2024

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, musl-dev and binutils packages (amongst others).

For a smaller install you may install just gcc but will also need at least musl-dev.