rea.run

← FAQ 枢纽

FAQ · P0

macOS:Ghidra 原生反编译器缺失(12.1.4)

若 Mac 上 doctor --provider ghidra 因 native_decompiler 缺失失败,多半是打包缺口——不是 npm 装坏了。

会发生什么

Ghidra 12.1.4 PUBLIC 发行常见只带 linux_x86_64 与 win_x86_64 原生反编译器。在 macOS 上,REA 的 doctor 可能报告反编译器 OS 目录为空/缺失。上游 REA拒绝替你自动编译该原生工具。

怎么做(社区配方)

  1. 用绝对路径确认 JDK + GHIDRA_INSTALL_DIR。
  2. 按 Ghidra 文档在本机工具链上执行 make ghidra_opt(或以当前上游等价目标)编译可选反编译器。
  3. 把得到的 decompile 拷到 Ghidra 的 os/mac_x86_64/(或相应的 mac_arm_64/)布局。
  4. 重跑 npx -y rea-agents@latest doctor --provider ghidra --json。若 GUI/headless 包装也误报,对照相关 issue 的启动诊断。

具体 make 目标随 Ghidra 版本变动——以你所用 tag 的 Ghidra 构建文档为准。本站不粘贴专有插件破解。

相关