coin-or / Cbc

COIN-OR Branch-and-Cut solver
Other
813 stars 116 forks source link

MUMPS unavailable resulting in failed CBC install #529

Open jaseeverett opened 2 years ago

jaseeverett commented 2 years ago

(I am not sure if I should open this issue here or on the ThirdParty-Mumps repo. Please let me know if I should move this issue)

I am trying to install cbc on macOS 12.5 on an M1 MacBookPro via Homebrew. brew install -vd coin-or-tools/coinor/cbc

Everything is going smoothly until it attempts to install the dependency MUMPS. The website for MUMPS is down (and has been for > 5 days) so the CBC install fails at this point.

/opt/homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/3.5.6\ \(Macintosh\;\ arm64\ Mac\ OS\ X\ 12.5\)\ curl/7.79.1 --header Accept-Language:\ en --retry 3 --location --silent --head --request GET http://mumps.enseeiht.fr/MUMPS_5.4.1.tar.gz
/opt/homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/3.5.6\ \(Macintosh\;\ arm64\ Mac\ OS\ X\ 12.5\)\ curl/7.79.1 --header Accept-Language:\ en --retry 3 -V
==> Downloading http://mumps.enseeiht.fr/MUMPS_5.4.1.tar.gz
/opt/homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/3.5.6\ \(Macintosh\;\ arm64\ Mac\ OS\ X\ 12.5\)\ curl/7.79.1 --header Accept-Language:\ en --retry 3 --location --head http://mumps.enseeiht.fr/MUMPS_5.4.1.tar.gz
/opt/homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/3.5.6\ \(Macintosh\;\ arm64\ Mac\ OS\ X\ 12.5\)\ curl/7.79.1 --header Accept-Language:\ en --fail --retry 3 --location --remote-time --output /Users/eve067/Library/Caches/Homebrew/downloads/b28df93525446c2039423011ee2b1c7de19598c21ebcf19d133f87e381176e72--MUMPS_5.4.1.tar.gz.incomplete http://mumps.enseeiht.fr/MUMPS_5.4.1.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
curl: (56) Recv failure: Connection reset by peer
/opt/homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/3.5.6\ \(Macintosh\;\ arm64\ Mac\ OS\ X\ 12.5\)\ curl/7.79.1 --header Accept-Language:\ en --retry 3 -V
Error: cbc: Failed to download resource "mumps-seq"
Download failed: http://mumps.enseeiht.fr/MUMPS_5.4.1.tar.gz

My understanding from the .coin-or/Dependencies file, is that Mumps should be first installed from coin-or-tools/ThirdParty-Mumps and only fall back to http://mumps.enseeiht.fr if that fails (as per info on the ThirdParty-Mumps GitHub page). But in the verbose output above, it seems that the ThirdParty-Mumps isn't being used.

Am I correct in thinking CBC should install from coin-or-tools/ThirdParty-Mumps? Is there any reason this isn't happening on my computer at this stage? Or do I have to wait for the MUMPS website to come back online before being able to install CBC?

Thanks in advance for any insights you can give.

tkralphs commented 2 years ago

If you install Cbc using coinbrew, then your assumption is correct. We now mirror the MUMPS source because the origin seems to go down frequently. However, when using homebrew, you are installing MUMPS from this recipe, which only tries the original source. You can easily edit the recipe, but the most straightforward solution is probably just to use coinbrew instead.

tkralphs commented 2 years ago

If you want to open an issue at https://github.com/coin-or-tools/homebrew-coinor, we could also consider pointing the homebrew recipe to our mirror.

Mrwkky9 commented 2 years ago

So I have the same issue. Is there a solution to this?

tkralphs commented 2 years ago

Either edit the recipe to download from http://coin-or-tools.github.io/ThirdParty-Mumps/ instead of the original download location or build with coinbrew.