facebook / watchman

Watches files and records, or triggers actions, when they change.
https://facebook.github.io/watchman/
MIT License
12.77k stars 992 forks source link

Ubuntu .deb file not present in the latest release #1175

Open bilalqv opened 12 months ago

bilalqv commented 12 months ago

I try to install watchman on my Ubuntu 22.04 OS. I followed the steps given here.

image

But, the .deb file is not present in the given release.

What steps should I follow for the installation?

georgedayiv commented 11 months ago

Hopefully you sorted this out already. I ran into the same issue. My solution was to look at previous releases until I discovered that rpms and debs were attached. v2023.10.09.00 had a deb attached which I was able to get installed once I sorted out the dependancies it wanted.

bilalqv commented 11 months ago

Yeah, I did the same thing. Thanks.

schrodingersca8 commented 10 months ago

Hopefully you sorted this out already. I ran into the same issue. My solution was to look at previous releases until I discovered that rpms and debs were attached. v2023.10.09.00 had a deb attached which I was able to get installed once I sorted out the dependancies it wanted.

Hi, I am trying to sort out the dependencies but can't find the installation candidate, e.g. for libgoogle-glog0v5. Can you help me out? Thanks

peterkyle01 commented 8 months ago

If on Ubuntu first sudo apt install watchman which will come will all those dependencies that are required and no longer maintained.Then from this version,download the .deb and finally sudo dpgk -i watchman_ubuntu22.04_v2023.10.09.00.deb.This worked for me after going through all the processes of even building from source.Note that now you have the 2023 version .

shaw91 commented 8 months ago

@peterkyle01 It doesn't work for me. Getting this error. Oh I see you are using ubuntu 22.04 not a different version

sudo dpkg -i watchman_ubuntu22.04_v2023.10.09.00.deb
(Reading database ... 21330 files and directories currently installed.)
Preparing to unpack watchman_ubuntu22.04_v2023.10.09.00.deb ...
Unpacking watchman (20231008.002904.0) over (4.9.0-7build1) ...
dpkg: dependency problems prevent configuration of watchman:
 watchman depends on libgoogle-glog0v5; however:
  Package libgoogle-glog0v5 is not installed.
 watchman depends on libboost-context1.74.0; however:
  Package libboost-context1.74.0 is not installed.
 watchman depends on libdouble-conversion3; however:
  Package libdouble-conversion3 is not installed.
 watchman depends on libevent-2.1-7; however:
  Package libevent-2.1-7 is not installed.
 watchman depends on libsnappy1v5; however:
  Package libsnappy1v5 is not installed.

dpkg: error processing package watchman (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 watchman
uiolee commented 7 months ago

Yes, such documents are misleading.

aromot commented 6 months ago

The v2023.10.09.00 release contains a .deb package named "watchman_ubuntu22.04_v2023.10.09.00.deb". Can I use it to upgrade my watchman installed on my Ubuntu 20?

elgeokareem commented 6 months ago

could install it with no problems thanks to this thread but why aren't there deb files with new releases?

peterkyle01 commented 5 months ago

I saw that people are still having the issue and my solution did not work anymore so I found another solution.On linux,you can download the zip file from here.Then you can follow these steps :

$ unzip watchman-*-linux.zip $ cd watchman-vYYYY.MM.DD.00-linux $ sudo mkdir -p /usr/local/{bin,lib} /usr/local/var/run/watchman $ sudo cp bin/* /usr/local/bin $ sudo cp lib/* /usr/local/lib $ sudo chmod 755 /usr/local/bin/watchman $ sudo chmod 2777 /usr/local/var/run/watchman

On running watchman --version this will generate some error watchman: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory which can be fixed by running:

$ wget http://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.22_amd64.deb $ sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2.22_amd64.deb

Now you can run watchman --version and watchman version installed.

Damika-Anupama commented 5 months ago

If on Ubuntu first sudo apt install watchman which will come will all those dependencies that are required and no longer maintained.Then from this version,download the .deb and finally sudo dpgk -i watchman_ubuntu22.04_v2023.10.09.00.deb.This worked for me after going through all the processes of even building from source.Note that now you have the 2023 version .

Official doc discourages installation from repository: "Warning: Do not install the Ubuntu-supplied Watchman package. It is old and missing security, bug, and performance fixes."

faroukfaiz10 commented 4 months ago

On linux,you can download the zip file from here

That works until v2024.04.15.00. Newer release (e.g. v2024.07.15.00) have neither .deb nor -linux.zip assets.

Notes

rijan08 commented 3 months ago

Hey im trying to install watchman in my ubuntu 24.04. Couldn't see the .deb file for this. Can someone help me with this. How to install watchman ?

umardev500 commented 2 months ago

@peterkyle01 It doesn't work for me. Getting this error. Oh I see you are using ubuntu 22.04 not a different version

sudo dpkg -i watchman_ubuntu22.04_v2023.10.09.00.deb
(Reading database ... 21330 files and directories currently installed.)
Preparing to unpack watchman_ubuntu22.04_v2023.10.09.00.deb ...
Unpacking watchman (20231008.002904.0) over (4.9.0-7build1) ...
dpkg: dependency problems prevent configuration of watchman:
 watchman depends on libgoogle-glog0v5; however:
  Package libgoogle-glog0v5 is not installed.
 watchman depends on libboost-context1.74.0; however:
  Package libboost-context1.74.0 is not installed.
 watchman depends on libdouble-conversion3; however:
  Package libdouble-conversion3 is not installed.
 watchman depends on libevent-2.1-7; however:
  Package libevent-2.1-7 is not installed.
 watchman depends on libsnappy1v5; however:
  Package libsnappy1v5 is not installed.

dpkg: error processing package watchman (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 watchman

try fix it with sudo apt -f install

umardev500 commented 2 months ago

Hey im trying to install watchman in my ubuntu 24.04. Couldn't see the .deb file for this. Can someone help me with this. How to install watchman ?

fuck wathcman

satosoft commented 1 month ago

i'm using ubuntu 22.04 and 'sudo apt install watchman' work fine. It install watchman in just 2 minutes. Build from source take alots of time and finally show error.

aarontanjaya commented 1 month ago

i'm using ubuntu 22.04 and 'sudo apt install watchman' work fine. It install watchman in just 2 minutes. Build from source take alots of time and finally show error.

the docs specifically warned against using it tho image