mosquitto: error while loading shared libraries: libwebsockets.so.12: cannot open shared object file
错误描述:
# mosquitto -c /etc/mosquitto/mosquitto.conf -d
mosquitto: error while loading shared libraries: libwebsockets.so.12: cannot open shared object file: No such file or directory
解决方案:修改/etc/ld.so.conf文件,加入libwebsockets的so路径,如下
cat /etc/ld.so.conf
include ld.so.conf.d/*.conf /usr/local/src/libwebsockets-2.4.1/build/lib
执行命令
ldconfig
重新开启mosquitto
mosquitto -c /etc/mosquitto/mosquitto.conf -d