Skip to content

Instantly share code, notes, and snippets.

@markis
Last active April 4, 2022 08:53
Show Gist options
  • Select an option

  • Save markis/705f101a549f958d62546fb966caae42 to your computer and use it in GitHub Desktop.

Select an option

Save markis/705f101a549f958d62546fb966caae42 to your computer and use it in GitHub Desktop.
sudo apt install -y autoconf automake build-essential python-dev libtool libssl-dev pkg-config
cd /tmp
git clone https://github.com/facebook/watchman.git -b v4.9.0 --depth 1
cd watchman/
./autogen.sh
./configure --enable-lenient
make
sudo make install
@jonnygovish

Copy link
Copy Markdown

How do you test if watchman works?

@Cyci25

Cyci25 commented Aug 5, 2018

Copy link
Copy Markdown

How do I correct this error found after running the sudo apt-get install -y autoconf automake build-essential python-dev libtool libssl-dev command

The following packages have unmet dependencies:
python-dev : Depends: python (= 2.7.11-1) but 2.7.12-116.04 is to be installed
Depends: libpython-dev (= 2.7.11-1) but it is not going to be installed
Depends: python2.7-dev (>= 2.7.11-1
) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

@marktyers

Copy link
Copy Markdown

These steps worked for me on Ubuntu 18.4 (note I had to install the pkg-config package):

sudo apt install -y autoconf automake build-essential python-dev libtool libssl-dev pkg-config
cd /tmp
git clone https://github.com/facebook/watchman.git
cd watchman/
git checkout v4.9.0
./autogen.sh 
./configure 
make
sudo make install

@longtc170593

Copy link
Copy Markdown

thank you

@collinanderson

Copy link
Copy Markdown

ditto on 18.04 pkg-config is also needed

@harsh-98

Copy link
Copy Markdown

@maurojaf

Copy link
Copy Markdown

These steps worked for me on Ubuntu 18.4 (note I had to install the pkg-config package):

sudo apt install -y autoconf automake build-essential python-dev libtool libssl-dev pkg-config
cd /tmp
git clone https://github.com/facebook/watchman.git
cd watchman/
git checkout v4.9.0
./autogen.sh 
./configure 
make
sudo make install

Working! thx!!

@elarb

elarb commented Nov 27, 2019

Copy link
Copy Markdown

./configure --without-python --without-pcre --enable-lenient

did the trick on 19.04

@markis

markis commented Dec 2, 2019

Copy link
Copy Markdown
Author

I updated the script with all the comments mentioned here, ie. pkg-config and --enable-lenient

@Shair17

Shair17 commented May 1, 2020

Copy link
Copy Markdown

Another way more easiest is sudo apt install watchman

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