Skip to content

brew update/upgrade/install floods terminal with garbage on Linux #5644

Answered by carlocab
AdrianGroty asked this question in Linux
Discussion options

You must be logged in to vote

Homebrew is built using Ruby, so it needs a ruby binary to run. Yours seems to be found at /snap/ruby/369/bin/ruby.

I suggest trying:

brew install --quiet rbenv openssl@3
eval "$(rbenv init -)"
export RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl@3)"
rbenv install 3.3.5

Once that's done (it may take a while), the output of ruby --version and which ruby should look something like (sans the arm64-darwin23 part)

❯ ruby --version
ruby 3.3.5 (2024-09-03 revision ef084cc8f4) [arm64-darwin23]

❯ which ruby
/path/to/home/.rbenv/shims/ruby

Once you've done that, paste the output of brew config here and then try brew install again.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@AdrianGroty
Comment options

@carlocab
Comment options

Answer selected by AdrianGroty
@AdrianGroty
Comment options

@carlocab
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Linux
Labels
None yet
2 participants