Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

watchman builds on Linux require OpenSSL, but isn't clearly stated in the docs #529

Closed
kwlzn opened this issue Sep 9, 2017 · 12 comments
Closed

Comments

@kwlzn
Copy link
Contributor

kwlzn commented Sep 9, 2017

seen on a Ubuntu 14.04.5 LTS build image:

+ make
make: Warning: File `watcher/.deps/watchman-kqueue.Po' has modification time 3.9e+02 s in the future
(CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/bash /vagrant_data/watchman_build.2017-09-08T22:41:55Z/watchman/missing autoheader)
rm -f stamp-h1
touch config.h.in
make  all-am
make[1]: Entering directory `/vagrant_data/watchman_build.2017-09-08T22:41:55Z/watchman'
make[1]: Warning: File `watcher/.deps/watchman-kqueue.Po' has modification time 3.9e+02 s in the future
  CXX      thirdparty/libtap_a-tap.o
  AR       libtap.a
  CC       thirdparty/wildmatch/wildmatch.o
  AR       libwildmatch.a
  CXX      thirdparty/jansson/libwmanjson_a-dump.o
  CXX      thirdparty/jansson/libwmanjson_a-error.o
  CXX      thirdparty/jansson/libwmanjson_a-load.o
  CXX      thirdparty/jansson/libwmanjson_a-memory.o
  CXX      thirdparty/jansson/libwmanjson_a-pack_unpack.o
  CXX      thirdparty/jansson/libwmanjson_a-strbuffer.o
  CXX      thirdparty/jansson/libwmanjson_a-strconv.o
  CXX      thirdparty/jansson/libwmanjson_a-utf.o
  CXX      thirdparty/jansson/libwmanjson_a-value.o
  AR       libwmanjson.a
  CXX      watchman-ChildProcess.o
  CXX      watchman-ContentHash.o
ContentHash.cpp:13:25: fatal error: openssl/sha.h: No such file or directory
 #include <openssl/sha.h>
                         ^
compilation terminated.
make[1]: *** [watchman-ContentHash.o] Error 1
make[1]: Leaving directory `/vagrant_data/watchman_build.2017-09-08T22:41:55Z/watchman'
make: *** [all] Error 2

however the docs at https://facebook.github.io/watchman/docs/install.html#installing-from-source don't mention this dependency.

@czbaker
Copy link

czbaker commented Sep 9, 2017

I've also been having issues installing Watchman from source on my Mint 18.2 (Ubuntu 16.04 based) installation, due to OpenSSL-related issues. Not sure how to fix it. =(

@stephenh
Copy link

Running sudo apt install libssl-dev and then manually changing the Makefile to have LIBS = -lpthread -lssl -lcrypto fixed this issue for me. I don't know enough about autogen/configure/etc. to know the more kosher fix.

@kwlzn
Copy link
Contributor Author

kwlzn commented Sep 18, 2017

more discussion on the build issues (vs the doc issue covered in this issue) over here: #528

@ilhamahp
Copy link

ilhamahp commented Oct 2, 2017

I just followed @stephenh way ,, and yes it works for me. I just running sudo apt install libssl-dev without makefile. Thank you

@philippotto
Copy link

I had the same problem and luckily @stephenh's suggestion helped. However, I got this error instead: util_pcre.c:104: undefined reference to `pcre_free'.

make clean (plus ./autogen.sh && ./configure) fixed that for me, so that make && sudo make install succeeded.

@pixelhandler
Copy link

sudo apt install libssl-dev worked for me running Ubuntu 17.10 artful. Also needed to increase the amount of inotify watchers, see...

@wez
Copy link
Contributor

wez commented Mar 12, 2018

covered in 94e6686

@wez wez closed this as completed Mar 12, 2018
@datlethanh
Copy link

sudo apt-get install libssl-dev worked for me running Ubuntu server 16.04. @stephenh : Thanks so much.

@tcullings
Copy link

On CentOS 7 I had to "sudo yum install openssl-devel" to get past this.

@elamperti
Copy link

In my case I also needed to add python-dev

@Satyam-code143
Copy link

I just followed @stephenh way on Kali Linux and it's working fine now. I just running sudo apt install libssl-dev.
Thank you!!

@Haris-Noori
Copy link

I just followed @stephenh way ,, and yes it works for me. I just running sudo apt install libssl-dev without makefile. Thank you

It worked but got warnings also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests