Acerodancisto
Acerodancisto

Reputation: 1

OpenMPI java binding on Mac with M1: (have 'x86_64', need 'arm64e' or 'arm64')

I have already installed the open-mpi by command arch -x86_64 brew reinstall --build-from-source open-mpi and run the terminal under Rosetta. In the terminal the command arch return with i386, and run mpirun java will still result:

mpi java lib failed to load: java.lang.UnsatisfiedLinkError: /usr/local/Cellar/open-mpi/5.0.3_1/lib/libmpi_java.40.dylib: dlopen(/usr/local/Cellar/open-mpi/5.0.3_1/lib/libmpi_java.40.dylib, 0x0001): tried: '/usr/local/Cellar/open-mpi/5.0.3_1/lib/libmpi_java.40.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/Cellar/open-mpi/5.0.3_1/lib/libmpi_java.40.dylib' (no such file), '/usr/local/Cellar/open-mpi/5.0.3_1/lib/libmpi_java.40.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or 'arm64'))

I have tried run with arch -x86_64 but I think this might not be the reason of this problem. Is there other possible way to run OpenMPI Java Binding on arm64? Or I need to install JDK under x86 with rosetta again.

Upvotes: 0

Views: 157

Answers (0)

Related Questions