Zend certified PHP/Magento developer

Cannot install mongodb-database-tools on Mac

https://www.mongodb.com/docs/database-tools/installation/installation-macos/

==> Installing mongodb-database-tools from mongodb/brew
Error: The following formula cannot be installed from bottle and must be
built from source.
  mongodb-database-tools
Install the Command Line Tools:
  xcode-select --install

I followed all the steps and it just doesn’t allow me to install it. Is there any other way to install it so I can run mongoexport from the command line?