如何在ubuntu上安装facebook watchman?

问题描述 投票:17回答:4

我从github链接https://github.com/facebook/watchman.git得到了守望者,然后我得到了守望者文件夹并尝试了这个

./autogen.sh 

./autogen.sh: 9: ./autogen.sh: aclocal: not found

./autogen.sh: 10: ./autogen.sh: autoheader: not found

./autogen.sh: 11: ./autogen.sh: automake: not found

./autogen.sh: 12: ./autogen.sh: autoconf: not found

为什么?我有python 2.7.9

这可能是原因吗? (我使用ubuntu 15.04 btw)

python facebook react-native watchman
4个回答
51
投票

您需要安装每个缺少的包。

例如在ubuntu上:

$ sudo apt-get install automake  <=== contains autoheader, ...
$ sudo apt-get install autoconf

如果您最终遇到一些错误,例如AC_ * undefined,那么您可能需要更新的automake版本。您可以从gnu repo下载源代码...请参阅:https://www.gnu.org/software/automake/


4
投票

如果在$ ./autogen.sh上收到以下错误

$ ./autogen.sh
./autogen.sh: 9: ./autogen.sh: aclocal: not found
./autogen.sh: 10: ./autogen.sh: autoheader: not found
./autogen.sh: 11: ./autogen.sh: automake: not found
./autogen.sh: 12: ./autogen.sh: autoconf: not found

您需要安装automake && autoconf。

我做了以下事情:

sudo apt-get install automake autoconf

然后继续执行./autogen.sh等的步骤。


0
投票
  1. 项目清单

$ cd~ $ git clone https://github.com/facebook/watchman.git $ cd watchman / $ git checkout v4.7.0 $ sudo apt-get install -y autoconf automake build-essential python-dev $ ./autogen.sh $ ./configure $ make $ sudo make install

$ watchman --version $ echo 999999 | sudo tee -a / proc / sys / fs / inotify / max_user_watches && echo 999999 | sudo tee -a / proc / sys / fs / inotify / max_queued_events && echo 999999 | sudo tee -a / proc / sys / fs / inotify / max_user_instances && watchman shutdown-server


0
投票

在Ubuntu 18.04上使用Watchman v4.9.0:

sudo apt-get update
sudo apt-get install -y autoconf automake build-essential python-dev libtool pkg-config libssl-dev

然后按照https://facebook.github.io/watchman/docs/install.html#installing-from-source的说明进行操作:

git clone https://github.com/facebook/watchman.git
cd watchman
git checkout v4.9.0  # the latest stable release
./autogen.sh
./configure
make
sudo make install
© www.soinside.com 2019 - 2024. All rights reserved.