Hello,
I am compiling from source to install on an Ubuntu 18.04 machine and found it a bit cumbersome to get the full list of required packages to build. Some required packages listed are a bit vague (i.e. "You may optionally build watchman without pcre and python support", it appears building fails if python-dev isn't installed)
Ex: this is what got everything to work on Ubuntu 18.04:
sudo apt-get install libtool pkg-config automake openssl-dev python-dev
Why not just include a easy to use command to just install all requirements?
On Kubuntu 18.04
E: Unable to locate package openssl-dev
Tried to install libssl-dev instead.. but got another issue:
watchman-ContentHash.o: In function `watchman::ContentHashCache::computeHashImmediate(watchman::ContentHashCacheKey const&) const':
/watchman/ContentHash.cpp:65: undefined reference to `SHA1_Init'
/watchman/ContentHash.cpp:78: undefined reference to `SHA1_Update'
/watchman/ContentHash.cpp:81: undefined reference to `SHA1_Final'
collect2: error: ld returned 1 exit status
Makefile:1566: recipe for target 'watchman' failed
make[1]: *** [watchman] Error 1
Curious if there isn't like slower but NodeJS watcher with same API like Watchman :X
EDIT:
After I did again ./autogen.sh && ./configure... make worked! as described in https://github.com/facebook/watchman/issues/528
Paraphrasing from above and #528, if you realise you need libssl-dev after you've already run ./autogen.sh and ./configure - you'll need a soft restart, run make clean and start again.
Ideally somebody would set up an Ubuntu PPA so people won't have to build this from scratch on every machine...
For sure @mgedmin, I'd lend a hand if I had a clue how to - what's stopping you?
On Kubuntu 18.04
E: Unable to locate package openssl-devTried to install
libssl-devinstead.. but got another issue:watchman-ContentHash.o: In function `watchman::ContentHashCache::computeHashImmediate(watchman::ContentHashCacheKey const&) const': /watchman/ContentHash.cpp:65: undefined reference to `SHA1_Init' /watchman/ContentHash.cpp:78: undefined reference to `SHA1_Update' /watchman/ContentHash.cpp:81: undefined reference to `SHA1_Final' collect2: error: ld returned 1 exit status Makefile:1566: recipe for target 'watchman' failed make[1]: *** [watchman] Error 1Curious if there isn't like slower but NodeJS watcher with same API like Watchman :X
EDIT:
After I did again
./autogen.sh&&./configure...makeworked! as described in #528
Thank you, it worked for me!
Most helpful comment
On Kubuntu 18.04
E: Unable to locate package openssl-devTried to install
libssl-devinstead.. but got another issue:Curious if there isn't like slower but NodeJS watcher with same API like Watchman :X
EDIT:
After I did again
./autogen.sh&&./configure...makeworked! as described in https://github.com/facebook/watchman/issues/528