From 39a1c546d8b5babf6da60512c51edce4010c9628 Mon Sep 17 00:00:00 2001 From: Mateus Devino <19861348+mdevino@users.noreply.github.com> Date: Thu, 4 Sep 2025 09:23:35 -0300 Subject: [PATCH] Add C compiler instructions to Fedora-based distros (#15674) ## Summary This PR adds instructions to install a C compiler on Fedora-based Linux distributions. ## Test Plan ``` # Start Fedora container interactively (can probably be done on Docker as well) podman run -it registry.fedoraproject.org/fedora # From now on, run all commands inside the container. # Install Rustup curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh # Add cargo bin folder to PATH export PATH="${HOME}/.cargo/bin:${PATH}" # Install git, clone uv project and get into its folder dnf install git git clone https://github.com/astral-sh/uv.git cd uv # Try to compile uv and fail (error: linker `cc` not found) cargo build # Install C compiler dnf install gcc # Try to compile uv again. This time, successfully. cargo build ``` Signed-off-by: Mateus Devino --- CONTRIBUTING.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f7be958a4..f18287883 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -16,6 +16,12 @@ On Ubuntu and other Debian-based distributions, you can install a C compiler wit sudo apt install build-essential ``` +On Fedora-based distributions, you can install a C compiler with: + +```shell +sudo dnf install gcc +``` + ## Testing For running tests, we recommend [nextest](https://nexte.st/).