From 7ea44fc419be2475a07e6e737d97cd44c5c3bf3d Mon Sep 17 00:00:00 2001 From: Liu Tie <17625901395@163.com> Date: Fri, 28 Jun 2024 23:08:02 +0800 Subject: [PATCH] doc: update the documentation for Mac (#12278) --- README.md | 13 +++++++++++++ README_EN.md | 15 +++++++++++++++ README_JA.md | 14 ++++++++++++++ 3 files changed, 42 insertions(+) diff --git a/README.md b/README.md index 822c8ae9c..d44103344 100644 --- a/README.md +++ b/README.md @@ -132,6 +132,8 @@ PS > git clone git@github.com:coolsnowwolf/lede.git 4. 然后输入以下命令,添加到系统环境变量中: + - intel 芯片的 mac + ```bash echo 'export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"' >> ~/.bashrc echo 'export PATH="/usr/local/opt/findutils/libexec/gnubin:$PATH"' >> ~/.bashrc @@ -141,6 +143,17 @@ PS > git clone git@github.com:coolsnowwolf/lede.git echo 'export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"' >> ~/.bashrc echo 'export PATH="/usr/local/opt/make/libexec/gnubin:$PATH"' >> ~/.bashrc ``` + - apple 芯片的 mac + + ```zsh + echo 'export PATH="/opt/homebrew/opt/coreutils/libexec/gnubin:$PATH"' >> ~/.bashrc + echo 'export PATH="/opt/homebrew/opt/findutils/libexec/gnubin:$PATH"' >> ~/.bashrc + echo 'export PATH="/opt/homebrew/opt/gnu-getopt/bin:$PATH"' >> ~/.bashrc + echo 'export PATH="/opt/homebrew/opt/gnu-tar/libexec/gnubin:$PATH"' >> ~/.bashrc + echo 'export PATH="/opt/homebrew/opt/grep/libexec/gnubin:$PATH"' >> ~/.bashrc + echo 'export PATH="/opt/homebrew/opt/gnu-sed/libexec/gnubin:$PATH"' >> ~/.bashrc + echo 'export PATH="/opt/homebrew/opt/make/libexec/gnubin:$PATH"' >> ~/.bashrc + ``` 5. 重新加载一下 shell 启动文件 `source ~/.bashrc`,然后输入 `bash` 进入 bash shell,就可以和 Linux 一样正常编译了 diff --git a/README_EN.md b/README_EN.md index 9705f50ed..80f6d25e5 100644 --- a/README_EN.md +++ b/README_EN.md @@ -265,6 +265,9 @@ PS > git clone git@github.com:coolsnowwolf/lede.git brew install gcc@11 ``` 4. Update your system environment: + + - mac with intel chip + ```bash echo 'export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"' >> ~/.bashrc echo 'export PATH="/usr/local/opt/findutils/libexec/gnubin:$PATH"' >> ~/.bashrc @@ -274,6 +277,18 @@ PS > git clone git@github.com:coolsnowwolf/lede.git echo 'export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"' >> ~/.bashrc echo 'export PATH="/usr/local/opt/make/libexec/gnubin:$PATH"' >> ~/.bashrc ``` + + - mac with apple chip + + ```zsh + echo 'export PATH="/opt/homebrew/opt/coreutils/libexec/gnubin:$PATH"' >> ~/.bashrc + echo 'export PATH="/opt/homebrew/opt/findutils/libexec/gnubin:$PATH"' >> ~/.bashrc + echo 'export PATH="/opt/homebrew/opt/gnu-getopt/bin:$PATH"' >> ~/.bashrc + echo 'export PATH="/opt/homebrew/opt/gnu-tar/libexec/gnubin:$PATH"' >> ~/.bashrc + echo 'export PATH="/opt/homebrew/opt/grep/libexec/gnubin:$PATH"' >> ~/.bashrc + echo 'export PATH="/opt/homebrew/opt/gnu-sed/libexec/gnubin:$PATH"' >> ~/.bashrc + echo 'export PATH="/opt/homebrew/opt/make/libexec/gnubin:$PATH"' >> ~/.bashrc + ``` 5. Reload your shell profile `source ~/.bashrc && bash`, then you can compile normally like Linux. ## Declaration diff --git a/README_JA.md b/README_JA.md index fee5c5e4a..9fdc58046 100644 --- a/README_JA.md +++ b/README_JA.md @@ -265,6 +265,8 @@ PS > git clone git@github.com:coolsnowwolf/lede.git brew install gcc@11 ``` 4. システム環境のアップデート: + + - MacのIntelシリコンバージョン ```bash echo 'export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"' >> ~/.bashrc echo 'export PATH="/usr/local/opt/findutils/libexec/gnubin:$PATH"' >> ~/.bashrc @@ -274,6 +276,18 @@ PS > git clone git@github.com:coolsnowwolf/lede.git echo 'export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"' >> ~/.bashrc echo 'export PATH="/usr/local/opt/make/libexec/gnubin:$PATH"' >> ~/.bashrc ``` + + - MacのAppleシリコンバージョン + + ```zsh + echo 'export PATH="/opt/homebrew/opt/coreutils/libexec/gnubin:$PATH"' >> ~/.bashrc + echo 'export PATH="/opt/homebrew/opt/findutils/libexec/gnubin:$PATH"' >> ~/.bashrc + echo 'export PATH="/opt/homebrew/opt/gnu-getopt/bin:$PATH"' >> ~/.bashrc + echo 'export PATH="/opt/homebrew/opt/gnu-tar/libexec/gnubin:$PATH"' >> ~/.bashrc + echo 'export PATH="/opt/homebrew/opt/grep/libexec/gnubin:$PATH"' >> ~/.bashrc + echo 'export PATH="/opt/homebrew/opt/gnu-sed/libexec/gnubin:$PATH"' >> ~/.bashrc + echo 'export PATH="/opt/homebrew/opt/make/libexec/gnubin:$PATH"' >> ~/.bashrc + ``` 5. シェルプロファイル `source ~/.bashrc && bash` を再読み込みすれば、Linux のように普通にコンパイルできます。 ## 宣言