From 76f1741c5bf0d6274bae63d1cfc796edfd794f1b Mon Sep 17 00:00:00 2001 From: glatavento <76601050+glatavento@users.noreply.github.com> Date: Mon, 23 May 2022 15:40:00 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E9=87=8D=E5=A4=8D=E6=AE=B5=E8=90=BD=20(#71)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ch01-01-installation.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/ch01-01-installation.md b/src/ch01-01-installation.md index 0709cc7..4424903 100644 --- a/src/ch01-01-installation.md +++ b/src/ch01-01-installation.md @@ -26,8 +26,6 @@ $ curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh Rust is installed now. Great! ``` -此外,你需要某种类型的链接器。很可能链接器已经安装好,但是当你尝试编译 Rust 程序并收到提示链接器无法执行的错误时,这意味着你的系统上未安装链接器,你需要手动安装一个链接器。C 编译器通常带有正确的链接器。查阅平台的相关文档,以了解如何安装 C 编译器。另外,一些常见的 Rust 包依赖于 C 代码,并且需要 C 编译器。因此,很值得立即安装一个。 - 此外,你还需要一个链接器(linker),这是 Rust 用来将其编译的输出关联到一个文件中的程序。很可能你已经有一个了。如果你遇到了链接器错误,请尝试安装一个 C 编译器,其通常包括一个链接器。C 编译器也很有用,因为一些常见的 Rust 包依赖于 C 代码,因此需要安装一个 C 编译器。 在 macOS 上,可运行以下命令获得 C 编译器: