Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

247
Visualizações
How do I fix the Rust error "linker 'cc' not found" for Debian on Windows 10?

I'm running Debian on Windows 10 (Windows Subsystem for Linux) and installed Rust using the command:

curl https://sh.rustup.rs -sSf | sh

There were no errors in the install, but when I tried to compile with rustc I got the error linker 'cc' not found.

over 4 years ago · Santiago Trujillo
6 Respostas
Responde à pergunta

0

The Linux Rust installer doesn't check for a compiler toolchain, but seems to assume that you've already got a C linker installed! The best solution is to install the tried-and-true gcc toolchain.

sudo apt install build-essential

If you need to target another architecture, install the appropriate toolchain and target the compilation as follows:

rustc --target=my_target_architecture -C linker=target_toolchain_linker my_rustfile.rs
over 4 years ago · Santiago Trujillo Relatório

0

Solution for CentOS:

yum -y install gcc
over 4 years ago · Santiago Trujillo Relatório

0

Solution for Solus:

sudo eopkg it -c system.devel
over 4 years ago · Santiago Trujillo Relatório

0

Please do an "Update and Upgrade" before installing setup tools.

over 4 years ago · Santiago Trujillo Relatório

0

You have to install some dependencies

for Arch Linux sudo pacman -S base-devel

for Ubuntu sudo apt install build-essential

for Centos sudo yum install gcc

over 4 years ago · Santiago Trujillo Relatório

0

I ran the following 2 commands and it worked.

sudo apt-get update
sudo apt install build-essential
over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda