我试着在Ubuntu19.10上安装看门人,但它引发了一些问题。
我的命令:
$ cd ~
$ git clone https://github.com/facebook/watchman.git
$ cd watchman/
$ git checkout v4.9.0
$ sudo apt-get install -y autoconf automake build-essential
python-dev
$ ./autogen.sh
$ ./configure
$ make
$ sudo make install$ watchman --version问题:
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[1]: *** [Makefile:4446: scm/watchman-Mercurial.o] Error 1
make[1]: Leaving directory '/home/elavarasan/watchman-4.9.0'
make: *** [Makefile:1264: all] Error 2期望:看守人成功安装。守望者4.9.0版
发布于 2019-11-16 01:29:10
正在运行
./configure --without-python --without-pcre --enable-lenient在make完成这个任务之前。我找到了答案,在这个AskUbuntu问题中。
https://askubuntu.com/questions/1186308
复制相似问题