Why does brew attempt to download a dependency (and fail) when that dependency is already installed?
I'm trying to install a python bottle from homebrew on a system that does not have Internet access.
brew reinstall --debug --verbose --skip-cask-deps build/deps/python-3.11.catalina.bottle.tar.gz
The above command fails when brew tries (and fails) to access the Internet to download one of the dependencies (mpdecimal
)
==> Fetching dependencies for [email protected]: mpdecimal, ca-certificates, [email protected], readline, sqlite and xz
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FromDefaultNameLoader): loading mpdecimal
==> Fetching mpdecimal
/usr/bin/env /usr/local/Homebrew/Library/Homebrew/shims/shared/curl --disable --config /Users/maltfield/sandbox/buskill-app/build/deps/.curlrc --cookie /dev/null --globoff --show-error --user-agent Homebrew/4.2.11\ \(Macintosh\;\ Intel\ Mac\ OS\ X\ 10.15.7\)\ curl/7.64.1 --header Accept-Language:\ en --fail --location --silent --head https://www.bytereef.org/software/mpdecimal/releases/mpdecimal-4.0.0.tar.gz
==> Downloading https://www.bytereef.org/software/mpdecimal/releases/mpdecimal-4.0.0.tar.gz
/usr/bin/env /usr/local/Homebrew/Library/Homebrew/shims/shared/curl --disable --config /Users/maltfield/sandbox/buskill-app/build/deps/.curlrc --cookie /dev/null --globoff --show-error --user-agent Homebrew/4.2.11\ \(Macintosh\;\ Intel\ Mac\ OS\ X\ 10.15.7\)\ curl/7.64.1 --header Accept-Language:\ en --fail --location --silent --head https://www.bytereef.org/software/mpdecimal/releases/mpdecimal-4.0.0.tar.gz
/usr/bin/env /usr/local/Homebrew/Library/Homebrew/shims/shared/curl --disable --config /Users/maltfield/sandbox/buskill-app/build/deps/.curlrc --cookie /dev/null --globoff --show-error --user-agent Homebrew/4.2.11\ \(Macintosh\;\ Intel\ Mac\ OS\ X\ 10.15.7\)\ curl/7.64.1 --header Accept-Language:\ en --fail --remote-time --output /Users/maltfield/sandbox/buskill-app/build/deps/downloads/72a206df09e9c8bd3f7b24b1dc25e15971fb05aab8c1576b95b73df2ae463ca0--mpdecimal-4.0.0.tar.gz.incomplete --location https://www.bytereef.org/software/mpdecimal/releases/mpdecimal-4.0.0.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
curl: (28) Connection timed out after 1000 milliseconds
Error: Failed to download resource "mpdecimal"
Download failed: https://www.bytereef.org/software/mpdecimal/releases/mpdecimal-4.0.0.tar.gz
However, when I check the system, I see that mpdecimal
is already installed. In fact, all of the dependencies are all already installed!
bash-3.2$ brew list | grep -iE 'mpdecimal|ca-certificates|openssl|readline|sqlite|xz'
ca-certificates
mpdecimal
[email protected]
readline
sqlite
xz
bash-3.2$
Why is brew trying to fetch a dependency that's already installed, and how do I tell it to stop trying to do that (or, at least, proceed with installing the bottle anyway)?