WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
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

carlocab Oct 2, 2024
Collaborator

Answer selected by AdrianGroty
@AdrianGroty
Comment options

@carlocab
Comment options

carlocab Oct 2, 2024
Collaborator

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