Sunday, 7 January 2018

Install watchman in Ubuntu 14.04

Install watchman:-

SRC: https://facebook.github.io/watchman/docs/install.html
Helper links:
https://stackoverflow.com/questions/33592197/how-to-install-facebook-watchman-on-ubuntu
https://www.howtoinstall.co/en/ubuntu/trusty/inotify-tools
Installing from source
You can use these steps below to get watchman built. You will need autoconf, automake and libtool (or glibtool on OS X). You may optionally build watchman without pcre and python support (see configuration options below). For python support, you will need setuptools and may need to install a python-dev or python-devel package. To build the C++ client library you will need to install libfolly.

See below for some more information on options to configure your build.

$ git clone https://github.com/facebook/watchman.git
$ cd watchman
$ git checkout v4.9.0  # the latest stable release
$ ./autogen.sh [Issue1,2]
$ ./configure
$ make [Issue3]
$ sudo make install

ISSUE1: your system lacks libtoolize

SOLUTION1: sudo apt-get install libtool
https://github.com/facebook/watchman/issues/486

ISSUE2: After resolving issue#1, try run ./autogen.sh then it returns "aclocal: command not found"
SOLUTION1: [https://stackoverflow.com/questions/33592197/how-to-install-facebook-watchman-on-ubuntu]
   a) sudo apt-get install automake  <<<<  contains autoheader, ...
   b) sudo apt-get install autoconf

ISSUE3: fatal error: Python.h: No such file or directory
SOLUTION1: a) sudo apt-get install python-dev
[https://stackoverflow.com/questions/37297472/cant-find-python-h-file-while-installing-watchman]  

No comments:

Post a Comment