Docs Menu

Docs HomeMongoDB Meta Documentation

Installing MongoDB Documentation Build Tools

On this page

  • Prerequisites
  • Procedure
  • Summary
  • What's Next
  • See Also

In this guide you will learn how to install the MongoDB Documentation Build Tools on macOS.

Time required: 45 minutes

  • macOS 10.14 or later.

1

Install XCode. This installation may take some time.

2

The following step depends on which version of macOS you are running:

3

If Homebrew is not installed, install it:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

When this completes, run the following commands:

brew update
brew doctor
4

The build tools require Python 3 and 2 from Homebrew. The version of Python which comes with macOS is unsupported and will not work.

Install Python 2 by running the following commands:

curl -LO https://raw.githubusercontent.com/Homebrew/homebrew-core/86a44a0a552c673a05f11018459c9f5faae3becc/Formula/python@2.rb
brew unlink openssl && brew install python@2.rb

Install Python 3 by running the following command:

brew install python@3.8
5

Install Giza, Sphinx, and their dependencies with Python 2:

python -m pip install -r https://raw.githubusercontent.com/mongodb/docs-tools/master/giza/requirements.txt

You might receive the an error containing the following text when you try to install Giza, Sphinx, and their dependencies:

No module named pip

If you receive this error, run the following commands, then try to install Giza, Sphinx, and their dependencies again:

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
6

Install Mut and its dependencies with Python 3:

brew install pkg-config
python3 -m pip install mut
7

First install XQuartz through Homebrew:

brew install --cask xquartz

Once XQuartz is installed, download and install Inkscape.

If you have successfully completed this guide, you have installed the MongoDB Build Tools.

Congratulations! Now that you've installed the Build Tools, you are ready to start building your site.

←  Fantastic Errors and How to Fix ThemHow to Create a Docstools-Enabled Repository →