I'm trying to get MariaDB4J working on my new M1 MacBook Pro, and I'm not doing so great.
I am running the Arm versions of both libssl@1.1 and mariadb 10.6.4, both installed with Homebrew.
First I had issues with libssl not finding libssl, it had to have 1.0, so i installed symlinks from the 1.0 path the library expects to the homebrew 1.1 destination. According to various issue threads on the mariadb GitHub page this should work.
So, it indeed resulted in that libssl was found, but now I get another issue in the logs:
"Reason: tried: '/usr/local/opt/openssl/lib/libssl.1.0.0.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))"
So, I guess that something/mariadb4j expects the x86 version of libssl but I have arm? I'm not sure how to sort this out, so hoping that someone got this to work on M1. Pointers appreciated.
I'm the author of MariaDB4j, and can confirm that currently this is not possible / won't "just work". The reason is that what MariaDB4j does is simply package platform specific MariaDB binaries into JARs, and then natively exec
utes the mysqld
. And nobody has contributed the MariaDB binaries for M1 to MariaDB4j... but contributions to the project are very welcome! ;-) https://github.com/MariaDB4j/MariaDB4j/issues/497 tracks this FR.