Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[build_support/packages.sh] Ruby Homebrew installer disabled on macOS 12 Monterey #450

Open
ancientmodern opened this issue Oct 29, 2022 · 1 comment

Comments

@ancientmodern
Copy link

Environment

A new MacBook Pro (m1pro) with macOS 12.5 Monterey and homebrew is not installed before.

Log

ancientmodern@MacBook-Pro$ build_support/packages.sh
PACKAGES WILL BE INSTALLED. THIS MAY BREAK YOUR EXISTING TOOLCHAIN.
YOU ACCEPT ALL RESPONSIBILITY BY PROCEEDING.
Proceed? [Y/n] : Y
++ uname
++ tr '[:lower:]' '[:upper:]'
+ UNAME=DARWIN
+ case $UNAME in
+ install_mac
++ which brew
+ test '!'
+ echo 'Installing Homebrew (https://brew.sh/)'
Installing Homebrew (https://brew.sh/)
++ curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install
+ ruby -e '#!/usr/bin/ruby

abort <<EOS
Error: The Ruby Homebrew installer is now disabled and has been rewritten in
Bash. Please migrate to the following command:
  /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

EOS'
Error: The Ruby Homebrew installer is now disabled and has been rewritten in
Bash. Please migrate to the following command:
  /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Then I manually ran /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" and build_support/packages.sh, and everything went well. Seems that the ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"should be replaced by /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

@ancientmodern
Copy link
Author

I open PR #451 for this, but I do not know if personal PR is accepted :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant