How to install mongodb from source code

Hi Satya,

Please provide some more detail on your requirements:

  • What version of MongoDB Server (x.y.z) are you trying to build?

    Build requirements and instructions may vary between major server releases, so make sure you are following relevant instructions and have met all of the prerequisites (versions of C++ compiler, Python, and SCons are especially important).

  • What is your motivation for building from source?

    If you aren’t modifying source code, there may be an alternative approach to suggest (for example, offline installation of RPMs for an airgapped server). If you are trying to build a version of MongoDB server that doesn’t have prebuilt binaries for RHEL 7, that would also be helpful context.

Regards,
Stennie

1 Like