首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >我在ubuntu 19上安装watchman时出错,有人能给我一个解决方案吗?

我在ubuntu 19上安装watchman时出错,有人能给我一个解决方案吗?
EN

Stack Overflow用户
提问于 2020-03-02 03:17:13
回答 1查看 1.2K关注 0票数 2

我遵循守望者的官方指南克隆守望者,并遵循给定的命令。

代码语言:javascript
复制
$ cd watchman

$ ./autogen.sh

$ ./configure

$ make 

$ make命令之后,它导致了如下错误

代码语言:javascript
复制
  CXX      scm/watchman-Mercurial.o
scm/Mercurial.cpp: In constructor ‘watchman::Mercurial::infoCache::infoCache(std::string)’:

scm/Mercurial.cpp:16:40: error: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘struct watchman::FileInformation’; use assignment or value-initialization instead [-Werror=class-memaccess]

   16 |   memset(&dirstate, 0, sizeof(dirstate));
      |                                        ^

In file included from scm/Mercurial.h:10,
                 from scm/Mercurial.cpp:3:
./FileInformation.h:18:8: note: ‘struct watchman::FileInformation’ declared here
   18 | struct FileInformation {
      |        ^~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make: *** [Makefile:4446: scm/watchman-Mercurial.o] Error 1

有人知道这是怎么回事吗?

EN

回答 1

Stack Overflow用户

发布于 2020-03-21 17:51:41

将这些标志添加到配置中(在make之前)为我做了这件事:

代码语言:javascript
复制
./configure --without-python  --without-pcre --enable-lenient
票数 13
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/60478843

复制
相关文章

相似问题

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