VS Code Espressif扩展安装ESP-IDF失败:编译器未找到求助
问题:ESP-IDF扩展安装后交叉编译器未找到
环境
- Ubuntu 23.10
- Visual Studio Code v1.85.1
操作步骤
我按照官方指南执行了以下步骤:
- 安装Espressif扩展
- 安装依赖项:
sudo apt-get install git wget flex bison gperf python3 python3-pip python3-venv cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0 - 通过扩展配置页面安装GitHub上的ESP-IDF
master分支
出现的错误
程序完成所有下载和安装操作后,弹出如下错误:
/bin/sh: 1: riscv32-esp-elf-gcc: not found Command failed: riscv32-esp-elf-gcc --version /bin/sh: 1: riscv32-esp-elf-gcc: not found Error checking riscv32-esp-elf version Error: Command failed: riscv32-esp-elf-gcc --version /bin/sh: 1: riscv32-esp-elf-gcc: not found /bin/sh: 1: xtensa-esp-elf-gcc: not found Command failed: xtensa-esp-elf-gcc --version /bin/sh: 1: xtensa-esp-elf-gcc: not found Error checking xtensa-esp-elf version Error: Command failed: xtensa-esp-elf-gcc --version /bin/sh: 1: xtensa-esp-elf-gcc: not found
我在两台配置完全相同的机器上重复了上述操作,结果完全一致。
疑问
我是否遗漏了某个步骤?安装程序不是应该自动处理所有依赖和工具的安装吗?
内容的提问来源于stack exchange,提问作者Mark
相关产品推荐
相关产品推荐

