Skip to content

Instantly share code, notes, and snippets.

@ivan-loh
Last active January 27, 2022 13:02
Show Gist options
  • Save ivan-loh/4fb6728613b6bd5b185cb3e8314f07a4 to your computer and use it in GitHub Desktop.
Save ivan-loh/4fb6728613b6bd5b185cb3e8314f07a4 to your computer and use it in GitHub Desktop.
Watchman ( 4.9.0 ) installation for Ubuntu 16.04
# checkout, compile & install
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 libssl-dev libtool
./autogen.sh
./configure
make
sudo make install
# raise inotify limit
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
@cstrahan
Copy link

cstrahan commented Jul 5, 2019

Note that with more recent versions of gcc, you'll need to do ./configure --enable-lenient so that warnings aren't promoted to errors.

See facebook/watchman#638 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment