Problems of brew installation in Mac os

Keywords: Ruby Google OS X Linux

It's finally done! HomeBrew

  • homebrew is a good installation tool under OS X, similar to apt get under linux
    However, from last summer vacation, the installation of this software can not be installed, baidu several times can not..
    Several more installations were attempted during.. Uninstall, re install several times, or not..
    This is an error message
==> Downloading and installing Homebrew...
HEAD is now at ccf933f Merge pull request #3435 from MikeMcQuaid/auto-update-checked
/usr/local/Homebrew/Library/Homebrew/PATH.rb:71:in split': invalid byte sequence in UTF-8 (ArgumentError) from /usr/local/Homebrew/Library/Homebrew/PATH.rb:71:inblock in parse'
from /usr/local/Homebrew/Library/Homebrew/PATH.rb:71:in each' from /usr/local/Homebrew/Library/Homebrew/PATH.rb:71:inflat_map'
from /usr/local/Homebrew/Library/Homebrew/PATH.rb:71:in parse' from /usr/local/Homebrew/Library/Homebrew/PATH.rb:8:ininitialize'
from /usr/local/Homebrew/Library/Homebrew/utils.rb:325:in new' from /usr/local/Homebrew/Library/Homebrew/utils.rb:325:inwhich_all'
from /usr/local/Homebrew/Library/Homebrew/gpg.rb:5:in find_gpg' from /usr/local/Homebrew/Library/Homebrew/gpg.rb:15:ingpg'
from /usr/local/Homebrew/Library/Homebrew/gpg.rb:22:in <class:Gpg>' from /usr/local/Homebrew/Library/Homebrew/gpg.rb:3:in<top (required)>'
from /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require' from /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:inrequire'
from /usr/local/Homebrew/Library/Homebrew/requirements/gpg2_requirement.rb:2:in <top (required)>' from /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:inrequire'
from /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require' from /usr/local/Homebrew/Library/Homebrew/requirements.rb:3:in<top (required)>'
from /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require' from /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:inrequire'
from /usr/local/Homebrew/Library/Homebrew/dependency_collector.rb:5:in <top (required)>' from /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:inrequire'
from /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require' from /usr/local/Homebrew/Library/Homebrew/software_spec.rb:6:in<top (required)>'
from /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require' from /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:inrequire'
from /usr/local/Homebrew/Library/Homebrew/formula.rb:10:in <top (required)>' from /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:inrequire'
from /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require' from /usr/local/Homebrew/Library/Homebrew/readall.rb:1:in<top (required)>'
from /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require' from /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:inrequire'
from /usr/local/Homebrew/Library/Homebrew/tap.rb:3:in <top (required)>' from /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:inrequire'
from /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require' from /usr/local/Homebrew/Library/Homebrew/compat/tap.rb:1:in<top (required)>'
from /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require' from /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:inrequire'
from /usr/local/Homebrew/Library/Homebrew/compat.rb:2:in <top (required)>' from /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:inrequire'
from /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require' from /usr/local/Homebrew/Library/Homebrew/global.rb:63:in<top (required)>'
from /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require' from /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:inrequire'
from /usr/local/Homebrew/Library/Homebrew/brew.rb:21:in `

'

Today, if you want to install a software, you still need to use homebrew. Make up your mind, take a deep breath, dive in, open google, search for crazy information, and find the official github of homebrew troubleshooting this

And we can filter the information through filter. After two simple searches, we finally found a solution.

  • export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

    • Run this command.. Finally, the problem was solved, and tears filled my face. Thanks to chrome, thanks to google, thanks to homerew. Share my experience of blood and tears, and avoid the repeated steps of my friends.. A broken software has been installed for months, wasting hours. It's sad.
      Finally, I want to praise Google search. It's so easy to use

Posted by kirk112 on Mon, 20 Apr 2020 09:49:43 -0700