You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

VS Code Espressif扩展安装ESP-IDF失败:编译器未找到求助

问题:ESP-IDF扩展安装后交叉编译器未找到

环境

  • Ubuntu 23.10
  • Visual Studio Code v1.85.1

操作步骤

我按照官方指南执行了以下步骤:

  1. 安装Espressif扩展
  2. 安装依赖项:
    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
    
  3. 通过扩展配置页面安装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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.03 15:20:26