The 365 Data Science team is proud to invite you to our own community forum. A very well built system to support your queries, questions and give the chance to show your knowledge and help others in their path of becoming Data Science specialists.
Ask
Anybody can ask a question
Answer
Anybody can answer
Vote
The best answers are voted up and moderated by our team

Installing Homebrew on macOS Catalina

Installing Homebrew on macOS Catalina

0
Votes
4
Answer

In the Installing MySQL section of the SQL course, the suggested route for MacOS is to install Home-brew.  I have used the supplied command 
/bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)”
which starts but then gives the following error:
==> Downloading and installing Homebrew…
HEAD is now at 3eba477b7 Merge pull request #8286 from MLH-Fellowship/use-cask-args-cache-home
==> Tapping homebrew/core
Cloning into ‘/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core’…
remote: Enumerating objects: 55, done.
remote: Counting objects: 100% (55/55), done.
remote: Compressing objects: 100% (37/37), 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 anyone help me?
 
Best regards
SJ

4 Answers

365 Team
0
Votes

Hi Simon!
Thanks for reaching out.
Can you please execute the following commands: brew update-reset && brew update and retry running 

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

Hope this helps but please feel free to get back to us should you need further assistance. Thank you.
Best,
Martin

0
Votes

Hello Martin G
I have. tried your suggestion but still get pretty much the same error:
 
brew update-reset && brew update
==> Fetching /usr/local/Homebrew…
remote: Enumerating objects: 307, done.
remote: Counting objects: 100% (307/307), done.
remote: Compressing objects: 100% (37/37), done.
remote: Total 368 (delta 284), reused 280 (delta 270), pack-reused 61
Receiving objects: 100% (368/368), 106.04 KiB | 620.00 KiB/s, done.
Resolving deltas: 100% (287/287), completed with 103 local objects.
From https://github.com/Homebrew/brew
 * [new branch]          dependabot/bundler/Library/Homebrew/sorbet-0.5.5869 -> origin/dependabot/bundler/Library/Homebrew/sorbet-0.5.5869
 * [new branch]          dependabot/bundler/Library/Homebrew/sorbet-runtime-0.5.5869 -> origin/dependabot/bundler/Library/Homebrew/sorbet-runtime-0.5.5869
   63fa38a57..0227ac5b1  master     -> origin/master
==> Resetting /usr/local/Homebrew…
Branch ‘master’ set up to track remote branch ‘master’ from ‘origin’.
Switched to and reset branch ‘master’
Your branch is up to date with ‘origin/master’.
==> 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 have been recorded yet (or will be during this `brew` run).
==> Tapping homebrew/core
Cloning into ‘/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core’…
remote: Enumerating objects: 136, done.
remote: Counting objects: 100% (136/136), done.
remote: Compressing objects: 100% (96/96), 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.
I tried re-running the install script too and, that also failed with the same message.  The failure always happens at the git clone …homebrew-core stage of the install.  
I looked on Google for similar issues and most of the solutions said something about a slow internet connection and suggested using SSH for the cloning connection instead of https but, that would involve editing the install script which, is just beyond the limit of what I’m capable of.  
Do you have any other ideas?
Regards
SJ
 

365 Team
0
Votes

Hi SJ!
Thanks for your reply and I am sorry that the previous suggestion didn’t help.
Sometimes dealing with installation issues requires the exchange of a few messages but I hope we will be able to find the solution soon. The biggest challenge is that this problem is really case-specific and regards two different software products, so I do hope we will be able to provide useful assistance as soon as possible.
Can you please make sure that you have Xcode installed? You can download it from the Mac App Store. 
After you’ve done that successfully, please execute the following command in Terminal to install Command Line Tools for it:
xcode-select –install
Once you’ve completed these steps successfully, retry installing Workbench through Homebrew as suggested in the course.
Hope this helps but please feel free to get back to us should you need further assistance. Thank you.
Best,
Martin

0
Votes

Hello Martin G,
I really appreciate your help.  I used to work in support and commonly the first answer to a problem isn’t the solution so, I know where you are coming from.  I wanted to get started with the SQL course so, I worked around the problem by installing it on a desktop PC running Windows10, which worked seamlessly.  At some point I shall return to the problem and try and get the install working on my Mac.  It’s good advice to make sure the Xcode works – MacOS is Linux-like in that, there can be hidden dependancies that the OS is relying on before it can install something else.
Anyway, let’s park this issue for now and I’ll let you know when and if I get back to the install on my Mac.  
Best regards
SJ 

Hi Simon! Great! Thank you very much for the understanding. But most of all, I am glad that you can proceed as you wanted. Good luck with the Program. Please feel free to post another question in the Q&A should you encounter any difficulty, as well. Kind regards, Martin

1 month