我已经使用命令apt-get install mosquitto
安装了mosquitto。它已成功安装在我的系统上,但是我获得了“1.4.5”版本。我想降级到版本1.4.4,所以我尝试使用源tar文件。文件夹下,我运行命令make
,它抛出一个错误:Mqtt:如何安装mosquitto旧版本
set -e; for d in lib client src; do make -C ${d}; done
make[1]: Entering directory `/home/ubuntu/org.eclipse.mosquitto-1.4.4/lib'
cc -Wall -ggdb -O2 -I. -I.. -I../lib -fPIC -DWITH_TLS -DWITH_TLS_PSK -DWITH_THREADING -DWITH_SOCKS -DWITH_SRV -c mosquitto.c -o mosquitto.o
In file included from mosquitto.c:33:0:
./mosquitto_internal.h:27:27: fatal error: openssl/ssl.h: No such file or directory
# include <openssl/ssl.h>
^
compilation terminated.
make[1]: *** [mosquitto.o] Error 1
make[1]: Leaving directory `/home/ubuntu/org.eclipse.mosquitto-1.4.4/lib'
make: *** [mosquitto] Error 2
这是怎么回事错在这里?有没有其他的方法来安装1.4.4版本的蚊子?
谢谢
为什么你想回到1.4.4? – hardillb
错误在于你没有安装openssl开发包,apt-get install libssl-dev可能会解决这个问题 – hardillb
我们在1.4.5中遇到了一些问题。在1.4.5上,一些消息不会传递,当我在1.4.4上时,它工作正常。所以为了确保,我想在1.4.4上进行测试。 –