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 - 验证安装是否成功:
成功安装后会输出类似如下的GNU Make版本信息:make --versionGNU 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
相关产品推荐
相关产品推荐

