Here I put the final solution. I tried many methods on my mac M1, the best method is re-install homebrew.
Step1:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh)"
Step2: Install homebrew
cd /opt
mkdir homebrew # if not exist, just create one.
curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C homebrew
Then, the problem solved.
Answer from Frank on Stack Overflowzsh: killed - Apple Community
zsh: killed
macos - ZSH Killed my executable file in mac m1 while running the iOS project using script - Ask Different
Mac os server - zsh killed ./ManagerServer
Videos
Here I put the final solution. I tried many methods on my mac M1, the best method is re-install homebrew.
Step1:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh)"
Step2: Install homebrew
cd /opt
mkdir homebrew # if not exist, just create one.
curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C homebrew
Then, the problem solved.
I used the below commands:
brew uninstall git
brew update
brew reinstall pcre2 gettext
brew install git
Git worked after.
I have downloaded a game and and everytime i open, it says “The application cant be opened”. And when i try to run the executable file of the app i got this.
While Trying to run the app from terminal, i get zsh permission denied.
Thanks in advance.
When I type brew, I get the output:
zsh: killed brew
Writing out the whole path still gives the same output, so it doesn't seem like a path problem.
Furthermore, running /bin/bash gives the output:
zsh: killed /bin/bash
I changed the names of .zshrc and .zprofile, yet the problem still persisted.
To add on, this problem also occurs with programs like pyenv.
I resolved the issue by opening Activity Monitor, finding the 'adb' process and force quitting it through the Activity Monitor GUI. Not sure what was wrong but this solved my problem.
I'm using M1 Pro and I've the same problem. I resolved this issue do the same action up, opening Activity Monitor, force quitting for adb process and excute again by terminal.
Assuming you used the brew reinstall git command instead of brew install git, and assuming you still have Command Line Tools installed, then I would first install gettext and pcre2 as git needs them.
So, first do...
brew reinstall gettext
...followed by:
brew reinstall pcre2
and then by...
brew reinstall git
If that doesn't work you could try all the commands again but with install instead of reinstall.
And if that doesn't work, what's the result of brew config?
I have an M1 so I had to install xcode-select first because reinstalling gettext or pcre2 was not running either.
Do it in this order:
xcode-select --install
brew reinstall gettext
brew reinstall pcre2
brew reinstall git
Good Luck!
Hi, I'm pretty new to homebrew and the whole command line thing on the Mac, so please be kind ;) Every time I try to use YouTube-DL this happens:
youtube-dl --verbose "https://www.youtube.com/watch?v=lKeUCkBO8QA" zsh: killed youtube-dl --verbose "https://www.youtube.com/watch?v=lKeUCkBO8QA"
I spend hours googling for help, but I couldn't find anything. Can someone please explain to me what's going on there and wtf is killing that process?
Btw I got Vidl installed also.