Comments (8)
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.
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.
==> 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.
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.
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/orbrew 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.
I'll post a report when not AFK
from brew.
@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.
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)
- Allow macos 11 to be used HOT 1
- Allow formulae to set an env for their completion generation HOT 4
- Show disk space in info command HOT 3
- Fine-grained PATs do not work when used as $HOMEBREW_GITHUB_API_TOKEN HOT 3
- `brew upgrade -g` sometime will install old version app HOT 3
- `brew upgrade -g` sometime will install old version app
- @PizzaShift @ligi Hello.
- Support GitHub App installation access tokens HOT 2
- Command "brew update" shows "/dev/stdin: No such file or directory - /tmp/sh-thd-2853475760 (deleted) (Errno::ENOENT)" HOT 8
- How should we store installed cask information? HOT 18
- Integrating attestation verification into `brew install` (and `brew verify`) HOT 17
- `brew bump --open-pr` fails to fetch repology data HOT 5
- Add a RuboCop rule for sorting EnvConfig keys
- Make `update <formula>` actually `upgrade formula` HOT 2
- `brew info` should always print whether formula installed HOT 5
- `cask upgrade` will be downloaded and installed repeatedly HOT 10
- `brew log` regression after port to `abstract_command` HOT 1
- option to install package to home directory or a custom directory HOT 1
- Running the macOS installer changes permissions on `~/.gitconfig` HOT 5
- Introduce additional versioning information for casks HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brew.