Mac安装mosquitto错误
brew install mosquitto
Error: You must brew link c-ares
before mosquitto can be installed
brew link c-ares libwebsockets
Error: Could not symlink lib/libcares.2.dylib
解决方法:
brew doctor
在提示信息中可以看到This can happen if you "sudo make install" software that isn't managed
运行sudo chown -R $(whoami) /usr/local/lib
,改回需要的权限。
然后运行brew link c-ares
在安装brew install mosquitto
。