These instructions have been tested on linux and the Mac, both using the system C++ compilers. Note that you need a compiler which supports C++17.
git clone https://github.com/rdkit/rdkit.git RDKit_git
this will create a directory called RDKit_git with the RDKit source.