The beauty of installing MongoDB directly from its source code is that it ensures that you can run MongoDB on any server, and that you have the absolute latest version. Minimum requirements for source installation include:
- A modern C++ 11 compiler
- Python (https://www.python.org/) 2.7 or above
- pip (https://pypi.org/project/pip/, tool for installing python packages)
- git (https://git-scm.com/, recommended)
In addition, there are OS-specific requirements, which are detailed in this table:
Linux | Compiler: GCC 4.8.2 or later |
Red Hat, and suchlike.
|
Libraries needed: glibc-devel libcurl-devel openssl-devel epel-release python-devel |
Ubuntu, and suchlike.
|
Libraries needed: build-essential libffi-dev libssl-dev ... |