-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
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
@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
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
On Fedora 30:
You also need
make
,gcc
, andg++
, althought that is more common to have.