This repository was deprecated and split into two repositories:
- Homebrew formulae/packages: Homebrew/homebrew-core (former contents of
Library/Formula
) - Homebrew package manager: Homebrew/brew
π₯ Homebrew (un)installer
Home Page: https://brew.sh
License: BSD 2-Clause "Simplified" License
This repository was deprecated and split into two repositories:
Library/Formula
)It looks like this change (d7423c3) to HOMEBREW_CACHE
causes a path through the installer to fail due to missing directories.
I believe the root cause is the cache location changing from /Library/Caches/Homebrew
to $HOME/Library/Caches
.
There's no guarantee that the user will have a ~/Library/Caches
directory so the setup fails at the first mkdir
call. The commands issued look like:
/usr/bin/sudo /bin/chmod g+rwx /usr/local/.
/usr/bin/sudo /usr/sbin/chown myuser /usr/local/.
/usr/bin/sudo /usr/bin/chgrp mygroup /usr/local/.
/usr/bin/sudo /bin/mkdir /Users/myuser/Library/Caches/Homebrew
mkdir: /Users/myuser/Library/Caches: No such file or directory
If moving the cache from a shared to user-specific location was intentional the the mkdir
invocation should probably have a -p
to create missing parent directories. ping: @xu-cheng.
Could we please check if the permissions are set correctly on /Library/Caches/Homebrew before requesting a password be entered?
If the permissions are already set correctly on the folder we shouldn't attempt to run chmod.
I'm specifically referring to this step of the brew installation process:
==> /usr/bin/sudo /bin/chmod g+rwx /Library/Caches/Homebrew
Password:
From @shamansir on June 26, 2014 0:5
When you already have brew installed and try to run ruby -e $(curl ..../install)
, it says:
It appears Homebrew is already installed. If your intent is to reinstall you
should do the following before running this installer again:
rm -rf #{HOMEBREW_PREFIX}/Cellar #{HOMEBREW_PREFIX}/.git && brew cleanup
Which actually substitutes to /usr/local/Cellar
, at least at my system, and if user performs it, the most of brew-installed soft-links in /usr/local/bin
become totally not reachable (even after the "proper" re-installation of brew). It also may silently kill python and some pretty important stuff for system functionality like automake
, openssl
or any kind of VCS-s, installed with brew.
For example, it may kill fish
shell out of the system and you can't start Terminal again, since it suicides with login: /usr/local/bin/fish: No such file or directory
. Yes, if user is smart enough to re-install brew from command line, he will find a Terminal settings and replace a shell path with, i.e., /bin/bash
, but I suppose anyway it's not the very best and kind advice from any installer in general.
So, as a suggestion, at least the installer should hardly remind user that all brew-related software will become inaccessible after the execution, and (it will be even more careful with respect to user) to provide her/him the list of binaries which (s)he will kill with this command, and even more polite will be to store that list in some temporary file in user home-directory and suggest user to re-install all of this with new version of brew automatically.
P.S. I was required to reinstall brew because previous brew version broke due to Xcode console tools update.
Copied from original issue: Homebrew/legacy-homebrew#30450
Hi folks,
I tried to install brew from instruction on home page but received next error:
curl: (22) The requested URL returned error: 503 Backend is unhealthy
It looks like your Varnish server is broken down.
I suggest allowing user to choose the location where he or she wishes to install Homebrew. This can be done in the beginning of the install script with a simple prompt for the path. The install script would then check if the provided path exists and, if it does not, ask the user if he wants Homebrew to create that directory or specify a different one. This will be useful for users with little to no space left on the main hard drive or those who want to reduce load on / wear of the hard disk.
^
I recently encountered a problem with pip install nose
which expects /usr/local/man to exist.
FHS 2.3 says "/usr/local/share/man and /usr/local/man directories must be synonomous (usually this means that one of them must be a symbolic link)".
https://github.com/Homebrew/install/blob/master/install#L206 is where /usr/local/* directories are created, and if we just wanted to create a directory it would be trivial. However I don't see any matching functionality for creating symlinked directories, so I think this will require some new code.
β΄ /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
==> The following new directories will be created:
/usr/local/Homebrew
Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /bin/mkdir -p /usr/local/Homebrew
==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/Homebrew
==> /usr/bin/sudo /bin/chmod 755 /usr/local/share/zsh /usr/local/share/zsh/site-functions
==> /usr/bin/sudo /usr/sbin/chown pboling /usr/local/Homebrew
==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/Homebrew
==> /usr/bin/sudo /bin/mkdir -p /Users/pboling/Library/Caches/Homebrew
==> /usr/bin/sudo /bin/chmod g+rwx /Users/pboling/Library/Caches/Homebrew
==> /usr/bin/sudo /usr/sbin/chown pboling /Users/pboling/Library/Caches/Homebrew
==> /usr/bin/sudo /bin/mkdir -p /Library/Caches/Homebrew
==> /usr/bin/sudo /bin/chmod g+rwx /Library/Caches/Homebrew
==> /usr/bin/sudo /usr/sbin/chown pboling /Library/Caches/Homebrew
==> Downloading and installing Homebrew...
remote: Counting objects: 96965, done.
remote: Compressing objects: 100% (14/14), done.
remote: Total 96965 (delta 3), reused 7 (delta 2), pack-reused 96948
Receiving objects: 100% (96965/96965), 22.10 MiB | 19.99 MiB/s, done.
Resolving deltas: 100% (70418/70418), done.
From https://github.com/Homebrew/brew
* [new branch] master -> origin/master
* [new tag] 0.1 -> 0.1
* [new tag] 0.2 -> 0.2
* [new tag] 0.3 -> 0.3
* [new tag] 0.4 -> 0.4
* [new tag] 0.5 -> 0.5
* [new tag] 0.6 -> 0.6
* [new tag] 0.7 -> 0.7
* [new tag] 0.7.1 -> 0.7.1
* [new tag] 0.8 -> 0.8
* [new tag] 0.8.1 -> 0.8.1
* [new tag] 0.9 -> 0.9
* [new tag] 0.9.1 -> 0.9.1
* [new tag] 0.9.2 -> 0.9.2
* [new tag] 0.9.3 -> 0.9.3
* [new tag] 0.9.4 -> 0.9.4
* [new tag] 0.9.5 -> 0.9.5
* [new tag] 0.9.8 -> 0.9.8
* [new tag] 0.9.9 -> 0.9.9
* [new tag] 1.0.0 -> 1.0.0
* [new tag] 1.0.1 -> 1.0.1
* [new tag] 1.0.2 -> 1.0.2
* [new tag] 1.0.3 -> 1.0.3
* [new tag] 1.0.4 -> 1.0.4
* [new tag] 1.0.5 -> 1.0.5
* [new tag] 1.0.6 -> 1.0.6
* [new tag] 1.0.7 -> 1.0.7
* [new tag] 1.0.8 -> 1.0.8
* [new tag] 1.0.9 -> 1.0.9
* [new tag] 1.1.0 -> 1.1.0
* [new tag] 1.1.1 -> 1.1.1
* [new tag] 1.1.10 -> 1.1.10
* [new tag] 1.1.11 -> 1.1.11
* [new tag] 1.1.12 -> 1.1.12
* [new tag] 1.1.13 -> 1.1.13
* [new tag] 1.1.2 -> 1.1.2
* [new tag] 1.1.3 -> 1.1.3
* [new tag] 1.1.4 -> 1.1.4
* [new tag] 1.1.5 -> 1.1.5
* [new tag] 1.1.6 -> 1.1.6
* [new tag] 1.1.7 -> 1.1.7
* [new tag] 1.1.8 -> 1.1.8
* [new tag] 1.1.9 -> 1.1.9
* [new tag] 1.2.0 -> 1.2.0
* [new tag] 1.2.1 -> 1.2.1
* [new tag] 1.2.2 -> 1.2.2
* [new tag] 1.2.3 -> 1.2.3
* [new tag] 1.2.4 -> 1.2.4
* [new tag] 1.2.5 -> 1.2.5
* [new tag] 1.2.6 -> 1.2.6
* [new tag] 1.3.0 -> 1.3.0
* [new tag] 1.3.1 -> 1.3.1
* [new tag] 1.3.2 -> 1.3.2
* [new tag] 1.3.3 -> 1.3.3
* [new tag] 1.3.4 -> 1.3.4
* [new tag] 1.3.5 -> 1.3.5
* [new tag] 1.3.6 -> 1.3.6
* [new tag] 1.3.7 -> 1.3.7
* [new tag] 1.3.8 -> 1.3.8
* [new tag] 1.3.9 -> 1.3.9
* [new tag] 1.4.0 -> 1.4.0
* [new tag] 1.4.1 -> 1.4.1
* [new tag] 1.4.2 -> 1.4.2
* [new tag] 1.4.3 -> 1.4.3
* [new tag] 1.5.0 -> 1.5.0
* [new tag] 1.5.1 -> 1.5.1
* [new tag] 1.5.2 -> 1.5.2
HEAD is now at a44b21b2d Merge pull request #3751 from xiehuc/master
==> Tapping homebrew/core
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'...
remote: Counting objects: 4645, done.
remote: Compressing objects: 100% (4435/4435), done.
remote: Total 4645 (delta 48), reused 766 (delta 24), pack-reused 0
Receiving objects: 100% (4645/4645), 3.79 MiB | 12.55 MiB/s, done.
Resolving deltas: 100% (48/48), done.
Tapped 4442 formulae (4,687 files, 11.9MB)
==> Cleaning up /Library/Caches/Homebrew...
==> Migrating /Library/Caches/Homebrew to /Users/pboling/Library/Caches/Homebrew...
==> Deleting /Library/Caches/Homebrew...
Already up-to-date.
==> Installation successful!
==> Homebrew has enabled anonymous aggregate user behaviour analytics.
Read the analytics documentation (and how to opt-out) here:
https://docs.brew.sh/Analytics.html
==> Next steps:
- Run `brew help` to get started
- Further documentation:
https://docs.brew.sh
22:02:25 pboling@mustard-mac-6:~
β΄ brew upgrade
22:03:16 pboling@mustard-mac-6:~
β΄ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!
Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.
Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:
/Applications/Postgres.app/Contents/Versions/latest/bin/gdal-config
/usr/local/bin/pkg-config
/usr/local/bin/ksba-config
/usr/local/bin/npth-config
/usr/local/bin/libassuan-config
/usr/local/bin/gpg-error-config
/usr/local/bin/libgcrypt-config
Warning: Your Homebrew's prefix is not /usr/local.
You can install Homebrew anywhere you want but some bottles (binary packages)
can only be used with a /usr/local prefix and some formulae (packages)
may not build correctly with a non-/usr/local prefix.
I am running MacOS 10.13.3, and have just gone through several cycles of uninstalling / reinstalling Homebrew trying to get rid of the warning to no avail. Seems like a red herring, but concerning because what prompted this was my Rubies built from source were unable to link to Homebrew's OpenSSL lib.
Brand new machine, brand new everything, running the standard
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
results in
==> 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
==> The following new directories will be created:
/usr/local/Cellar
/usr/local/Homebrew
/usr/local/Frameworks
/usr/local/bin
/usr/local/etc
/usr/local/include
/usr/local/lib
/usr/local/opt
/usr/local/sbin
/usr/local/share
/usr/local/share/zsh
/usr/local/share/zsh/site-functions
/usr/local/var
Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /bin/mkdir -p /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/opt /usr/local/sbin /usr/local/share /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var
Password:
==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/opt /usr/local/sbin /usr/local/share /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var
==> /usr/bin/sudo /bin/chmod 755 /usr/local/share/zsh /usr/local/share/zsh/site-functions
==> /usr/bin/sudo /usr/sbin/chown epilobium /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/opt /usr/local/sbin /usr/local/share /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var
==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/opt /usr/local/sbin /usr/local/share /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var
==> /usr/bin/sudo /bin/mkdir -p /Users/epilobium/Library/Caches/Homebrew
==> /usr/bin/sudo /bin/chmod g+rwx /Users/epilobium/Library/Caches/Homebrew
==> /usr/bin/sudo /usr/sbin/chown epilobium /Users/epilobium/Library/Caches/Homebrew
==> /usr/bin/sudo /bin/mkdir -p /Library/Caches/Homebrew
==> /usr/bin/sudo /bin/chmod g+rwx /Library/Caches/Homebrew
==> /usr/bin/sudo /usr/sbin/chown epilobium /Library/Caches/Homebrew
-e:280:in `<main>': invalid byte sequence in US-ASCII (ArgumentError)
Per the comments in Legacy Homebrew #44744, I checked LANG
and LC_ALL
and they're both unset.
Setting LC_ALL=en_US.UTF-8
and rerunning the install command worked.
It seems that running the uninstaller will miss that Casks are still installed. Not entirely sure how to fix it or where it should be fixed, but wanted to raise awareness of the issue. This cropped up for me when dealing with Java.
From @xnathanh on October 4, 2016 19:20
$ 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
==> Downloading and installing Homebrew...
remote: Counting objects: 85, done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 85 (delta 81), reused 76 (delta 72), pack-reused 0
Unpacking objects: 100% (85/85), done.
From https://github.com/Homebrew/brew
! [rejected] master -> origin/master (non-fast-forward)
Failed during: git fetch origin master:refs/remotes/origin/master -n --depth=1
brew --config
HOMEBREW_VERSION: 1.0.6
ORIGIN: https://github.com/Homebrew/brew
HEAD: 35ee2831086e923e7fcaf75fb440b01312e3f9c5
Last commit: 2 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: f3a2b0a1e146cbc091e12d474617be57cf9be8be
Core tap last commit: 22 minutes ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local/Homebrew
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
CPU: octa-core 64-bit haswell
Homebrew Ruby: 2.0.0-p648
Clang: 8.0 build 800
Git: 2.8.4 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Perl: /usr/bin/perl
Python: /usr/local/bin/python => /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
Java: 1.7.0_72
macOS: 10.12-x86_64
Xcode: 8.0
CLT: 8.0.0.0.1.1472435881
X11: N/A
Copied from original issue: Homebrew/brew#1226
From @ahti on October 24, 2013 22:28
I just tried to install brew on a new machine. While it was doing the git checkout (Downloading and Installing Homebrew...
), I noticed the network was way to slow, so I killed the installation with Ctrl-C.
After I fixed the network and re-tried to install brew, the installer script told me brew seemed to be installed already.
The installer script should catch being aborted and clean up after itself when this happened.
(Am I to blind to find it or is that script not under version control?)
Copied from original issue: Homebrew/legacy-homebrew#23557
Clean installation of macOS High Sierra 10.13.3 + Xcode 9.2.
I remember brew didn't need to install CLI tools if full Xcode was installed, and didn't find any news regarding this.
Even after installing Xcode and running it for first time, brew installs CLI tools. Checking the code I found this:
def should_install_command_line_tools?
return false if force_curl?
return false if macos_version < "10.9"
!File.exist?("/Library/Developer/CommandLineTools/usr/bin/git") ||
!File.exist?("/usr/include/iconv.h")
end
"/Library/Developer/CommandLineTools/" this directory does not exist.
I see the latest commit makes this change but I do not see why is this necessary when having already CLI tools bundled with full Xcode
After installing homebrew on a fresh Sierra Mac, I noticed that homebrew's zsh side-functions don't get loaded.
executing compinit shows
zsh compinit: insecure directories, run compaudit for list.
Ignore insecure directories and continue [y] or abort compinit [n]?
Running the compaudit returns the follows:
There are insecure directories:
/usr/local/share/zsh/site-functions
I could solve the problem for me by changing the file mode as follows:
sudo chmod -R 755 /usr/local/share/zsh
Maybe it is possible to update the installer, if this problem arises for many users.
* [new branch] master -> origin/master
x [deleted] (none) -> origin/master
fatal: ambiguous argument 'origin/master': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Failed during: git reset --hard origin/master
It seems that the recent change caused this error. I had to manually remove the "--prune" option to get it working again.
Hi,
Please look at your code on L302, as linked here:
Line 302 in f455130
You'll notice that all your surrounding code specifies a full path to each command you're calling but does not on that specific line. This has the effect of breaking the xcode tools install process on systems where PATH is either missing (say run from a non user launchd context) or where PATH has been corrupted by the user.
From @fbucek on August 7, 2015 12:35
When I follow web page brew.sh to install HomeBrew
Install HomeBrew:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
OK - working
Install wget
brew install wget
Error: Permission denied - /Library/Caches/Homebrew/Formula
I have to "fix" this using command found here ( found here in issues somewhere )
sudo chown -R
Another mention of this problem:
http://stackoverflow.com/questions/17610417/permission-denied-library-caches-homebrew-formula-nmap-brewing
Answer helped some people.
OS: OSX 10.10.5
Copied from original issue: Homebrew/legacy-homebrew#42606
I ran the homebrew install script, but it hangs on Resolving deltas: 100% (51/51), done.
I've also tried to fully uninstall homebrew before dong this, but it does not make a difference.
Is there a way to run --verbose
or something on the install script so I can see what's going wrong?
I've included a transcript of my installation logs here:
==> 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
==> The following new directories will be created:
/usr/local/Cellar
/usr/local/Homebrew
/usr/local/Frameworks
/usr/local/bin
/usr/local/etc
/usr/local/include
/usr/local/lib
/usr/local/opt
/usr/local/sbin
/usr/local/share
/usr/local/share/zsh
/usr/local/share/zsh/site-functions
/usr/local/var
Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /bin/mkdir -p /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/opt /usr/local/sbin /usr/local/share /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var
==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/opt /usr/local/sbin /usr/local/share /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var
==> /usr/bin/sudo /bin/chmod 755 /usr/local/share/zsh /usr/local/share/zsh/site-functions
==> /usr/bin/sudo /usr/sbin/chown mcapozzi /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/opt /usr/local/sbin /usr/local/share /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var
==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/opt /usr/local/sbin /usr/local/share /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var
==> /usr/bin/sudo /bin/mkdir -p /Users/mcapozzi/Library/Caches/Homebrew
==> /usr/bin/sudo /bin/chmod g+rwx /Users/mcapozzi/Library/Caches/Homebrew
==> /usr/bin/sudo /usr/sbin/chown mcapozzi /Users/mcapozzi/Library/Caches/Homebrew
==> /usr/bin/sudo /bin/mkdir -p /Library/Caches/Homebrew
==> /usr/bin/sudo /bin/chmod g+rwx /Library/Caches/Homebrew
==> /usr/bin/sudo /usr/sbin/chown mcapozzi /Library/Caches/Homebrew
==> Downloading and installing Homebrew...
remote: Counting objects: 100146, done.
remote: Compressing objects: 100% (23/23), done.
remote: Total 100146 (delta 23), reused 44 (delta 23), pack-reused 100100
Receiving objects: 100% (100146/100146), 22.85 MiB | 11.71 MiB/s, done.
Resolving deltas: 100% (72866/72866), done.
From https://github.com/Homebrew/brew
* [new branch] master -> origin/master
* [new tag] 0.1 -> 0.1
* [new tag] 0.2 -> 0.2
* [new tag] 0.3 -> 0.3
* [new tag] 0.4 -> 0.4
* [new tag] 0.5 -> 0.5
* [new tag] 0.6 -> 0.6
* [new tag] 0.7 -> 0.7
* [new tag] 0.7.1 -> 0.7.1
* [new tag] 0.8 -> 0.8
* [new tag] 0.8.1 -> 0.8.1
* [new tag] 0.9 -> 0.9
* [new tag] 0.9.1 -> 0.9.1
* [new tag] 0.9.2 -> 0.9.2
* [new tag] 0.9.3 -> 0.9.3
* [new tag] 0.9.4 -> 0.9.4
* [new tag] 0.9.5 -> 0.9.5
* [new tag] 0.9.8 -> 0.9.8
* [new tag] 0.9.9 -> 0.9.9
* [new tag] 1.0.0 -> 1.0.0
* [new tag] 1.0.1 -> 1.0.1
* [new tag] 1.0.2 -> 1.0.2
* [new tag] 1.0.3 -> 1.0.3
* [new tag] 1.0.4 -> 1.0.4
* [new tag] 1.0.5 -> 1.0.5
* [new tag] 1.0.6 -> 1.0.6
* [new tag] 1.0.7 -> 1.0.7
* [new tag] 1.0.8 -> 1.0.8
* [new tag] 1.0.9 -> 1.0.9
* [new tag] 1.1.0 -> 1.1.0
* [new tag] 1.1.1 -> 1.1.1
* [new tag] 1.1.10 -> 1.1.10
* [new tag] 1.1.11 -> 1.1.11
* [new tag] 1.1.12 -> 1.1.12
* [new tag] 1.1.13 -> 1.1.13
* [new tag] 1.1.2 -> 1.1.2
* [new tag] 1.1.3 -> 1.1.3
* [new tag] 1.1.4 -> 1.1.4
* [new tag] 1.1.5 -> 1.1.5
* [new tag] 1.1.6 -> 1.1.6
* [new tag] 1.1.7 -> 1.1.7
* [new tag] 1.1.8 -> 1.1.8
* [new tag] 1.1.9 -> 1.1.9
* [new tag] 1.2.0 -> 1.2.0
* [new tag] 1.2.1 -> 1.2.1
* [new tag] 1.2.2 -> 1.2.2
* [new tag] 1.2.3 -> 1.2.3
* [new tag] 1.2.4 -> 1.2.4
* [new tag] 1.2.5 -> 1.2.5
* [new tag] 1.2.6 -> 1.2.6
* [new tag] 1.3.0 -> 1.3.0
* [new tag] 1.3.1 -> 1.3.1
* [new tag] 1.3.2 -> 1.3.2
* [new tag] 1.3.3 -> 1.3.3
* [new tag] 1.3.4 -> 1.3.4
* [new tag] 1.3.5 -> 1.3.5
* [new tag] 1.3.6 -> 1.3.6
* [new tag] 1.3.7 -> 1.3.7
* [new tag] 1.3.8 -> 1.3.8
* [new tag] 1.3.9 -> 1.3.9
* [new tag] 1.4.0 -> 1.4.0
* [new tag] 1.4.1 -> 1.4.1
* [new tag] 1.4.2 -> 1.4.2
* [new tag] 1.4.3 -> 1.4.3
* [new tag] 1.5.0 -> 1.5.0
* [new tag] 1.5.1 -> 1.5.1
* [new tag] 1.5.10 -> 1.5.10
* [new tag] 1.5.11 -> 1.5.11
* [new tag] 1.5.12 -> 1.5.12
* [new tag] 1.5.13 -> 1.5.13
* [new tag] 1.5.14 -> 1.5.14
* [new tag] 1.5.2 -> 1.5.2
* [new tag] 1.5.3 -> 1.5.3
* [new tag] 1.5.4 -> 1.5.4
* [new tag] 1.5.5 -> 1.5.5
* [new tag] 1.5.6 -> 1.5.6
* [new tag] 1.5.7 -> 1.5.7
* [new tag] 1.5.8 -> 1.5.8
* [new tag] 1.5.9 -> 1.5.9
* [new tag] 1.6.0 -> 1.6.0
* [new tag] 1.6.1 -> 1.6.1
HEAD is now at 1d9746db8 Merge pull request #4092 from MikeMcQuaid/x11_requirement_download_base
==> Downloading https://homebrew.bintray.com/bottles-portable-ruby/portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz
==> Tapping homebrew/core
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'...
remote: Counting objects: 4730, done.
remote: Compressing objects: 100% (4529/4529), done.
remote: Total 4730 (delta 51), reused 623 (delta 14), pack-reused 0
Receiving objects: 100% (4730/4730), 3.84 MiB | 14.16 MiB/s, done.
Resolving deltas: 100% (51/51), done.
From @corysimmons on October 28, 2016 21:8
/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
==> The following existing directories will be made group writable:
/usr/local/lib
==> The following existing directories will have their owner set to webad:
/usr/local/lib
==> The following existing directories will have their group set to admin:
/usr/local/lib
==> The following new directories will be created:
/usr/local/Cellar
/usr/local/Homebrew
/usr/local/Frameworks
/usr/local/etc
/usr/local/opt
/usr/local/sbin
/usr/local/share/zsh
/usr/local/share/zsh/site-functions
/usr/local/var
Press RETURN to continue or any other key to abort
# hangs for 15+ minutes....
Fix this, or add some progress indicator to let me know it's actually doing something.
Fresh Mac Sierra install. XCode 8.1 CLI tools installed.
Copied from original issue: Homebrew/brew#1390
The recommended procedure for adding to the PATH in OS X is to add a file to /etc/paths.d
The installer should create a file: /etc/paths.d/sh.brew.homebrew
with the following contents:
/usr/local/bin
/usr/local/sbin
It would make sense if there was an offline method for uninstalling homebrew.
This is minor and I'm not sure if it is addressable, but I've noticed that on travisci with the xcode 6.4 image the uninstall script leaves symlinks to oclint
on /usr/local/bin
as can be seen on the before_install.2
step of this build.
oclint formula says that some travisci images has oclint
installed with cask, so I think this is why the symlinks were left behind. /usr/local/Caskroom/oclint
was removed though, making the symlinks broken.
I ran into an issue where $ brew update
claimed to be done but it was not actually updating to the latest formulae for some reason and I wasn't smart enough to debug the real issue (either brew or git issue).
Doing a $ git reset --hard HEAD
was also not fixing things - formulae were still not getting updated when doing $ brew update
I looked into running the brew uninstaller script but it un-helpfully offered to delete everything including all of my Cellar installs when all I was looking for was a way to force a clean brew re-install.
In the end I had to $ rm -rf /usr/local/bin/.git
and then run the homebrew installer which got things working fine again.
Suggestion/enhancement - the installer and/or uninstaller scripts should make it possible to achieve this kind of fix/reset of the homebrew git project files without deleting all of the user's installed packages.
Hi, I just wanted to share a script that I wrote as a Homebrew uninstaller and diagnostic tool. It has proven robust and effective for myself and others, and I thought it would be good to include mention of this somewhere on an official Homebrew repo/wiki/website in case it might benefit anyone.
My personal aspiration is to become a regular contributor to the Homebrew project at some point down the road, but for now I would especially love to hear from anyone on the team interested in collaborating on the uninstaller code. Let me know what you think.
When running /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
, the install fails and produces the following message:
error: unable to create file etc/bash_completion.d/brew (Permission denied)
error: unable to create file share/zsh/site-functions/_brew (Permission denied)
fatal: Could not reset index file to revision 'origin/master'.
Failed during: git reset --hard origin/master
On my system, the directories /usr/local/etc/bash_completion.d
, /usr/local/share/zsh
and /usr/local/share/zsh/site-functions
were created during an install of Rust with the permissions rwxr-xr-x
, owner root
and group wheel
. Unlike the other directories used by Homebrew, the permissions and ownership of these directories are not modified for user level access during install, which leads to the error above. Modifying them manually before installing Homebrew fixes this.
Should the aforementioned directories be included in the chmods
array on line 165 of the install script along with the other directories used, so their permissions and ownership are modified automatically during install?
From @ruolanx on October 30, 2016 16:2
Hi, I'm Ruolan in a beginner level of programming. To start my school project, I need to upgrade Ruby from Ruby-2.0.0 to Ruby-2.3.1. Thus, I followed the instruction to update Ruby but came across a problem in installing homebrew.
(My system info: Mac OS X Yosemite 10.10.5)
I copied and pasted
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
it went like this:
RuolandeMacBook-Pro:~ Ruolan.Xia$ /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
==> The following existing directories will be made group writable:
/usr/local/bin
Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/bin
Password:
and then inserted my password, however
==> /usr/bin/sudo /bin/mkdir -p /Users/Ruolan.Xia/Library/Caches/Homebrew
==> /usr/bin/sudo /bin/chmod g+rwx /Users/Ruolan.Xia/Library/Caches/Homebrew
==> /usr/bin/sudo /usr/sbin/chown Ruolan.Xia /Users/Ruolan.Xia/Library/Caches/Homebrew
==> Downloading and installing Homebrew...
remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
HEAD is now at ec527ff Merge pull request #1406 from Homebrew/revert-1366-audit-check-version-decrease
ln: /usr/local/bin/brew: Permission denied
Failed during: ln -sf /usr/local/Homebrew/bin/brew /usr/local/bin/brew
It said "Permission denied". I tried a few times but still have no idea how to deal with the problem.
Copied from original issue: Homebrew/homebrew-bundle#228
I'm unsure if this is the correct place to report this issue, so please redirect me if I am incorrect.
I am trying to install brew on a newly provisioned parallels El Capitan VM.
$ /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
==> Searching online for the Command Line Tools
==> /usr/bin/sudo /usr/bin/touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
touch: /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress: Operation not permitted
Failed during: /usr/bin/sudo /usr/bin/touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
It seems that nothing can modify the contents of /tmp
(/private/tmp
).
$ touch /tmp/file
touch: /tmp/file: Operation not permitted
$ sudo touch /tmp/file
touch: /tmp/file: Operation not permitted
as the extended attributes suggest
$ xattr /private /private/tmp
/private: com.apple.FinderInfo
/private/tmp: com.apple.rootless
@MikeMcQuaid
There is a minor bug with 09a5b19.
If /usr/local
doesn't exist and SIP is disabled, it is still possible to mkdir /usr/local, even if /usr/local is not in /System/Library/Sandbox/Compatibility.bundle/Contents/Resources/paths.
Therefore, the current test
!(File.exist?(sandbox_paths_file) && IO.read(sandbox_paths_file).include?("/usr/local\n"))
is too hasty to abort.
One fix would be to explicitly check if the SIP file system restriction is enabled or disabled. This can be done as shown here: https://github.com/Piker-Alpha/csrstat/blob/master/csrstat.c
The relevant configuration flag to check for is CSR_ALLOW_UNRESTRICTED_FS. (SIP can be selectively enabled. For example, to enable all restrictions except for the file system restriction and the dtrace restriction csrutil enable --without fs,dtrace
or csrutil enable --without fs --without dtrace
).
The less "sophisticated" approach would be to actually try mkdir /usr/local before aborting.
With commit c2c00a4, installation does not proceed after pressing Enter. The first time, this is visible, following that no more messages are shown besides the RETURN prompt:
hostname:~ User$ /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
==> The following new directories will be created:
/usr/local/Cellar
/usr/local/Homebrew
/usr/local/Frameworks
/usr/local/bin
/usr/local/etc
/usr/local/include
/usr/local/lib
/usr/local/opt
/usr/local/sbin
/usr/local/share
/usr/local/share/zsh
/usr/local/share/zsh/site-functions
/usr/local/var
Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /bin/mkdir -p /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/opt /usr/local/sbin /usr/local/share /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var
Password:
==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/opt /usr/local/sbin /usr/local/share /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var
==> /usr/bin/sudo /bin/chmod 755 /usr/local/share/zsh /usr/local/share/zsh/site-functions
==> /usr/bin/sudo /usr/sbin/chown User /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/opt /usr/local/sbin /usr/local/share /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var
==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/opt /usr/local/sbin /usr/local/share /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var
==> /usr/bin/sudo /bin/mkdir -p /Users/User/Library/Caches/Homebrew
==> /usr/bin/sudo /bin/chmod g+rwx /Users/User/Library/Caches/Homebrew
==> /usr/bin/sudo /usr/sbin/chown User /Users/User/Library/Caches/Homebrew
With commit d59b7dc, I get a message that I must run sudo xcodebuild -license
. Sure enough, after executing this the installation from master can complete.
hostname$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
Failed to locate Homebrew!
hostname$ /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
==> Searching online for the Command Line Tools
==> /usr/bin/sudo /usr/bin/touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
Password:
==> Installing Command Line Tools (macOS El Capitan version 10.11) for Xcode-8.2
==> /usr/bin/sudo /usr/sbin/softwareupdate -i Command\ Line\ Tools\ (macOS\ El\ Capitan\ version\ 10.11)\ for\ Xcode-8.2
Software Update Tool
Copyright 2002-2015 Apple Inc.
Downloading Command Line Tools (macOS El Capitan version 10.11) for Xcode
Downloaded Command Line Tools (macOS El Capitan version 10.11) for Xcode
Installing Command Line Tools (macOS El Capitan version 10.11) for Xcode
Done with Command Line Tools (macOS El Capitan version 10.11) for Xcode
Done.
==> /usr/bin/sudo /bin/rm -f /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
Password:
==> /usr/bin/sudo /usr/bin/xcode-select --switch /Library/Developer/CommandLineTools
sudo: /usr/bin/xcode-select: command not found
Failed during: /usr/bin/sudo /usr/bin/xcode-select --switch /Library/Developer/CommandLineTools
I have tried the ruby and the alternative way, neither of them seem to work.
==> /usr/bin/sudo /usr/sbin/softwareupdate -i Command\ Line\ Tools\ (macOS\ High\ Sierra\ version\ 10.13)\ for\ Xcode-9.2
Software Update Tool
Downloading Command Line Tools (macOS High Sierra version 10.13) for Xcode
Done.
==> /usr/bin/sudo /bin/rm -f /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
==> /usr/bin/sudo /usr/bin/xcode-select --switch /Library/Developer/CommandLineTools
xcode-select: error: invalid developer directory '/Library/Developer/CommandLineTools'
Failed during: /usr/bin/sudo /usr/bin/xcode-select --switch /Library/Developer/CommandLineTools
I tried install homebrew using the script from the homebrew homepage and this is what happened after each attempt:
Davids-MacBook-Pro:~ david$ /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
==> The following new directories will be created:
/usr/local/Cellar
/usr/local/Homebrew
/usr/local/Frameworks
/usr/local/bin
/usr/local/etc
/usr/local/include
/usr/local/lib
/usr/local/opt
/usr/local/sbin
/usr/local/share
/usr/local/share/zsh
/usr/local/share/zsh/site-functions
/usr/local/var
Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /bin/mkdir -p /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/opt /usr/local/sbin /usr/local/share /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var
Password:
mkdir: /usr/local/bin: Input/output error
Failed during: /usr/bin/sudo /bin/mkdir -p /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/opt /usr/local/sbin /usr/local/share /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var
Davids-MacBook-Pro:~ david$ /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
==> The following existing directories will be made group writable:
/usr/local/etc
/usr/local/Frameworks
/usr/local/include
/usr/local/lib
/usr/local/sbin
/usr/local/share
/usr/local/var
==> The following existing directories will have their owner set to david:
/usr/local/etc
/usr/local/Frameworks
/usr/local/include
/usr/local/lib
/usr/local/sbin
/usr/local/share
/usr/local/var
==> The following existing directories will have their group set to admin:
/usr/local/etc
/usr/local/Frameworks
/usr/local/include
/usr/local/lib
/usr/local/sbin
/usr/local/share
/usr/local/var
==> The following new directories will be created:
/usr/local/bin
Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /bin/chmod u+rwx /usr/local/etc /usr/local/Frameworks /usr/local/include /usr/local/lib /usr/local/sbin /usr/local/share /usr/local/var
Password:
==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/etc /usr/local/Frameworks /usr/local/include /usr/local/lib /usr/local/sbin /usr/local/share /usr/local/var
==> /usr/bin/sudo /usr/sbin/chown david /usr/local/etc /usr/local/Frameworks /usr/local/include /usr/local/lib /usr/local/sbin /usr/local/share /usr/local/var
==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/etc /usr/local/Frameworks /usr/local/include /usr/local/lib /usr/local/sbin /usr/local/share /usr/local/var
==> /usr/bin/sudo /bin/mkdir -p /usr/local/bin
mkdir: /usr/local/bin: Input/output error
Failed during: /usr/bin/sudo /bin/mkdir -p /usr/local/bin
Davids-MacBook-Pro:~ david$ /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
==> The following new directories will be created:
/usr/local/bin
Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /bin/mkdir -p /usr/local/bin
Password:
mkdir: /usr/local/bin: Input/output error
Failed during: /usr/bin/sudo /bin/mkdir -p /usr/local/bin
Davids-MacBook-Pro:~ david$
Progress reporting would be helpful while uninstall is happening. Or at least a "this will take several minutes" message.
Hey,
i install Homebrew with my dotfiles and encountered, that during an installation a Return enter type is necessary. See https://github.com/Homebrew/install/blob/master/install#L186
Is there any way how to avoid the manual return (during the keyboard) and automate the installation?
Is there a small trick how we can "fake" STDIN.tty?
On a very clean OS X 10.11.6 VM the install fails due to the parent directory not existing
Failed during: /usr/bin/sudo /bin/mkdir /Users/vagrant/Library/Caches/Homebrew
https://github.com/Homebrew/install/blob/master/install lines 191 and 197 should include the -p flag for mkdir otherwise the build can fail if parent directories haven't been created yet.
Hi!
Tried this:
https://raw.githubusercontent.com/Homebrew/install/master/install)"
...snipped...
Press RETURN to continue or any other key to abort
==> Downloading and installing Homebrew...
HEAD is now at 837ea74f4 Merge pull request #3543 from MikeMcQuaid/remove-env-unsets
==> Tapping homebrew/core
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'...
fatal: unable to access 'https://github.com/Homebrew/homebrew-core/': SSLRead() return error -9806
Error: Failure while executing: git clone https://github.com/Homebrew/homebrew-core /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1
Error: Failure while executing: /usr/local/bin/brew tap homebrew/core
Failed during: /usr/local/bin/brew update --force
Mylos-MacBook-Air:flutter mylo$ ruby -e "$(curl -fsSL
Then this:
env GIT_SSL_NO_VERIFY=true ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Mylos-MacBook-Air:flutter mylo$ env GIT_SSL_NO_VERIFY=true 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/HomebrewPress RETURN to continue or any other key to abort
==> Downloading and installing Homebrew...
HEAD is now at 837ea74f4 Merge pull request #3543 from MikeMcQuaid/remove-env-unsets
fatal: unable to access 'https://github.com/Homebrew/brew/': SSLRead() return error -9806
Error: Fetching /usr/local/Homebrew failed!
==> Tapping homebrew/core
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'...
fatal: unable to access 'https://github.com/Homebrew/homebrew-core/': SSLRead() return error -9806
Error: Failure while executing: git clone https://github.com/Homebrew/homebrew-core /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1
Error: Failure while executing: /usr/local/bin/brew tap homebrew/core
Failed during: /usr/local/bin/brew update --force
Mylos-MacBook-Air:flutter mylo$ pwd
/Users/mylo/Dev/flutter
Trying to muck around with flutter. Cheers
Seeing a couple of issues in discourse are caused one way or another by an already existing install being owned by root. Would it be feasible if the installer checked if it would be able to create/chown directories there before trying to?
https://discourse.brew.sh/t/i-cant-seem-to-install-home-brew-on-version-10-13-6/2820
https://discourse.brew.sh/t/i-have-problem-with-installation-please-help/2895
It appears the uninstall script is not removing some postgres
remnants. We are seeing a bunch of stuff in /usr/local/var/postgres
after running the uninstall script.
In the docker world there are quite few things being run as root in the container.
Security is to be limited from outside, using SELinux, AppArmour, etc.
Kindly review the root installation policy and allow to run brew install using root user.
In the installer script comments at the top of the file it says you can change the value of HOMEBREW_PREFIX to install someplace other than /usr/local. Doing this results in a broken install where you can't run the brew subcommands (like "brew install"). You also have to change the value of HOMEBREW_REPOSITORY to be a subdirectory of whatever you just set HOMEBREW_PREFIX to be for the brew subcommands to work.
The custom directory you set in the script also will have the wrong permissions. It is only writable by root.
The quick fix for this script would be to edit the comments to reflect this. But it's probably better to change HOMEBREW_REPOSITORY to be something like "#{HOMEBREW_PREFIX}/Homebrew".freeze instead of being hard coded. And to check the permissions of whatever is used in HOMEBREW_PREFIX to make sure the directory is writable, and if not, at least print a warning.
Hi, I get this error when installing homebrew in python 2.7 on mac os. I am using spyder, anaconda. Thank you very much.
poonam@Poonams-MacBook-Air-2:/Users> /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
/usr/bin/ruby -e "$(curl -fsSL https://r
<2:/Users> /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/H
< "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/ins
<.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
==> The following existing directories will be made group writable:
/usr/local/bin
/usr/local/include
/usr/local/lib
/usr/local/share
/usr/local/lib/pkgconfig
/usr/local/share/info
/usr/local/share/man
/usr/local/share/man/man1
/usr/local/share/man/man3
/usr/local/share/man/man5
==> The following existing directories will have their owner set to poonam:
/usr/local/bin
/usr/local/include
/usr/local/lib
/usr/local/share
/usr/local/lib/pkgconfig
/usr/local/share/info
/usr/local/share/man
/usr/local/share/man/man1
/usr/local/share/man/man3
/usr/local/share/man/man5
==> The following existing directories will have their group set to admin:
/usr/local/bin
/usr/local/include
/usr/local/lib
/usr/local/share
/usr/local/lib/pkgconfig
/usr/local/share/info
/usr/local/share/man
/usr/local/share/man/man1
/usr/local/share/man/man3
/usr/local/share/man/man5
==> The following new directories will be created:
/usr/local/Cellar
/usr/local/Homebrew
/usr/local/Frameworks
/usr/local/etc
/usr/local/opt
/usr/local/sbin
/usr/local/share/zsh
/usr/local/share/zsh/site-functions
/usr/local/var
==> /usr/bin/sudo /bin/chmod u+rwx /usr/local/bin /usr/local/include /usr/local/lib /usr/local/share /usr/local/lib/pkgconfig /usr/local/share/info /usr/local/share/man /usr/local/share/man/man1 /usr/local/share/man/man3 /usr/local/share/man/man5
sudo: no tty present and no askpass program specified
Failed during: /usr/bin/sudo /bin/chmod u+rwx /usr/local/bin /usr/local/include /usr/local/lib /usr/local/share /usr/local/lib/pkgconfig /usr/local/share/info /usr/local/share/man /usr/local/share/man/man1 /usr/local/share/man/man3 /usr/local/share/man/man5
poonam@Poonams-MacBook-Air-2:/Users>
Ignoring debase-0.2.2.beta8 because its extensions are not built. Try: gem pristine debase --version 0.2.2.beta8
The install script on brew.sh appears to think I have a version of MacOS prior to 10.5 whereas I'm running 10.10.3
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
MacOS too old, see: https://github.com/mistydemeo/tigerbrew
$ /usr/bin/sw_vers -productVersion
10.10.3
$ ruby --version
jruby 1.7.12 (1.9.3p392) 2014-04-15 643e292 on Java HotSpot(TM) 64-Bit Server VM 1.7.0_76-b13 [darwin-x86_64]
When I uninstall homebrew, the uninstaller prompts it will delete /Library/Caches/Homebrew/ but it fails because the permission of /Library/Caches/Homebrew/Formula was of another user that had already installed homebrew. Unless manually deleting /Library/Caches/Homebrew/ directory, installing rvm will fail while installing libraries. It will be better if homebrew uninstaller checks if all the directories supposed to be deleted actually were deleted or not.
Mac OS X 10.10.3
uninstaller: ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
Hello, every time I try to run a command with brew, I keep getting this error:
-bash: /usr/local/bin/brew: /bin/bash^M: bad interpreter: No such file or directory
I'm currently running it on El Capitan, and I can't seem to find any way to fix this. I've tried re-installing it several times but it won't work.
THank you!
Sometimes a Homebrew install
will fail (due to slow network, I think), leaving me with a broken install. As suggested, I attempt to uninstall
. This is the output:
bash-3.2# ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
Warning: This script will remove:
/Library/Caches/Homebrew/
/usr/local/.git/
Are you sure you want to uninstall Homebrew? [y/N] y
==> Removing Homebrew installation...
/usr/bin/find: illegal option -- r
usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression]
find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression]
Warning: Failed during: /usr/bin/find -E -regex .*/info/([^.][^/]*.info|dir) -exec /bin/bash -c /usr/bin/install-info\ --delete\ --quiet\ {}\ "$(dirname\ {})/dir" ;
/usr/bin/find: illegal option -- t
usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression]
find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression]
Warning: Failed during: /usr/bin/find -type l -lname */Cellar/* -exec unlink {} ;
==> Removing empty directories...
/usr/bin/find: illegal option -- n
usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression]
find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression]
Warning: Failed during: /usr/bin/find -name .DS_Store -delete
/usr/bin/find: illegal option -- e
usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression]
find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression]
Warning: Failed during: /usr/bin/find -depth -type d -empty -exec rmdir {} ;
Warning: Homebrew partially uninstalled (but there were steps that failed)!
To finish uninstalling rerun this script with `sudo`.
Notice I'm running the script as root.
It appears the uninstall script is not removing some openssl
remnants (e.g. certificates). We are seeing a bunch of stuff in /usr/local/etc/openssl
after running the uninstall script.
I believe this is due to 7220feb.
Reported by someone on Quora:
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
-e:100:in `realpath': No such file or directory - /usr/local/.git (Errno::ENOENT)
from -e:100:in `realpath'
from -e:100:in `<main>')
It appears the uninstall script is not removing node_modules
. We are seeing a bunch of stuff in /usr/local/lib/node_modules
after running the uninstall script.
cc @gqmelo
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.