我按照https://quarkus.io/guides/building-native-image-guide上的说明进行操作,但失败并显示错误消息“无法生成本机图像”
我在 MacOS 上工作,安装了 Maven 3.6.0。命令的结果
mvn package -Pnative
最终出现以下错误消息:
Error: Error compiling query code (in /var/folders/cm/t91m64zj34d757jrhx6r3lz9kl946h/T/SVM-4468965107592954019/LibFFIHeaderDirectives.c). Compiler command gcc -I/Applications/graalvm-ce-1.0.0-rc14/Contents/Home/jre/lib/svm/clibraries/darwin-amd64/include /var/folders/cm/t91m64zj34d757jrhx6r3lz9kl946h/T/SVM-4468965107592954019/LibFFIHeaderDirectives.c -o /var/folders/cm/t91m64zj34d757jrhx6r3lz9kl946h/T/SVM-4468965107592954019/LibFFIHeaderDirectives output included error: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Error: Use -H:+ReportExceptionStackTraces to print stacktrace of underlying exception
Error: Image building with exit status 1
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 18.764 s
[INFO] Finished at: 2019-04-04T16:39:27+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.quarkus:quarkus-maven-plugin:0.12.0:native-image (default) on project getting-started: Failed to generate a native image: Failed to build native image: Image generation failed -> [Help 1]
有什么想法有什么问题吗?