Running nativeImageAgent with nativeImageVersion set to 21.x fails because of a missing library: Could not find agent library native-image-agent
To Reproduce Steps to reproduce the behavior:
Set nativeImageVersion := "21.3.0" in build.sbt
Run sbt nativeImageAgent
Expected behavior
It should run successfully just as it does in 20.x
Screenshots
❯ sbt buildNativeImage 54s
...
[info] Error occurred during initialization of VM
[info] Could not find agent library native-image-agent on the library path, with error: dlopen(libnative-image-agent.dylib, 0x0001): tried: '/Users/brendan/Library/Caches/Coursier/jvm/graalvm-java11@21.3.0/Co
ntents/Home/lib/server/./libnative-image-agent.dylib' (no such file), '/Users/brendan/Library/Caches/Coursier/jvm/graalvm-java11@21.3.0/Contents/Home/lib/server/../libnative-image-agent.dylib' (no such file),
'/Users/brendan/Library/Caches/Coursier/jvm/graalvm-java11@21.3.0/Contents/Home/bin/../lib/jli/libnative-image-agent.dylib' (no such file), 'libnative-image-agent.dylib' (no such file), '/usr/local/lib/libna
tive-image-agent.dylib' (no such file), '/usr/lib/libnative-image-agent.dylib' (no such file), '/Users/brendan/workspace/alfred-s3-workflow/libnative-image-agent.dylib' (no such file), '/usr/local/lib/libnati
ve-image-agent.dylib' (no such file), '/usr/lib/libnative-image-agent.dylib' (no such file)
[error] Nonzero exit code returned from runner: 1
[error] (Compile / run) Nonzero exit code returned from runner: 1
[error] Nonzero exit code returned from runner: 1
[error] (nativeImageRunAgent) Nonzero exit code returned from runner: 1
[error] Total time: 7 s, completed Nov 25, 2021, 9:53:23 PM
Installation:
Operating system: macOS
Version: Montery 12.0.1
M1 chip
Additional Context
Cousier is not downloading the lib so it may not be a problem in this repo, but I'm starting with this issue while I investigate in the hopes that someone has an easy fix.
Describe the bug
Running
nativeImageAgent
withnativeImageVersion
set to21.x
fails because of a missing library:Could not find agent library native-image-agent
To Reproduce Steps to reproduce the behavior:
nativeImageVersion := "21.3.0"
inbuild.sbt
sbt nativeImageAgent
Expected behavior
It should run successfully just as it does in
20.x
Screenshots
Installation:
Additional Context
Cousier is not downloading the lib so it may not be a problem in this repo, but I'm starting with this issue while I investigate in the hopes that someone has an easy fix.
Search terms
nativeImageAgent