centos6.8下安装mosquitto,并且支持libwebsockets.出现错误

zerovszero1 2018-03-15 03:34:26
环境centos6.8
libwebsockets:我安装了libwebsockets-2.4.2。安装方法:
cd xxxx/libwebsockets-2.4.2
mkdir build
cd build
cmake .. -DLIB_SUFFIX=64
make&&make install
mosquitto:我用推荐的安装方法,将centos6的库配置文件并将其复制到/ etc / yum.repos.d/,然后运行yum install mosquitto.报错Error: Package: mosquitto-1.4.15-1.1.x86_64 (home_oojah_mqtt) Requires: libwebsockets。
我用编译的方式,下载mosquitto-1.4.15。后将 config.mk WITH_WEBSOCKETS:=no,改为WITH_WEBSOCKETS:=yes。然后运行安装 make&& make install.安装成功后,在etc/mosquitto/mosquitto.conf 里面添加
port 8888
listener 8484
protocol websockets
启用服务mosquitto -c /etc/mosquitto/mosquitto.conf -d
报错
Error: Websockets support not available.
Error found at /etc/mosquitto/mosquitto.conf:139.
Error: Unable to open configuration file.
大神有安装过的,希望给出意见和建议,谢谢
...全文
1115 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

249

社区成员

发帖
与我相关
我的任务
社区描述
其他产品/厂家
社区管理员
  • 其他
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧