Closed JSimoni42 closed 2 years ago
This is really weird. I cannot reproduce it on my Mac.
Is it possible that your brew install is too old?
Running it on clean Mac with fresh brew
but without libusb
or uhubctl
installed:
$ sw_vers
ProductName: macOS
ProductVersion: 12.6
BuildVersion: 21G115
$ brew tap mvp/uhubctl https://github.com/mvp/uhubctl
$ brew install uhubctl
==> Downloading https://ghcr.io/v2/homebrew/core/libusb/manifests/1.0.26
Already downloaded: ${HOME}/Library/Caches/Homebrew/downloads/ce7ffd7c94deb7060c2cac56f1d68a97b9d4bdc039f9548c3df327bee3d20ae4--libusb-1.0.26.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/libusb/blobs/sha256:e79be7d4c611f0017567172771761b1df62d140e79ffa6d2538577eb24a48e44
Already downloaded: ${HOME}/Library/Caches/Homebrew/downloads/7a7654072d8f5bf5cbe65bdb5dba42ddc19077d0bcecb14017a709ff35a68541--libusb--1.0.26.monterey.bottle.tar.gz
==> Downloading https://github.com/mvp/uhubctl/archive/v2.4.0.tar.gz
Already downloaded: ${HOME}/Library/Caches/Homebrew/downloads/37a1195afcf996cce0e7f0b7ebe543669f539f201f40bbc76432527131b610db--uhubctl-2.4.0.tar.gz
==> Installing uhubctl from mvp/uhubctl
==> Installing dependencies for mvp/uhubctl/uhubctl: libusb
==> Installing mvp/uhubctl/uhubctl dependency: libusb
==> Pouring libusb--1.0.26.monterey.bottle.tar.gz
🍺 /usr/local/Cellar/libusb/1.0.26: 22 files, 531.7KB
==> Installing mvp/uhubctl/uhubctl
==> make
🍺 /usr/local/Cellar/uhubctl/2.4.0: 6 files, 93.8KB, built in 4 seconds
==> Running `brew cleanup uhubctl`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
$ uhubctl -v
2.4.0
I don't think so, brew --version
looks pretty new. I wonder if it was an issue with my libusb
installation though. I'm still not seeing anything obvious. Regardless, verifying that this doesn't reproduce on a system without libusb
or uhubctl
installed makes it seem like this isn't a widely applicable issue. I'll close it out as such.
~
❯ sw_vers
ProductName: macOS
ProductVersion: 12.6
BuildVersion: 21G115
~
❯ brew --version
Homebrew 3.6.4
Homebrew/homebrew-core (git revision 462700d880f; last commit 2022-10-06)
Homebrew/homebrew-cask (git revision 7147fb5098; last commit 2022-10-06)
I encountered an issue while running
brew install
on OSX:I noticed this
-I
flag value:/usr/local/Cellar/libusb/1.0.26/include/libusb-1.0
. When I entered that directory, it contained the header file from the error message,libusb.h
.I was able to get
brew install
to pass by creating another directory inlibusb-1.0
calledlibusb-1.0
and copyinglibusb.h
to that directory.I'm unfamiliar with this project's build system but this seemed to indicate to me that there is an issue with the logic that constructs that
-I
flag on some systems. I figured that you might want to be aware of this & provide a log for anyone else with a similar issue. Happy to provide any additional information about my system.