0
I wanted to install mongodb on Manjaro.On arch wiki it says that there are two options
- mongodb - builds from source, requiring 180GB+ free disk space, and may take several hours to build (i.e. 6.5 hours on Intel i7, 1 hour on 32 Xeon cores with high-end NVMe.)
- mongodb-bin - prebuilt MongoDB binary extracted from official MongoDB Ubuntu repository packages. Compilation options used are unknown.
I ended up install mongodb-bin,but just out of curiosity - why installing the mongodb package requires 180GB+ of free space and takes such a long time to build?
The build from source estimate seems excessively conservative, although the wiki page doesn't suggest what sort of i7 was being used, what the relevant build options were, or the version of MongoDB server. I think 30 mins or so is more typical on a recent MacBook Pro with i7 with appropriate
– Stennie – 2019-07-15T05:13:59.283-j
flag to run more jobs in parallel (to match your CPU cores); incremental builds are much faster. The 180GB of disk space is probably due to building theall
target which includes statically linked unit tests. An older answer from 2013 (needs an update): https://stackoverflow.com/q/16097526/1388319.