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

Ubuntu 22.04部署GraalVM执行mx build时提示找不到GNU make

解决GraalVM mx build时提示"Could not find a GNU make executable"的问题

在DigitalOcean的Ubuntu 22.04云服务器上部署GraalVM,配置好JAVA_HOME环境变量并将mx加入PATH后,在graal/compiler目录执行mx build命令时出现以下错误:

File "/home/javaApplications/graal/truffle/mx.truffle/suite.py", line 796 in definition of libffi:
Could not find a GNU make executable on the current path.

解决方案

  • 更新系统软件包索引:
    sudo apt update
    
  • 安装GNU make工具:
    sudo apt install make
    
  • 验证安装是否成功:
    make --version
    
    成功安装后会输出类似如下的GNU Make版本信息:
    GNU Make 4.3
    Built for x86_64-pc-linux-gnu
    Copyright (C) 1988-2020 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    
  • 回到graal/compiler目录,重新执行mx build命令即可正常编译。

内容的提问来源于stack exchange,提问作者flyingfishcattle

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.08.10 04:01:24