How to install mongodb from source code

Hi @Doug_Duncan Thank you for your response. The document you shared is very helpful.

I am trying build mongodb from source code but getting the below error. It would be great if you help me in this regard.

python3.8 buildscripts/scons.py install-mongod

scons: Reading SConscript files …
scons: running with args /usr/local/bin/python3.8 buildscripts/scons.py install-mongod
Invalid MONGO_VERSION ‘’, or could not derive from version.json or git metadata. Please add a conforming MONGO_VERSION=x.y.z[-extra] as an argument to SCons

OS version :
Red Hat Enterprise Linux Server release 7.6 (Maipo)

Thanks,
Satya