mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
docs: Correct priorities in the PATH string
Fixes https://github.com/espressif/esp-idf/pull/2944
This commit is contained in:
parent
b47fda98f3
commit
1332d3ba9c
@ -73,10 +73,10 @@ ESP32 toolchain for Linux is available for download from Espressif website:
|
||||
|
||||
printenv PATH
|
||||
|
||||
You are looking for similar result containing toolchain's path at the end of displayed string::
|
||||
You are looking for similar result containing toolchain's path at the beginning of displayed string::
|
||||
|
||||
$ printenv PATH
|
||||
/home/user-name/bin:/home/user-name/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/user-name/esp/xtensa-esp32-elf/bin
|
||||
/home/user-name/esp/xtensa-esp32-elf/bin:/home/user-name/bin:/home/user-name/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
|
||||
|
||||
Instead of ``/home/user-name`` there should be a home path specific to your installation.
|
||||
|
||||
|
@ -71,10 +71,10 @@ ESP32 toolchain for Linux is available for download from Espressif website:
|
||||
|
||||
printenv PATH
|
||||
|
||||
You are looking for similar result containing toolchain's path at the end of displayed string::
|
||||
You are looking for similar result containing toolchain's path at the beginning of displayed string::
|
||||
|
||||
$ printenv PATH
|
||||
/home/user-name/bin:/home/user-name/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/user-name/esp/xtensa-esp32-elf/bin
|
||||
/home/user-name/esp/xtensa-esp32-elf/bin:/home/user-name/bin:/home/user-name/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
|
||||
|
||||
Instead of ``/home/user-name`` there should be a home path specific to your installation.
|
||||
|
||||
|
@ -43,7 +43,7 @@ Linux 和 MacOS 操作系统
|
||||
要设置 ``IDF_PATH``,并在 PATH 中添加 ``idf.py``,请将以下两行代码增加至你的 ``~/.profile`` 文件中::
|
||||
|
||||
export IDF_PATH=~/esp/esp-idf
|
||||
export PATH="$PATH:$IDF_PATH/tools"
|
||||
export PATH="$IDF_PATH/tools:$PATH"
|
||||
|
||||
.. note::
|
||||
|
||||
@ -70,6 +70,6 @@ Linux 和 MacOS 操作系统
|
||||
如果你不想进行有关 ``IDF_PATH`` 或 ``PATH`` 的修改设置,你可以在每次重启或退出后在终端中手动输入::
|
||||
|
||||
export IDF_PATH=~/esp/esp-idf
|
||||
export PATH="$PATH:$IDF_PATH/tools"
|
||||
export PATH="$IDF_PATH/tools:$PATH"
|
||||
|
||||
如果你在安装 ESP32 开发的软件时,从 :ref:`get-started-setup-path-cmake` 小节跳到了这里,请返回 :ref:`get-started-start-project-cmake` 小节开始阅读。
|
||||
|
@ -73,10 +73,10 @@ Linux 版的 ESP32 工具链可以从 Espressif 的网站下载:
|
||||
|
||||
printenv PATH
|
||||
|
||||
检查一下字符串的末尾是否包含类似的工具链的路径::
|
||||
检查字符串的开头是否包含类似的工具链路径::
|
||||
|
||||
$ printenv PATH
|
||||
/home/user-name/bin:/home/user-name/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/user-name/esp/xtensa-esp32-elf/bin
|
||||
/home/user-name/esp/xtensa-esp32-elf/bin:/home/user-name/bin:/home/user-name/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
|
||||
|
||||
除了 ``/home/user-name``,应该有具体的安装的主路径。
|
||||
|
||||
|
@ -74,10 +74,10 @@ Linux 版的 ESP32 工具链可以从 Espressif 的网站下载:
|
||||
|
||||
printenv PATH
|
||||
|
||||
检查一下字符串的末尾是否包含类似的工具链的路径: ::
|
||||
检查字符串的开头是否包含类似的工具链路径::
|
||||
|
||||
$ printenv PATH
|
||||
/home/user-name/bin:/home/user-name/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/user-name/esp/xtensa-esp32-elf/bin
|
||||
/home/user-name/esp/xtensa-esp32-elf/bin:/home/user-name/bin:/home/user-name/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
|
||||
|
||||
除了 ``/home/user-name``,应该有具体的安装的主路径。
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user