Macaulay2 / homebrew-tap

The Macaulay2 tap for Homebrew
7 stars 6 forks source link

error in upgrading: singular gftables would be overwritten #229

Closed mikestillman closed 4 months ago

mikestillman commented 5 months ago

@mahrud, I get the following error when upgrading homebrew (and Macaulay2 tap) on macos 12.7.5 (Monterey, I know, I need to upgrade). I always hit this kind of problem when upgrading. Should I just overwrite the files? (i.e. do the brew unlink factory or pehaps brew link --overwrite singular. What is the best way to handle this? (I want to keep singular installed too).

==> Upgrading singular
  4.4.0 -> 4.4.0p2
==> Pouring singular--4.4.0p2.arm64_monterey.bottle.tar.gz
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /opt/homebrew
Could not symlink include/factory/cf_gmp.h
Target /opt/homebrew/include/factory/cf_gmp.h
is a symlink belonging to factory. You can unlink it:
  brew unlink factory

To force the link and overwrite all conflicting files:
  brew link --overwrite singular

To list all files that would be deleted:
  brew link --overwrite singular --dry-run

Possible conflicting files are:
/opt/homebrew/include/factory/cf_gmp.h -> /opt/homebrew/Cellar/factory/4.3.2p15-151235c5/include/factory/cf_gmp.h
/opt/homebrew/include/factory/factory.h -> /opt/homebrew/Cellar/factory/4.3.2p15-151235c5/include/factory/factory.h
/opt/homebrew/include/factory/factoryconf.h -> /opt/homebrew/Cellar/factory/4.3.2p15-151235c5/include/factory/factoryconf.h
/opt/homebrew/include/factory/globaldefs.h -> /opt/homebrew/Cellar/factory/4.3.2p15-151235c5/include/factory/globaldefs.h
/opt/homebrew/include/factory/si_log2.h -> /opt/homebrew/Cellar/factory/4.3.2p15-151235c5/include/factory/si_log2.h
/opt/homebrew/include/factory/templates/ftmpl_afactor.h -> /opt/homebrew/Cellar/factory/4.3.2p15-151235c5/include/factory/templates/ftmpl_afactor.h
/opt/homebrew/include/factory/templates/ftmpl_array.h -> /opt/homebrew/Cellar/factory/4.3.2p15-151235c5/include/factory/templates/ftmpl_array.h
/opt/homebrew/include/factory/templates/ftmpl_factor.h -> /opt/homebrew/Cellar/factory/4.3.2p15-151235c5/include/factory/templates/ftmpl_factor.h
/opt/homebrew/include/factory/templates/ftmpl_list.h -> /opt/homebrew/Cellar/factory/4.3.2p15-151235c5/include/factory/templates/ftmpl_list.h
/opt/homebrew/include/factory/templates/ftmpl_matrix.h -> /opt/homebrew/Cellar/factory/4.3.2p15-151235c5/include/factory/templates/ftmpl_matrix.h
Error: Could not symlink share/factory/gftables/10201
Target /opt/homebrew/share/factory/gftables/10201
is a symlink belonging to factory. You can unlink it:
  brew unlink factory

To force the link and overwrite all conflicting files:
  brew link --overwrite factory

To list all files that would be deleted:
  brew link --overwrite factory --dry-run
mahrud commented 5 months ago

They're the same files, so it doesn't matter. You can ignore the error I think.