I want to install mongoDB that will work on my linux machine (ubuntu 22.05).
The problem is that mongoDB version 6 requires AVX support and I have a machine with a CPU that does not support AVX.
What version of mongo DB supports non AVX versions?
Welcome to the forum!
You can find out if AVX is there but not activated by trying
grep avx /proc/cpuinfo
If no flags appear, it’s really absent.
Version 4.4.29 is the last without an AVX requirement. Search MongoDB - releases - archive.
Be aware: No support, no security patches and probably doesn’t work with modern tools requiring v5.0+.
The cloud-based alternative is the free tier of MongoDB Atlas.
Best Regards
As said, looks like V4. Unless you can build from source and disabled the requirement. Or find a docker image with it disabled (issue has some links).
opened 07:35AM - 22 Apr 22 UTC
bug
mongodb
discussion
I was just testing our MongoDB v17.0 release and Mongo wouldn't start. In fact i… can't even read it's help or check it's version...:
```
root@mongodb ~# mongod --help
Illegal instruction
root@mongodb ~# mongod --version
Illegal instruction
```
After a bit of searching, I discovered a [bug that sums up the situation](https://jira.mongodb.org/browse/SERVER-59482). A comment from one of the devs notes that v5.0+ has [specific CPU requirements](https://www.mongodb.com/docs/manual/administration/production-notes/#x86_64).
Apparently, it could be recompiled to allow v5.0 to run on older x86_64 CPUs, although I'm not keen on doing that.
Another option is to stick with v4.4 for now?
I guess another option would be to provide 2 appliances, but 2 things; firstly I don't ahve a compatible CPU and I don't think that mongodb is popular enough for that. My inclination is to stick with v4 for now. We could perhaps have a script to upgrade?
FWIW on Linux to check if your CPU can run v5:
```
grep flags -m1 /proc/cpuinfo | grep avx
```
(FWIW, that will only check the first CPU core, but AFAIK, that's enough).