用Homebrew装东西的时候,遇到的错误

Homebrew must be run under Ruby 2.3! (RuntimeError)
brew安装软件时ruby版本不符

解决方法:
升级到2.3(先查看当前ruby版本)
# 查看当前Ruby版本
ruby --version
ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]
# 升级Ruby版本(此处是升级到2.3)
brew install [email protected]

Error: parent directory is world writable but not sticky
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tmpdir.rb:92:in `mktmpdir'
/usr/local/Homebrew/Library/Homebrew/utils/fork.rb:6:in `safe_fork'
/usr/local/Homebrew/Library/Homebrew/formula_installer.rb:675:in `build'
/usr/local/Homebrew/Library/Homebrew/formula_installer.rb:306:in `install'
/usr/local/Homebrew/Library/Homebrew/formula_installer.rb:546:in `install_dependency'
/usr/local/Homebrew/Library/Homebrew/formula_installer.rb:513:in `block in install_dependencies'
/usr/local/Homebrew/Library/Homebrew/formula_installer.rb:513:in `each'
/usr/local/Homebrew/Library/Homebrew/formula_installer.rb:513:in `install_dependencies'
/usr/local/Homebrew/Library/Homebrew/formula_installer.rb:246:in `install'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:341:in `install_formula'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:226:in `block in install'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:224:in `each'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:224:in `install'
/usr/local/Homebrew/Library/Homebrew/brew.rb:95:in `
'

解决:sudo chmod +t /private/tmp/


你可能感兴趣的:(其它)