Cross
Aquesta pàgina encara no s'ha traduït — es mostra en l'idioma original:English
macOS
Tell Rustup to download the standard library for Linux.
macOS doesn’t come with a linker that understands Linux binaries. Use musl-cross:
You need to tell Cargo to use that specific linker when building for Linux.
Verify the binary name: Run ls /opt/homebrew/bin | grep musl to see the exact filename.
It is usually x86_64-unknown-linux-musl-gcc.
Create or edit .cargo/config.toml in your project folder:
linker = "x86_64-unknown-linux-musl-gcc"Estàs llegint una vista prèvia.
Inicia sessió amb Google per llegir la pàgina completa. Un compte de Google inclou 5 pàgines gratuïtes en total; l'alumnat i el professorat llegeixen les pàgines del seu curs sense límit.
Inicia sessió