在Ubuntu中使用websockets安装Mosquitto?

问题描述:

我正在关注this教程,在Amazon EC2的Ubuntu服务器(Ubuntu 14.04.2 LTS (GNU/Linux 3.13.0-48-generic x86_64))中使用libwebsockets设置Mosquitto。在Ubuntu中使用websockets安装Mosquitto?

当我尝试设置Libwebsockets的此特定版本(v1.4支持的Mosquitto)时,它表示gzip已损坏。

$ wget http://git.libwebsockets.org/cgi-bin/cgit/libwebsockets/snapshot/libwebsockets-1.4-chrome43-firefox-36.tar.gz 
$ tar zxvf libwebsockets-1.4-chrome43-firefox-36.tar.gz 


gzip: stdin: not in gzip format 
tar: Child returned status 1 
tar: Error is not recoverable: exiting now 

OK,我尝试下载相同的(在Windows中)和提取,但它返回一个EOF错误。我无法从其他地方找到图书馆。

来自GitHub的新websocket没有用,因为它不支持Mosquitto。我应该如何从这里出发?请帮忙。

我有同样的问题。 我在这里找到了这些文件: https://libwebsockets.org/git/libwebsockets/tag/?h=v1.4-chrome43-firefox-36

+0

非常感谢!这个文件很干净! :)我认为他们试图掩盖旧版本的可用性?或者它可能只是我..反正,归档这个文件供将来使用.. –

+1

该链接的文件似乎已经死了 –