Homebrew Installation - macos

so i was trying to install ruby and i heard homebrew was the easiest way to do so. However when i tried to install nothing seemed to happen, heres what i put in the terminal.
Last login: Wed Jul 20 20:37:17 on ttys011
Archie-Hyndmans-MacBook-Air:~ moo$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/...
/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
Press RETURN to continue or any other key to abort
==> Searching online for the Command Line Tools
==> /usr/bin/sudo /usr/bin/touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
Password:
sh: fork: Resource temporarily unavailable
==> Installing
==> /usr/bin/sudo /usr/sbin/softwareupdate -i
Software Update Tool
Copyright 2002-2015 Apple Inc.
I am unsure if this means its done or still doing anything or if theres something wrong, apologies if this is a bad question but i have been searching everywhere for an answer.

Related

Install Homebrew on Mojave get error Not a directory

I try to install Homebrew on macOS Mojave, I ran this command
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
and I got this error
==> Searching online for the Command Line Tools
==> /usr/bin/sudo /usr/bin/touch
/tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
Password:****
touch: /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress: Not a directory
Failed during: /usr/bin/sudo /usr/bin/touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
and one more thing I downloaded Xcode Command Line Tools file and I tend to install on my macOS but I got failed messages from package installer.
Yours
Reza Dehnavi
Your error is caused by the firewall of macOS interfereing in Mojave with the updates process, it is not as other stated due to

Java Homebrew installation

I am trying to install Homebrew on my Mac, for use with Java development. I have followed the instructions at: https://brew.sh, and pasted the command: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" into my terminal.
When I do this, a few scripts are executed, and I get the output:
MacBook-Pro:~ me$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
==> 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
==> /usr/bin/sudo /bin/mkdir -p /Library/Caches/Homebrew
Password:
==> /usr/bin/sudo /bin/chmod g+rwx /Library/Caches/Homebrew
==> /usr/bin/sudo /usr/sbin/chown me /Library/Caches/Homebrew
==> Downloading and installing Homebrew...
remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
HEAD is now at ea8be17 Merge pull request #2631 from GauthamGoli/audit_homepage_rubocop
==> Cleaning up /Library/Caches/Homebrew...
==> Migrating /Library/Caches/Homebrew to /Users/me/Library/Caches/Homeb
==> Deleting /Library/Caches/Homebrew...
Already up-to-date.
Error: Could not link:
/usr/local/etc/bash_completion.d/brew
Please delete these paths and run brew update.
Error: Failed to link all completions, docs and manpages:
Permission denied - (../../../Homebrew/completions/zsh/_brew_cask, /usr/local/share/zsh/site-functions/_brew_cask)
Failed during: /usr/local/bin/brew update --force
MacBook-Pro:~ me$
So the output is telling me that it's already up-to-date, presumably because I've already tried installing it once or twice?
How can I delete the paths to run brew update, like it's telling me to?
I encountered this error. The fix is to run the command sudo chown -R $USER:admin /usr/local/* as described on the Tech Stacker blog post that solves this issue.

Installing Homebrew on Yosemite 10.10.5 error

I tried to Find an answear with this problem
but I could so here it is
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/...
/usr/local/share/man/man1/brew.1
Press RETURN to continue or any other key to abort
==> Installing the Command Line Tools (expect a GUI popup):
==> /usr/bin/sudo /usr/bin/xcode-select --install
Password:
sudo: /usr/bin/xcode-select: command not found
Failed during: /usr/bin/sudo /usr/bin/xcode-select --install
I didnt understand the problem with the xcode
but didt kite get so hope you can help me with this
before hand every try its appricieted
Open Xcode. It might be that u need to accept terms and conditions.
Did you install Xcode command line tools?
$ xcode-select --install
An important dependency before Homebrew can work is the Command Line Tools for Xcode.

Homebrew Installed But Also Not Installed

When I tried to install homebrew I got this error. It started simple but then I was perplexed.
cjbrigna$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/...
/usr/local/share/man/man1/brew.1
Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /usr/bin/chgrp admin /Library/Caches/Homebrew
Password:
==> Downloading and installing Homebrew...
fatal: unable to access 'https://github.com/Homebrew/homebrew/': Could not resolve host: github.com
Failed during: git fetch origin master:refs/remotes/origin/master -n --depth=1
No problem, github was down for a little while. So I tried again later.
cjbrigna$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
It appears Homebrew is already installed. If your intent is to reinstall you
should do the following before running this installer again:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
Which makes me think I have homebrew.
cjbrigna$ brew help
-sh: brew: command not found
Well clearly I didn't have homebrew.
cjbrigna$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
Failed to locate Homebrew!
Well now I can't install or uninstall homebrew. This makes no sense. What did I do wrong? I appreciate any help.
You can finish the install process manually:
cd /usr/local
git fetch origin master:refs/remotes/origin/master -n --depth=1
git reset --hard origin/master
Then ensure /usr/local/bin is in your PATH. If it is you should then be able to run e.g. brew help to check that Homebrew is installed.

xcode-select command not found

I was trying to install homebrew on my mac but failed with the error message saying that xcode-select command not found. I did some searchings online and realized that there is one duplication online. However, it doens't provide me a solution. Below is the information about my environment and settings.
I have xcode5.1.1 and xcode6beta6 both installed on the osx mavericks.
I checked the PATH variable by "echo $PATH" and the result is "/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin".
I downloaded the command line tool from the apple download page and installed it.
Last, I run the command "ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" to install the homebrew.
Results I got:
"==> This script will install:
/usr/local/bin/brew
/usr/local/Library/...
/usr/local/share/man/man1/brew.1
Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /bin/chmod g+rwx /Library/Caches/Homebrew
Password:
==> Installing the Command Line Tools (expect a GUI popup):
==> /usr/bin/sudo /usr/bin/xcode-select --install
sudo: /usr/bin/xcode-select: command not found
Failed during: /usr/bin/sudo /usr/bin/xcode-select --install
"
I have spent a whole day trying to solve the problem. Anyone please help. A lot of thanks.

Resources