Как установить watchman на Ubuntu 19.10 для реагирования на родной код [дубликат]

Я пытался установить Watchman на Ubuntu 19.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

0
задан 5 November 2019 в 07:45

1 ответ

Выполнение

./configure --without-python --without-pcre --enable-lenient

прежде make добьется цели.
Я нашел ответ в этом вопросе о AskUbuntu.

1
ответ дан 22 December 2019 в 00:06

Другие вопросы по тегам:

Похожие вопросы: