Homebrew installation failing in OSX Yosemite


#1

I want to install Homebrew, but the installation fails as below:

julia> versioninfo()
Julia Version 0.6.0
Commit 903644385b (2017-06-19 13:05 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin13.4.0)
  CPU: Intel(R) Core(TM) i5-4570R CPU @ 2.70GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.9.1 (ORCJIT, haswell)
julia> Pkg.add( "Homebrew" )
INFO: Installing Cairo v0.3.1
INFO: Installing Homebrew v0.6.0
INFO: Building Homebrew
INFO: Downloading brew...
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles-portable/portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz
Already downloaded: /Users/vish/Library/Caches/Homebrew/portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz
==> Pouring portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz
WARNING: The following packages do not have relocatable bottles, installation may fail!
Please report these packages to https://github.com/JuliaLang/Homebrew.jl:
  git
Updating Homebrew...
remote: Counting objects: 1137, done.
remote: Compressing objects: 100% (1046/1046), done.
remote: Total 1137 (delta 110), reused 374 (delta 47), pack-reused 0
Receiving objects: 100% (1137/1137), 1.21 MiB | 129.00 KiB/s, done.
Resolving deltas: 100% (110/110), done.
From https://github.com/Homebrew/brew
 * [new branch]      master     -> origin/master
remote: Counting objects: 4618, done.
remote: Compressing objects: 100% (4402/4402), done.
remote: Total 4618 (delta 34), reused 312 (delta 8), pack-reused 0
Receiving objects: 100% (4618/4618), 3.83 MiB | 298.00 KiB/s, done.
Resolving deltas: 100% (34/34), done.
From https://github.com/Homebrew/homebrew-core
 * [new branch]      master     -> origin/master
Warning: Already linked: /Users/vish/.julia/v0.6/Homebrew/deps/usr/Cellar/git/2.15.0
remote: Counting objects: 91516, done.
remote: Compressing objects: 100% (22902/22902), done.
remote: Total 91516 (delta 66942), reused 90900 (delta 66338), pack-reused 0
Receiving objects: 100% (91516/91516), 20.19 MiB | 224.00 KiB/s, done.
Resolving deltas: 100% (66942/66942), completed with 485 local objects.
From https://github.com/Homebrew/brew
 * [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
Switched to a new branch 'stable'
WARNING: The following packages do not have relocatable bottles, installation may fail!
Please report these packages to https://github.com/JuliaLang/Homebrew.jl:
  git
error: tag '9.9.9' not found.
remote: Counting objects: 984, done.
remote: Compressing objects: 100% (253/253), done.
remote: Total 984 (delta 784), reused 905 (delta 710), pack-reused 0
Receiving objects: 100% (984/984), 126.41 KiB | 565.00 KiB/s, done.
Resolving deltas: 100% (784/784), completed with 101 local objects.
Note: checking out '9.9.9'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at b4e1e39d3... Merge pull request #3296 from reitermarkus/refactor-languages
WARNING: The following packages do not have relocatable bottles, installation may fail!
Please report these packages to https://github.com/JuliaLang/Homebrew.jl:
  git
INFO: Building Cairo
WARNING: The following packages do not have relocatable bottles, installation may fail!
Please report these packages to https://github.com/JuliaLang/Homebrew.jl:
  glib
Warning: Already linked: /Users/vish/.julia/v0.6/Homebrew/deps/usr/Cellar/pcre/8.41
/Users/vish/.julia/v0.6/Homebrew/deps/usr/Library/Homebrew/utils/github.rb:210:in `raise_api_error': GitHub  (GitHub::AuthenticationFailedError)
The GitHub credentials in the macOS keychain may be invalid.
Clear them with:
  printf "protocol=https\nhost=github.com\n" | git credential-osxkeychain erase
Or create a personal access token:
  https://github.com/settings/tokens/new?scopes=gist,public_repo&description=Homebrew
and then set the token as: export HOMEBREW_GITHUB_API_TOKEN="your_new_token"
	from /Users/vish/.julia/v0.6/Homebrew/deps/usr/Library/Homebrew/utils/github.rb:178:in `open'
	from /Users/vish/.julia/v0.6/Homebrew/deps/usr/Library/Homebrew/utils/github.rb:278:in `search'
	from /Users/vish/.julia/v0.6/Homebrew/deps/usr/Library/Homebrew/utils/github.rb:225:in `search_issues'
	from /Users/vish/.julia/v0.6/Homebrew/deps/usr/Library/Homebrew/utils/github.rb:238:in `issues_for_formula'
	from /Users/vish/.julia/v0.6/Homebrew/deps/usr/Library/Homebrew/exceptions.rb:369:in `fetch_issues'
	from /Users/vish/.julia/v0.6/Homebrew/deps/usr/Library/Homebrew/exceptions.rb:365:in `issues'
	from /Users/vish/.julia/v0.6/Homebrew/deps/usr/Library/Homebrew/exceptions.rb:419:in `dump'
	from /Users/vish/.julia/v0.6/Homebrew/deps/usr/Library/Homebrew/brew.rb:135:in `rescue in <main>'
	from /Users/vish/.julia/v0.6/Homebrew/deps/usr/Library/Homebrew/brew.rb:30:in `<main>'
==================================================================================[ ERROR: Cairo ]===================================================================================

LoadError: failed process: Process(`/Users/vish/.julia/v0.6/Homebrew/deps/usr/bin/brew install --ignore-dependencies glib`, ProcessExited(1)) [1]
while loading /Users/vish/.julia/v0.6/Cairo/deps/build.jl, in expression starting on line 162

=====================================================================================================================================================================================

==================================================================================[ BUILD ERRORS ]===================================================================================

WARNING: Cairo had build errors.

 - packages with build errors remain installed in /Users/vish/.julia/v0.6
 - build the package(s) and all dependencies with `Pkg.build("Cairo")`
 - build a single package by running its `deps/build.jl` script

=====================================================================================================================================================================================
INFO: Package database updated
INFO: METADATA is out-of-date — you may not have the latest version of Homebrew
INFO: Use `Pkg.update()` to get the latest versions of your packages

I tried manually removing the package directory from the path, but upon adding again, the same problem happens.

Kindly help!


#2

Have a look through some of the issues (closed and open) at the HomeBrew.jl site to see if anything there helps. Suggestions include: making sure you have Xcode updated and accepted, repeating the upgrade process a couple of times, etc… Failing that, open a new issue over there…


#3

The problem was with Xcode. I updated to High Sierra and new Xcode, now it is working :slight_smile: