GithubHelp home page GithubHelp logo

Comments (11)

bevanjkay avatar bevanjkay commented on June 26, 2024

Please fill out the issue template correctly instead of pasting the same thing in each input.

from brew.

msherafatian avatar msherafatian commented on June 26, 2024

I do get the same output from that.

from brew.

bevanjkay avatar bevanjkay commented on June 26, 2024

You need to include the output of brew config and brew doctor as asked in the issue template above or the issue will be closed.

from brew.

msherafatian avatar msherafatian commented on June 26, 2024

Screenshot 2024-06-12 at 10 56 33 AM
This is the output that these commands will generate.

from brew.

bevanjkay avatar bevanjkay commented on June 26, 2024

What MacOS version are you running? It looks like it may be unsupported by Homebrew.

@Bo98 Should we be forcing a fallback to system ruby in these cases so that brew doctor and brew config work even with a broken install? Not sure what's expected here.

from brew.

Bo98 avatar Bo98 commented on June 26, 2024

99% of the time I've seen Killed: 9 before it's been third-party security software flagging portable Ruby (potentially from it being unsigned).

See #17422 in case this applies to you.

Should we be forcing a fallback to system ruby

System Ruby on macOS is too old.

from brew.

msherafatian avatar msherafatian commented on June 26, 2024

I am on Mac OS Sonoma 14.5. I have looked at this and it is correct that this file is being flagged as "com.apple.quarantine" but I still get the same error when I clear this flag. brew ==> Downloading https://ghcr.io/v2/homebrew/portable-ruby/portable-ruby/blobs/sha256:5c86a23e0e3caee1a4cfd958ed7d50a38e752ebaf2e7c5717e5c8eabaa6e9f12 Already downloaded: /Users/username/Library/Caches/Homebrew/portable-ruby-3.3.2.el_capitan.bottle.tar.gz ==> Pouring portable-ruby-3.3.2.el_capitan.bottle.tar.gz /usr/local/Homebrew/Library/Homebrew/cmd/vendor-install.sh: line 230: 12270 Killed: 9 "./${VENDOR_VERSION}/bin/${VENDOR_NAME}" --version > /dev/null

from brew.

Bo98 avatar Bo98 commented on June 26, 2024

Your security software is probably also flagging the contents after its been extracted too.

from brew.

mchakra8 avatar mchakra8 commented on June 26, 2024

Screenshot 2024-06-12 at 10 56 33 AM This is the output that these commands will generate.

Although this issue has been marked as closed, I wanted to report that I experience the exact same error as msherafatian above for portable-ruby-3.3.3.el_capitan.bottle.tar.gz, running the latest Homebrew 4.3.6-26-g907f54a. Clearing xattr permissions on the tar.gz file does not fix the problem, nor does manually downloading the file and extracting it with recursive xattr permissions.

Already downloaded: /Users/[username]/Library/Caches/Homebrew/portable-ruby-3.3.3.el_capitan.bottle.tar.gz
==> Pouring portable-ruby-3.3.3.el_capitan.bottle.tar.gz
/usr/local/Homebrew/Library/Homebrew/cmd/vendor-install.sh: line 231: 59690 Killed: 9               "./${VENDOR_VERSION}/bin/${VENDOR_NAME}" --version > /dev/null
Error: Failed to install ruby 3.3.3!
Error: Failed to upgrade Homebrew Portable Ruby!

from brew.

gromgit avatar gromgit commented on June 26, 2024

Are you running any security/management software on your system (anti-virus, internet security suite, etc.)? If that software, as it seem:

  • is running,
  • doesn't like what it sees Homebrew doing, and
  • kills Homebrew with extreme prejudice

there's nothing that can be done about it except disabling that software while running brew.

from brew.

mchakra8 avatar mchakra8 commented on June 26, 2024

Interestingly, Portable Ruby 3.3.2 works without issue on my system. The problem seems to be only with the latest Portable Ruby 3.3.3. My workaround was thus to switch to Homebrew 4.3.4, which does not have a specific dependency on Portable Ruby 3.3.3. This restored basic brew functionality (e.g. brew config and brew doctor), which allowed me to regain the ability to manage and install packages on my system. Hopefully useful information to others that may encounter this issue.

Current brew configuration:

HOMEBREW_VERSION: 4.3.4
ORIGIN: https://github.com/Homebrew/brew
HEAD: f8b1d1f56cb19212b89e385e000ca3921912abeb
Last commit: 11 days ago
Core tap JSON: 18 Jun 22:20 UTC
Core cask tap JSON: 18 Jun 22:37 UTC
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.uMoNTkYd5y/org.xquartz:0
HOMEBREW_MAKE_JOBS: 16
Homebrew Ruby: 3.3.2 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/3.3.2/bin/ruby
CPU: 16-core 64-bit kabylake
Clang: 15.0.0 build 1500
Git: 2.45.2 => /usr/local/bin/git
Curl: 8.6.0 => /usr/bin/curl
macOS: 14.5-x86_64
CLT: 15.3.0.0.1.1708646388
Xcode: 15.4

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.