首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何消除蚊虫安装中的误差

如何消除蚊虫安装中的误差
EN

Stack Overflow用户
提问于 2015-08-12 04:50:32
回答 1查看 602关注 0票数 1

我正试图在Linux上安装蚊帐1.3,按照他的步骤.

代码语言:javascript
复制
1-    wget http://mosquitto.org/files/source/mosquitto-1.3.tar.gz
2-    tar -zxvf mosquitto-1.3.tar.gz
3-    cd mosquitto-1.3
4-    cmake .
5-    make install

然后,它开始很好,但在中间,它打破和显示一个错误。

代码语言:javascript
复制
  [root@localhost mosquitto-1.3]# make install 
  Scanning dependencies of target libmosquitto<br/>
  [  2%] Building C object lib/CMakeFiles/libmosquitto.dir/logging_mosq.c.o<br/>
  [  4%] Building C object lib/CMakeFiles/libmosquitto.dir/memory_mosq.c.o<br/>
  [  6%] Building C object lib/CMakeFiles/libmosquitto.dir/messages_mosq.c.o<br/>
  [  8%] Building C object lib/CMakeFiles/libmosquitto.dir/mosquitto.c.o<br/>
  [ 10%] Building C object lib/CMakeFiles/libmosquitto.dir/net_mosq.c.o<br/>
  [ 13%] Building C object lib/CMakeFiles/libmosquitto.dir/read_handle.c.o<br/>
  [ 15%] Building C object lib/CMakeFiles/libmosquitto.dir    /read_handle_client.c.o<br/>
  [ 17%] Building C object lib/CMakeFiles/libmosquitto.dir /read_handle_shared.c.o<br/>
  [ 19%] Building C object lib/CMakeFiles/libmosquitto.dir/send_client_mosq.c.o<br/>
  [ 21%] Building C object lib/CMakeFiles/libmosquitto.dir/send_mosq.c.o<br/>
  [ 23%] Building C object lib/CMakeFiles/libmosquitto.dir/srv_mosq.c.o<br/>
  [ 26%] Building C object lib/CMakeFiles/libmosquitto.dir/thread_mosq.c.o<br/>
  [ 28%] Building C object lib/CMakeFiles/libmosquitto.dir/time_mosq.c.o<br/>
  [ 30%] Building C object lib/CMakeFiles/libmosquitto.dir/tls_mosq.c.o<br/>
  [ 32%] Building C object lib/CMakeFiles/libmosquitto.dir/util_mosq.c.o<br/>
  [ 34%] Building C object lib/CMakeFiles/libmosquitto.dir/will_mosq.c.o<br/>
  Linking C shared library libmosquitto.so<br/>
  /usr/bin/ld: cannot find -lcares<br/>
  collect2: ld returned 1 exit status<br/>
  make[2]: *** [lib/libmosquitto.so.1.3] Error 1<br/>
  make[1]: *** [lib/CMakeFiles/libmosquitto.dir/all] Error 2<br/>
  make: *** [all] Error 2<br/>

我能用这个做什么。帮我..。谢谢。

EN

回答 1

Stack Overflow用户

发布于 2015-08-12 06:28:39

看来您的系统上没有安装c-ares。请参阅源树中的compiling.txt文件。

代码语言:javascript
复制
The following packages are required for mosquitto:

* tcp-wrappers (optional, package name libwrap0-dev)
* openssl (version 1.0.0 or greater if TLS-PSK support is needed, can be disabled)
* c-ares (for DNS-SRV support, can be disabled)
* libuuid (from e2fsprogs, can be disabled)
* On Windows, the Redhat pthreads library is required if threading support is
  to be included.

To compile, run "make", but also see the file config.mk for more details on the
various options that can be compiled in.

Where possible use the Makefiles to compile. This is particularly relevant for
the client libraries as symbol information will be included.  Use cmake to
compile on Windows or Mac.

If you have any questions, problems or suggestions (particularly related to
installing on a more unusual device like a plug-computer) then please get in
touch using the details in readme.txt.
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/31956270

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档