ubuntu安装完auth-plug插件mosquitto-auth-plug后命令行运行mosquitto报错
mosquitto -c /etc/mosquitto/conf.d/mosquitto.conf -v
2023-05-22T09:22:11: mosquitto version 2.0.15 starting
2023-05-22T09:22:11: Config loaded from /etc/mosquitto/conf.d/mosquitto.conf.
2023-05-22T09:22:11: Loading plugin: /etc/mosquitto/plugin/auth-plug.so
2023-05-22T09:22:11: Error: Unable to load auth plugin "/etc/mosquitto/plugin/auth-plug.so".
2023-05-22T09:22:11: Load error: libmongoc-1.0.so.0: cannot open shared object file: No such file or directory
ubuntu下
sudo apt-get install libmongoc-1.0-0
回车
sudo apt-get install libbson-1.0-0
回车
再次命令行运行mosquitto,错误消失!