GithubHelp home page GithubHelp logo

Comments (8)

cho-m avatar cho-m commented on May 23, 2024 1

Probably need a specific example in order to provide context. Like what exact command you were running when it errored and at least some command output before the error.

Without any extra info, I am guessing this is related to linking dependencies since I think --overwrite should work but only for input formula. If so, as far as I can tell, we don't support this. A hack would be passing in everything in dependency tree $(brew deps ...), but that will result in a marking all formulae as installed_on_request and making it difficult to clean up no longer used formulae.

from brew.

MikeMcQuaid avatar MikeMcQuaid commented on May 23, 2024 1

As said: install --overwrite still asks when dependency link conflicts are happening.That usually happens with long running compiles. In the end it often takes me literally days to install one piece of software because every other dependency throws such a link overwrite conflict...

Can you be more specific here?

from brew.

cho-m avatar cho-m commented on May 23, 2024 1
==> Installing curl dependency: brotli
...
Possible conflicting files are:
/usr/local/bin/brotli -> /usr/local/Cellar/brotli/1.0.9/bin/brotli

This is confusing. Very strange that brotli can't handle brotli's own files.

May need to understand your setup better with brew config/brew doctor output.

from brew.

carlocab avatar carlocab commented on May 23, 2024

I'm sorry for posting this as an issue here, I would have rather opened a discussion about it, if that where available here.

We do have a discussions page for these sorts of questions.

Does brew install --overwrite and/or brew upgrade --overwrite not do what you need it to?

from brew.

JOJ0 avatar JOJ0 commented on May 23, 2024

I'm sorry for posting this as an issue here, I would have rather opened a discussion about it, if that where available here.

We do have a discussions page for these sorts of questions.

Does brew install --overwrite and/or brew upgrade --overwrite not do what you need it to?

I'm very sorry I missed that discussions is open in this repo.

As said: install --overwrite still asks when dependency link conflicts are happening.That usually happens with long running compiles. In the end it often takes me literally days to install one piece of software because every other dependency throws such a link overwrite conflict...

from brew.

JOJ0 avatar JOJ0 commented on May 23, 2024

I'll post a report when not AFK

from brew.

JOJ0 avatar JOJ0 commented on May 23, 2024

@MikeMcQuaid for example, I recently tried to install brew install nvim which is a very long running process on my machine, it downloads, compiles and does whatever brew requires to do to get this software, as well as all required dependencies installed.

Very often, if not all the time, I use brew to install anything, I get a similar experience: brew stops and asks me to solve "symlink overwrite conflicts" by hand.

I can't repro this specific install anymore, because after 2-3 reruns I'm finally through with manual linking solving.

With brew upgrade --overwrite I actually get the very same behaviour. It is a very long running process and after minutes or even hours, it stops because it is afraid to overwrite a symlink of a dependent software package:

$ brew upgrade --overwrite
...
...
...
==> Downloading https://curl.se/download/curl-8.6.0.tar.bz2
######################################################################################################################################################################################################################## 100.0%
==> Installing opus dependency: curl
==> Installing dependencies for curl: brotli, libunistring, libidn2, libnghttp2, ca-certificates, openssl@3, libssh2, openldap, rtmpdump and xz
==> Installing curl dependency: brotli
==> Downloading https://formulae.brew.sh/api/formula.jws.json
######################################################################################################################################################################################################################## 100.0%
==> cmake .
==> make VERBOSE=1
==> ctest -V
==> make install
==> Downloading https://formulae.brew.sh/api/cask.jws.json
######################################################################################################################################################################################################################## 100.0%
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/brotli
Target /usr/local/bin/brotli
is a symlink belonging to brotli. You can unlink it:
  brew unlink brotli

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

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

Possible conflicting files are:
/usr/local/bin/brotli -> /usr/local/Cellar/brotli/1.0.9/bin/brotli
Error: Could not symlink include/brotli/decode.h
Target /usr/local/include/brotli/decode.h
is a symlink belonging to brotli. You can unlink it:
  brew unlink brotli

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

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

Does that clarify what I'm asking?

from brew.

MikeMcQuaid avatar MikeMcQuaid commented on May 23, 2024

Does that clarify what I'm asking?

Yes, thanks. It is indeed unexpected/a bug that brew upgrade --overwrite will not overwrite in this case. Reopening.

from brew.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.