stardog-admin server start
ERROR 2022-11-23 18:51:05,639 [main] com.stardog.starrocks.StarrocksUtils:loadLibrary(73): Failed to load any starrocks library
ERROR 2022-11-23 18:51:05,642 [main] com.stardog.starrocks.StarrocksUtils:loadLibrary(75): Failed to load Starrocks
java.lang.UnsatisfiedLinkError: no Starrocks in java.library.path: [/opt/stardog/stardog-8.1.1/bin/../lib]
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:2673) ~[?:?]
at java.lang.Runtime.loadLibrary0(Runtime.java:830) ~[?:?]
at java.lang.System.loadLibrary(System.java:1873) ~[?:?]
at com.stardog.starrocks.StarrocksUtils.loadLibrary(StarrocksUtils.java:63) [stardog-8.1.1.jar:?]
at com.complexible.stardog.Stardog.<init>(Stardog.java:167) [stardog-8.1.1.jar:?]
at com.complexible.stardog.Stardog.<init>(Stardog.java:65) [stardog-8.1.1.jar:?]
at com.complexible.stardog.Stardog$StardogBuilder.create(Stardog.java:672) [stardog-8.1.1.jar:?]
at com.complexible.stardog.cli.impl.ServerStart.call(ServerStart.java:177) [stardog-cli-8.1.1.jar:?]
at com.complexible.stardog.cli.impl.ServerStart.call(ServerStart.java:43) [stardog-cli-8.1.1.jar:?]
at com.complexible.stardog.cli.CLIBase.execute(CLIBase.java:56) [stardog-cli-8.1.1.jar:?]
at com.complexible.stardog.cli.admin.CLI.main(CLI.java:168) [stardog-cli-8.1.1.jar:?]
ERROR 2022-11-23 18:51:05,648 [main] com.stardog.starrocks.StarrocksUtils:dumpLibraryInformation(115): Unable to load native library(Starrocks):
java.library.path = </opt/stardog/stardog-8.1.1/bin/../lib>
LD_LIBRARY_PATH = {/opt/stardog/stardog-8.1.1/bin/../lib}
java.lang.UnsatisfiedLinkError: no Starrocks in java.library.path: [/opt/stardog/stardog-8.1.1/bin/../lib]
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:2673) ~[?:?]
at java.lang.Runtime.loadLibrary0(Runtime.java:830) ~[?:?]
at java.lang.System.loadLibrary(System.java:1873) ~[?:?]
at com.stardog.starrocks.StarrocksUtils.loadLibrary(StarrocksUtils.java:63) [stardog-8.1.1.jar:?]
at com.complexible.stardog.Stardog.<init>(Stardog.java:167) [stardog-8.1.1.jar:?]
at com.complexible.stardog.Stardog.<init>(Stardog.java:65) [stardog-8.1.1.jar:?]
at com.complexible.stardog.Stardog$StardogBuilder.create(Stardog.java:672) [stardog-8.1.1.jar:?]
at com.complexible.stardog.cli.impl.ServerStart.call(ServerStart.java:177) [stardog-cli-8.1.1.jar:?]
at com.complexible.stardog.cli.impl.ServerStart.call(ServerStart.java:43) [stardog-cli-8.1.1.jar:?]
at com.complexible.stardog.cli.CLIBase.execute(CLIBase.java:56) [stardog-cli-8.1.1.jar:?]
at com.complexible.stardog.cli.admin.CLI.main(CLI.java:168) [stardog-cli-8.1.1.jar:?]
Failed to load any starrocks library
Our upcoming 8.2 release is the first to include an M1 compatible libStarrrocks. The immediate alternative is to install Apple's Rosetta software that emulates an x86_64 on the M1 hardware.
Today is a holiday in the U.S. Later today or tomorrow I might be able to build an 8.1.1 library for you. I will be in touch.
I have reread your original post and see you may already have Rosetta. My guess is that you have an M1 native Java, not an x86_64 built Java installed. An M1 Java requires and M1 library. Rosetta only applies to the entire process space, not per library.
If this is correct, you can either install an x86_64 Java instead of M1 Java ... or wait until I have time this afternoon or tomorrow to build an 8.1.1 M1 library.
Hi @matthewv, thanks for your reply and generous offer to build 8.1.1 library.
I neglected to mention I followed the more specific instructions on this other page:
Thank you for the added details. Sadly those details do not match what I expected. But then I have never spent time with a "mixed mode" build.
Attached is a fresh build of the library on an M1 machine that does not have Rosetta installed. Going to be the closest thing to "pure M1" as I know how to create. Here is the output from executing Apple's file command against the build: