Skip to content

Instantly share code, notes, and snippets.

@grenade
Forked from davidmason/install-watchman.bash
Last active June 17, 2020 10:08
Show Gist options
  • Save grenade/5aa3894695ead8f4f840c0bfa6e2be34 to your computer and use it in GitHub Desktop.
Save grenade/5aa3894695ead8f4f840c0bfa6e2be34 to your computer and use it in GitHub Desktop.
To install watchman on Fedora 28, these are all the hoops I had to jump through.
# The following packages are needed during `make`
# - openssl-devel so you don't get:
# ContentHash.cpp:13:10: fatal error: openssl/sha.h: No such file or directory
# - redhat-rpm-config so you don't get:
# gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
# - python-devel so you don't get:
# pywatchman/bser.c:31:10: fatal error: Python.h: No such file or directory
sudo dnf install openssl-devel redhat-rpm-config python-devel libtool
# The rest is just instructions from
# https://codeyarns.com/2015/02/10/how-to-install-and-use-watchman/
git clone https://github.com/facebook/watchman.git ~/git/facebook/watchman
cd ~/git/facebook/watchman
./autogen.sh
./configure --enable-lenient
make
sudo make install
sudo bash -c 'echo 524288 > /proc/sys/fs/inotify/max_user_watches'
sudo bash -c 'echo 524288 > /proc/sys/fs/inotify/max_queued_events'
sudo bash -c 'echo 524288 > /proc/sys/fs/inotify/max_user_instances'
watchman shutdown-server
Copy link

ghost commented Dec 9, 2019

On Fedora 31:

Error: Unable to find a match: libdouble-conversion-dev libssl-dev libboost-all-dev libevent-dev libgoogle-glog-dev libkrb5-dev libsnappy-dev libsasl2-dev libnuma-dev libcurl4-gnutls-dev libpcap-dev libdb5.3-dev python-dev

@hasbifadilah
Copy link

hasbifadilah commented Jan 14, 2020

@sorinnnn follow this step : https://facebook.github.io/watchman/docs/install.html#buildinstall

and use stable version of watchman
git clone https://github.com/facebook/watchman.git -b v4.9.0 --depth 1

@fpauser
Copy link

fpauser commented Feb 12, 2020

I also stumbled across build errors - ./configure --enable-lenient fixed it for me! (using Fedora 31)

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