facebook / watchman

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

Homebrew install watchman failed #1132

Open xiunen opened 1 year ago

xiunen commented 1 year ago
➜  ~ brew install watchman                   
==> Fetching watchman
Warning: Building watchman from source:
  The bottle (and many others) needs to be installed into /opt/homebrew.

==> Downloading https://github.com/facebook/watchman/archive/v2023.04.10.00.tar.gz
Already downloaded: /Users/xiunengchen/Library/Caches/Homebrew/downloads/7a2df8de39ba435f416bc6dabca07376139650ca02d994535e096ddfc7c29f47--watchman-2023.04.10.00.tar.gz
==> cmake -S . -B build -DENABLE_EDEN_SUPPORT=ON -DWATCHMAN_VERSION_OVERRIDE=2023.04.10.00 -DWATCHMAN_BUILDINFO_OVERRIDE=Homebrew -DWATCHMAN_STATE_DIR=/usr/local/var/run/watchman
==> cmake --build build
Last 15 lines from /Users/xiunengchen/Library/Logs/Homebrew/watchman/02.cmake:

warning: variable does not need to be mutable
  --> src/rage/stream.rs:30:21
   |
30 |         pub fn wait(mut self) {
   |                     ----^^^^
   |                     |
   |                     help: remove this `mut`
   |
   = note: `#[warn(unused_mut)]` on by default

warning: `watchmanctl` (bin "watchmanctl") generated 3 warnings (run `cargo fix --bin "watchmanctl"` to apply 3 suggestions)
    Finished release [optimized] target(s) in 33.21s
[ 10%] Built target watchmanctl.cargo
make: *** [all] Error 2

READ THIS: https://docs.brew.sh/Troubleshooting
aglemann commented 1 year ago

same, mac OS 13.3.1 (a) on Xcode 14.3

devtestingstuff commented 1 year ago

same here. any fixes for this?

2000prcs commented 1 year ago

I'm getting this error when I try to install watchman via Homebrew:

CMake Error in CMakeLists.txt:
  Imported target "FBThrift::thriftcpp2" includes non-existent path

    "/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.

Error: watchman 2023.05.22.00 did not build
Logs:
     /Users/44982/Library/Logs/Homebrew/watchman/00.options.out
     /Users/44982/Library/Logs/Homebrew/watchman/01.cmake.cc
     /Users/44982/Library/Logs/Homebrew/watchman/01.cmake
     /Users/44982/Library/Logs/Homebrew/watchman/build
READ THIS: https://docs.brew.sh/Troubleshooting

Mac OS: 13.4 (22F66)

2000prcs commented 1 year ago

I'm getting this error when I try to install watchman via Homebrew:

CMake Error in CMakeLists.txt:
  Imported target "FBThrift::thriftcpp2" includes non-existent path

    "/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.

Error: watchman 2023.05.22.00 did not build
Logs:
     /Users/44982/Library/Logs/Homebrew/watchman/00.options.out
     /Users/44982/Library/Logs/Homebrew/watchman/01.cmake.cc
     /Users/44982/Library/Logs/Homebrew/watchman/01.cmake
     /Users/44982/Library/Logs/Homebrew/watchman/build
READ THIS: https://docs.brew.sh/Troubleshooting

Mac OS: 13.4 (22F66)

I was able to install watchman via Homebrew after I re-installing Homebrew with a new path /opt/homebrew/bin/brew.

kenmalley commented 5 months ago

I'm getting this error when I try to install watchman via Homebrew:

CMake Error in CMakeLists.txt:
  Imported target "FBThrift::thriftcpp2" includes non-existent path

    "/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.

Error: watchman 2023.05.22.00 did not build
Logs:
     /Users/44982/Library/Logs/Homebrew/watchman/00.options.out
     /Users/44982/Library/Logs/Homebrew/watchman/01.cmake.cc
     /Users/44982/Library/Logs/Homebrew/watchman/01.cmake
     /Users/44982/Library/Logs/Homebrew/watchman/build
READ THIS: https://docs.brew.sh/Troubleshooting

Mac OS: 13.4 (22F66)

I was able to install watchman via Homebrew after I re-installing Homebrew with a new path /opt/homebrew/bin/brew.

This worked for me as well because I migrated from Intel to Apple Silicon, so was using the old usr/local path when it was looking for opt/homebrew.

jexe commented 1 week ago
➜  ~ brew install watchman                   
==> Fetching watchman
Warning: Building watchman from source:
  The bottle (and many others) needs to be installed into /opt/homebrew.

==> Downloading https://github.com/facebook/watchman/archive/v2023.04.10.00.tar.gz
Already downloaded: /Users/xiunengchen/Library/Caches/Homebrew/downloads/7a2df8de39ba435f416bc6dabca07376139650ca02d994535e096ddfc7c29f47--watchman-2023.04.10.00.tar.gz
==> cmake -S . -B build -DENABLE_EDEN_SUPPORT=ON -DWATCHMAN_VERSION_OVERRIDE=2023.04.10.00 -DWATCHMAN_BUILDINFO_OVERRIDE=Homebrew -DWATCHMAN_STATE_DIR=/usr/local/var/run/watchman
==> cmake --build build
Last 15 lines from /Users/xiunengchen/Library/Logs/Homebrew/watchman/02.cmake:

warning: variable does not need to be mutable
  --> src/rage/stream.rs:30:21
   |
30 |         pub fn wait(mut self) {
   |                     ----^^^^
   |                     |
   |                     help: remove this `mut`
   |
   = note: `#[warn(unused_mut)]` on by default

warning: `watchmanctl` (bin "watchmanctl") generated 3 warnings (run `cargo fix --bin "watchmanctl"` to apply 3 suggestions)
    Finished release [optimized] target(s) in 33.21s
[ 10%] Built target watchmanctl.cargo
make: *** [all] Error 2

READ THIS: https://docs.brew.sh/Troubleshooting

Did anyone figure this original issue out? Experiencing it here on my Mac m1