I've tried downloading brew with this link:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
However I'm getting the following error message:
==> Downloading and installing Homebrew...
HEAD is now at 771c961c5 Merge pull request #9001 from tie624/fix_url_missing_param
==> Tapping homebrew/core
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'...
remote: Enumerating objects: 20, done.
remote: Counting objects: 100% (20/20), done.
remote: Compressing objects: 100% (14/14), done.
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
Error: Failure while executing; `git clone https://github.com/Homebrew/homebrew-core /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core` exited with 128.
Error: Failure while executing; `/usr/local/bin/brew tap homebrew/core` exited with 1.
Failed during: /usr/local/bin/brew update --force
Can you try to install it following the instructions on their website ? https://brew.sh/
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
best,
Related
I am trying to install homebrew on MacOS BigSur, using the command foudn on the homebrew web page:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
But when I do I get this error message, which I suspect has something to so with performing an unshallow clone of the repo. I don't really know how to get past it though.
==> Downloading and installing Homebrew...
fatal: unable to access 'https://github.com/Homebrew/brew/': Login denied
Failed during: git fetch --force origin
I moved from Windows to macOS a few days ago. I want to install homebrew. I used the following command
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)
but I am getting an error of permission denied.
==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew
Press RETURN to continue or any other key to abort
==> Downloading and installing Homebrew...
/usr/local/Homebrew/.git/branches/: Permission denied
Failed during: git init -q
==> Installation successful!
==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
https://docs.brew.sh/Analytics
No analytics data has been sent yet (or will be during this `install` run).
==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
https://github.com/Homebrew/brew#donations
error: could not lock config file .git/config: Permission denied
Failed during: git config --replace-all homebrew.analyticsmessage true
==> Next steps:
- Run `brew help` to get started
- Further documentation:
https://docs.brew.sh
I checked many other Stackoverflow answers and followed articles online but I am not getting any solution.
comptag:~ username$ brew install curl
-bash: /usr/local/bin/brew: No such file or directory
Please suggest me some solutions.
Use the official command given on the Homebrew website:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
I'm new to all the dev world and I'm facing problems to install Homebrew in a recently formatted Mac.
macOS Catalina 10.15.4
Xcode cli installed and updated
when running the code from brew.sh (/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)")
I'm getting the following error:
Press RETURN to continue or any other key to abort
==> Downloading and installing Homebrew...
HEAD is now at 3247f26a3 Merge pull request #7479 from sjackman/requirements.
==> Tapping homebrew/core.
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'...
remote: Enumerating objects: 116, done.
remote: Counting objects: 100% (116/116), done.
remote: Compressing objects: 100% (82/82), done.
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: the remote end hung up unexpectedly
fatal: early EOF.
fatal: index-pack failed
Error: Failure while executing; git clone https://github.com/Homebrew/homebrew-core /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core exited with 128.
Error: Failure while executing; /usr/local/bin/brew tap homebrew/core exited with 1.
Failed during: /usr/local/bin/brew update --force
==> Installation successful!
When I run brew doctor this is the result:
~ % brew doctor
==> Tapping homebrew/core
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'...
remote: Enumerating objects: 116, done.
remote: Counting objects: 100% (116/116), done.
remote: Compressing objects: 100% (82/82), done.
error: RPC failed; curl 18 transfer closed with outstanding read data remaining.
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
Error: Failure while executing; git clone https://github.com/Homebrew/homebrew-core /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core exited with 128.
Error: Failure while executing; /usr/local/bin/brew tap homebrew/core exited with 1.
After all that I can't install cask and I'm getting the same error.
Any help would be much appreciated, remembering I'm new to dev world.
I'm trying to install Homebrew on MacOS Catalina.
After running the command on their official webpage I'm getting the following error.
==> Tapping homebrew/core
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'...
remote: Enumerating objects: 9, done.
remote: Counting objects: 100% (9/9), done.
remote: Compressing objects: 100% (9/9), done.
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
Error: Failure while executing; `git clone https://github.com/Homebrew/homebrew-core /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core` exited with 128.
Error: Failure while executing; `/usr/local/bin/brew tap homebrew/core` exited with 1.
Failed during: /usr/local/bin/brew update --force
I was having the same problem with the Mac M1 Big Sur.
The comment above was a big help.
Step 1:
sudo ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
Step 2:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Then it failed.
Step 3:
cd /opt/homebrew/library/taps/homebrew
Step 4:
sudo rmdir homebrew-core
Step 5:
git clone https://github.com/Homebrew/homebrew-core /opt/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1
I also logged into Github on the browser, not sure if that mattered.
I had the same problem. Thankfully, the above answer put me in the right track. I just had to made changes on step 3, 4, and 5.
Step 1
sudo ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
Step 2
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Step 3
/usr/local/Homebrew/Library/Taps/homebrew
Step 4
sudo rm -r homebrew-core
Step 5
git clone https://github.com/Homebrew/homebrew-core /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1
I used to have Homebrew installed, but then at some point it broke, so I tried reinstalling it.
I tried running:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
It gave:
-e:70: warning: Insecure world writable dir /usr/local in PATH, mode 040777
It appears Homebrew is already installed. If your intent is to reinstall you
should do the following before running this installer again:
rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup
(I don't know why it says it is installed, running brew gives "zsh: command not found: brew")
So I tried running that:
zsh: command not found: brew
Then I tried running it without brew clean-up. Which executed. I re-ran:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
It starts downloading and installing until it gets to this point:
Downloading and installing Homebrew...
remote: Counting objects: 226839, done.
remote: Compressing objects: 100% (59610/59610), done.
remote: Total 226839 (delta 165997), reused 226815 (delta 165979)
Receiving objects: 100% (226839/226839), 52.14 MiB | 135.00 KiB/s, done.
Resolving deltas: 100% (165997/165997), done.
From https://github.com/Homebrew/homebrew
* [new branch] master -> origin/master
warning: unable to access 'bin/.gitattributes': Permission denied
error: unable to create file bin/brew (Permission denied)
fatal: Could not reset index file to revision 'origin/master'.
Failed during: git reset --hard origin/master
Tried adding sudo:
sudo ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Gives:
Don't run this as root!
I don't know where to go from here. Can someone help me?
Did you restart your terminal after installing zsh? brew is possibly not loaded for zshell. Also you need to add usr/local/ to your $path in .zshrc zsh configuration file should be in the in root ~/.zshrc