Installing from source

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:

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 ...

Get MongoDB 4 Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.