…/lib/libmosquitto.so.1: undefined reference to `SSL_CTX_set_alpn_protos’
collect2: error: ld returned 1 exit status
make[1]: *** [mosquitto_pub] Error 1
原因:openssl版本过旧
解决方法:安装新版本
sudo apt-get install libssl-dev
sudo apt-get install libjsoncpp-dev

Logo

更多推荐