-
-
Save davidmason/5b9c43202ad4c4ff562badbf2a25ae68 to your computer and use it in GitHub Desktop.
# 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 | |
# 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 | |
cd watchman | |
./autogen.sh | |
./configure | |
make | |
sudo make install |
My initial assessment of -qversion GCC version incomatibility was wrong.
It seems like there are bunch of other libraries (especially, see the last 3 entries) that were missing from Fedora 27
dnf groupinstall "Development Tools" "Development Libraries"
dnf install libtool
dnf install openssl-devel redhat-rpm-config python-devel
dnf install glibc-static
dnf install glibc-headers
dnf install glibc-devel.x86_64
and then do
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
otherwise, if you use say ReactNative,
the npm start
will hang without an explanation
I'm having trouble on Fedora 28
dnf groupinstall "Development Tools" "Development Libraries"
that will install hundreds of packages. Does anyone know more specifically which ones are required? it would be nice to not install everything in those groups.
well I installed those two groups and I'm still getting the same error.
I'm taking my issue here: facebook/watchman#607
libssl-dev solution working and i also installed libcrypto++-dev package.After that, i did ./autogen.sh , ./configure and make again.
For apt (Ubuntu, Debian…):
sudo apt-get install python-dev # for python2.x installs
sudo apt-get install python3-dev # for python3.x installs
For yum (CentOS, RHEL…):
sudo yum install python-devel # for python2.x installs
sudo yum install python34-devel # for python3.4 installs
For dnf (Fedora…):
sudo dnf install python2-devel # for python2.x installs
sudo dnf install python3-devel # for python3.x installs
For zypper (openSUSE…):
sudo zypper in python-devel # for python2.x installs
sudo zypper in python3-devel # for python3.x installs
Repeat this following action
$ ./configure
$ make
$ sudo make install
for centos:
yum groupinstall "Development Tools"
yum install libtool
yum install openssl-devel redhat-rpm-config python-devel
FYI, the above steps do not work for Fedora 27
I do not have a solution for this, unfortunately.
Problem seems to be in how a compiler is being detected.