espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.32k stars 7.2k forks source link

when running install.sh shows error --targets=all: command not found (IDFGH-8267) #9754

Closed flyingsevenup closed 2 years ago

flyingsevenup commented 2 years ago

Answers checklist.

IDF version.

v5.1-dev-644-g867745a05c

Operating System used.

macOS

How did you build your project?

Other (please specify in More Information)

If you are using Windows, please specify command line type.

No response

What is the expected behavior?

expected it install without any problems.

What is the actual behavior?

this show up after I run the install.sh

./install.sh
Detecting the Python interpreter Checking "python3" ... Python 3.7.9 "python3" has been detected Checking Python compatibility Installing ESP-IDF tools Current system platform: macos Selected targets are: esp32s2, esp32c3, esp32c6, esp32h2, esp32c2, esp32s3, esp32 Installing tools: xtensa-esp-elf-gdb, riscv32-esp-elf-gdb, xtensa-esp32-elf, xtensa-esp32s2-elf, xtensa-esp32s3-elf, riscv32-esp-elf, esp32ulp-elf, esp32s2ulp-elf, openocd-esp32 Skipping xtensa-esp-elf-gdb@11.2_20220823 (already installed) Skipping riscv32-esp-elf-gdb@11.2_20220823 (already installed) Skipping xtensa-esp32-elf@esp-2022r1-11.2.0 (already installed) Skipping xtensa-esp32s2-elf@esp-2022r1-11.2.0 (already installed) Skipping xtensa-esp32s3-elf@esp-2022r1-11.2.0 (already installed) Skipping riscv32-esp-elf@esp-2022r1-11.2.0 (already installed) Skipping esp32ulp-elf@2.28.51-esp-20191205 (already installed) Skipping esp32s2ulp-elf@2.28.51-esp-20191205 (already installed) Skipping openocd-esp32@v0.11.0-esp32-20220706 (already installed) ./install.sh: line 20: --targets=all: command not found

I'm very new to coding and are very struggling because my English is not good. So if anyone can help me out will be really appreciated.

Steps to reproduce.

step1. run install.sh step2. I run in the certificates problem. I try many methods but I managed to solve it by running the InstallCertificates.command in the Python3.7 folder step3. run install.sh again step4. error appeared

Build or installation Logs.

No response

More Information.

I'm using the terminal to install.

dobairoland commented 2 years ago

Hi @flyingsevenup. Could you please check that the install.sh has not been modified (e.g. you can run git status). Given that the line number for the given ESP-IDF commit is wrong, I suspect that the file has been modified and line no. 19 was split into two.

flyingsevenup commented 2 years ago

@dobairoland It did been modified. I think is probably I accidentally changed something when I trying to solve the certificates problem. I run the git restore install.sh and then it run successfully. Thanks a lot.