Code Monkey home page Code Monkey logo

Comments (5)

benalexau avatar benalexau commented on June 12, 2024 1

I have released 0.9.0.

from lmdbjava.

paul-snively avatar paul-snively commented on June 12, 2024

Thank you so much for this!

Unfortunately, one of our developers on Apple Silicon, when trying to use the new 0.9.0 dependency, gets:

rnode.bootstrap   | 2023-12-06 18:26:40,299 [main] ERROR coop.rchain.node.Main$ - Unhandled exception in thread main
rnode.bootstrap   | java.lang.UnsatisfiedLinkError: could not load FFI provider jnr.ffi.provider.jffi.Provider
rnode.bootstrap   |     at jnr.ffi.provider.InvalidProvider$1.loadLibrary(InvalidProvider.java:49)
rnode.bootstrap   |     at jnr.ffi.LibraryLoader.load(LibraryLoader.java:420)
rnode.bootstrap   |     at jnr.ffi.LibraryLoader.load(LibraryLoader.java:399)
rnode.bootstrap   |     at org.lmdbjava.Library.<clinit>(Library.java:81)
rnode.bootstrap   |     at org.lmdbjava.Env$Builder.open(Env.java:580)

I've manually downloaded the published .jars for jnr-ffi, jnr-jffi, and lmdbjava, extracted them, and honestly, everything looks in order. I've used the Ammonite REPL for Scala, imported lmdbjava from the central Maven repo, and walked through the steps of the tutorial to create a database, insert data, retrieve data, etc. successfully, but I'm on an X86_64 macOS box. Any advice would be welcome.

Thanks again!

from lmdbjava.

miner avatar miner commented on June 12, 2024

Just FYI, the new 0.9.0 works for me with Clojure (a Lisp on the JVM) on my Mac Studio (M1 Max). This is the first time I've been able to use lmbdjava on an M1 Mac. BTW, I had to add some JVM options to work with Java 21 (amazon-corretto-21):

--add-opens=java.base/java.nio=ALL-UNNAMED
--add-opens=java.base/sun.nio.ch=ALL-UNNAMED

I probably should track down the precise access issues but I will leave that for a future bug report. A quick search on StackOverflow gave me the magic incantations that allowed my tests to work so I'm good for now. [Update: the --add-opens work around is discussed in issue #42.]

from lmdbjava.

paul-snively avatar paul-snively commented on June 12, 2024

Mac Studio (M1 Max)

It may be worth noting my colleague is on an M2 Mac.

from lmdbjava.

benalexau avatar benalexau commented on June 12, 2024

Can you please open a separate issue as this is unrelated to the original issue of the release date. Thanks.

from lmdbjava.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.