Closed MetroMarv closed 1 year ago
I guess I figured it out myself. When I set the version of the MongoDB to 6.0.3. The test worked. So I assume that MongoDB 5 is not compatible with M1 chips.
With 6.x.x there is a ARM-Version for macos .. so if this works for you i am fine with that . :)
@MetroMarv do you have rosetta running on your machine? see: https://stackoverflow.com/questions/56553879/android-studio-cause-error-86-bad-cpu-type-in-executable
@MetroMarv any progress with that?
Hi,
It's work with the new version 4.5.2:
<flapdoodle.embed.mongo.spring30x.version>4.5.2</flapdoodle.embed.mongo.spring30x.version>
Thanks
@MetroMarv @tchoteau .. should we close this issue?
@tchoteau @MetroMarv i close this issue - reopen if needed:)
I setup our project on my new MacBook Pro with M1 Pro CPU and MacOS Ventura 13.2 installed and facing an error when running my @DataMongoTests. The error states
java.io.IOException: Cannot run program "<some path in my home dir>/mongod" (in directory "<some path in my var dir>/workingDir3616432966529587742"): error=86, Bad CPU type in executable
.We're using following dependency versions
And set the
de.flapdoodle.mongodb.embedded.version: 5.0.5
. The output fromSystem.getProperty("os.arch")
isaarch64
. Java version isopenjdk 17.0.5
.Our tests are decorated as follows
I also tried to execute the
mongodb
executable standalone in the terminal. There I also receivezsh: bad CPU type in executable: <path to mongodb executable>
.Any idea what I'm doing wrong or is it a bug?
The full stacktrace looks as follows: