There was an error installing brew install mongodb on Mac. The directory / usr/local/opt/pkg-config could not be found.

there was an error installing brew install mongodb on Mac. The directory / usr/local/opt/pkg-config could not be found

Mar.04,2021

clipboard.png
encounters installation problems and solves them from top to bottom. Generally speaking, there is a lack of dependent packages. Just install them. In the figure, you need to install xcode-select, first and then reinstall pkg-config.


follow the instructions. Doesn't it tell you to reinstall pkg-config? first:

brew install pkg-config

then

brew install mongodb
Menu