[英]How to install facebook watchman on ubuntu?
我從github鏈接https://github.com/facebook/watchman.git得到了守望者,然后我得到了watchman文件夾並嘗試了這個
./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)
您需要安裝每個缺少的包。
例如在ubuntu上:
$ sudo apt-get install automake <=== contains autoheader, ...
$ sudo apt-get install autoconf
如果您最終遇到一些錯誤,例如AC_ * undefined,那么您可能需要更新的automake版本。 您可以從gnu repo下載源代碼...請參閱: https : //www.gnu.org/software/automake/
如果在$ ./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
等步驟。
$ 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
在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
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.