From c716785e47ceffe3066347c132e9aa3b00a5eecf Mon Sep 17 00:00:00 2001 From: Xingyu Wang Date: Wed, 2 Jun 2021 20:32:12 +0800 Subject: [PATCH] PRF&PUB @geekpi https://linux.cn/article-13451-1.html --- ...Command Not Found- Here-s How to Fix it.md | 32 ++++++++++--------- 1 file changed, 17 insertions(+), 15 deletions(-) rename {translated/tech => published}/20210526 Make Command Not Found- Here-s How to Fix it.md (61%) diff --git a/translated/tech/20210526 Make Command Not Found- Here-s How to Fix it.md b/published/20210526 Make Command Not Found- Here-s How to Fix it.md similarity index 61% rename from translated/tech/20210526 Make Command Not Found- Here-s How to Fix it.md rename to published/20210526 Make Command Not Found- Here-s How to Fix it.md index ac428f6506..2840dc18ad 100644 --- a/translated/tech/20210526 Make Command Not Found- Here-s How to Fix it.md +++ b/published/20210526 Make Command Not Found- Here-s How to Fix it.md @@ -3,30 +3,32 @@ [#]: author: (Abhishek Prakash https://itsfoss.com/author/abhishek/) [#]: collector: (lujun9972) [#]: translator: (geekpi) -[#]: reviewer: ( ) -[#]: publisher: ( ) -[#]: url: ( ) +[#]: reviewer: (wxy) +[#]: publisher: (wxy) +[#]: url: (https://linux.cn/article-13451-1.html) -Make 命令未找到?这里是如何修复它 +Make 命令未找到?这是修复它的方法 ====== -有一天,我试图在一个新的 Ubuntu 系统上编译一个程序,当我试图使用 make 命令时,它向我抛出一个错误: +![](https://img.linux.net.cn/data/attachment/album/202106/02/203049l51rbr5v55kivg11.jpg) + +有一天,我试图在一个新的 Ubuntu 系统上编译一个程序,当我试图使用 `make` 命令时,它向我抛出一个错误: ``` The program 'make' is currently not installed. You can install it by typing: sudo apt install make ``` -这表明 make 命令还没有安装。你可以用这些命令在 Ubuntu 上逐步安装 make: +这表明 `make` 命令还没有安装。你可以用这些命令在 Ubuntu 上逐步安装 `make`: ``` sudo apt update sudo apt install make ``` -第一个命令是更新本地的软件包缓存。如果是一个新安装的 Ubuntu 系统,这是很有必要的。有了刷新的软件包缓存,你的系统就会知道应该从哪个仓库下载 make 包。 +第一个命令是更新本地的软件包缓存。如果是一个新安装的 Ubuntu 系统,这是很有必要的。有了刷新的软件包缓存,你的系统就会知道应该从哪个仓库下载 `make` 包。 -并验证 make 是否已经正确安装: +并验证 `make` 是否已经正确安装: ``` make --version @@ -36,7 +38,7 @@ make --version ### 在 Ubuntu 上安装 make 的更好方法 -安装 make 命令的一个更好的方法是使用 build-essential 包。这个包包含 make、gcc、g++ 和其他一些编译器和开发工具。 +安装 `make` 命令的一个更好的方法是使用 `build-essential` 包。这个包包含 `make`、`gcc`、`g++` 和其他一些编译器和开发工具。 ``` sudo apt install build-essential @@ -44,21 +46,21 @@ sudo apt install build-essential ![Installing Build Essential package][2] -安装了这个 build-essential 包后,你就可以[在 Linux 中轻松地运行 C/C++ 程序][3]。 +安装了这个 `build-essential` 包后,你就可以[在 Linux 中轻松地运行 C/C++ 程序][3]。 ### 如果 make 已经安装了,但它没有工作怎么办? -在一些罕见的情况下,可能会发生 make 已经安装了,但却无法工作的情况。 +在一些罕见的情况下,可能会发生 `make` 已经安装了,但却无法工作的情况。 -其原因是 make 命令不在 $PATH 变量中。你可以用这个命令重新安装 make: +其原因是 `make` 命令不在 `$PATH` 变量中。你可以用这个命令重新安装 `make`: ``` sudo apt install --reinstall make ``` -如果这不起作用,你可以尝试[手动添加二进制文件到你的 PATH 中][4],但这应该不需要手动。 +如果这不起作用,你可以尝试 [手动添加二进制文件到你的 PATH 中][4],但这应该不需要手动。 -我希望这个快速提示能帮助你。仍然有问题或对相关主题有疑问?请随时在评论区留言。我将在我的能力范围内尽力帮助你。如果你想得到更快速的回应,你可以[加入 It's FOSS 社区论坛][5]。祝你愉快 :) +我希望这个快速提示能帮助你。仍然有问题或对相关主题有疑问?请随时在评论区留言。 -------------------------------------------------------------------------------- @@ -67,7 +69,7 @@ via: https://itsfoss.com/make-command-not-found-ubuntu/ 作者:[Abhishek Prakash][a] 选题:[lujun9972][b] 译者:[geekpi](https://github.com/geekpi) -校对:[校对者ID](https://github.com/校对者ID) +校对:[wxy](https://github.com/wxy) 本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出