Macos 端子断开| rbenv:未找到命令
我对OSX Mavericks上的终端体验不好。当我在启动终端时遇到这个错误时,我正在更新Ruby on OS XMacos 端子断开| rbenv:未找到命令,macos,terminal,osx-mavericks,homebrew,Macos,Terminal,Osx Mavericks,Homebrew,我对OSX Mavericks上的终端体验不好。当我在启动终端时遇到这个错误时,我正在更新Ruby on OS X -bash: rbenv: command not found 当我尝试brew doctor /usr/local/Library/Homebrew/global.rb:104:in `split': invalid byte sequence in UTF-8 (ArgumentError) from /usr/local/Library/Homebrew/globa
-bash: rbenv: command not found
当我尝试brew doctor
/usr/local/Library/Homebrew/global.rb:104:in `split': invalid byte sequence in UTF-8 (ArgumentError)
from /usr/local/Library/Homebrew/global.rb:104:in `<top (required)>'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/Library/brew.rb:16:in `<main>'
当我完全退出终端并再次运行它时,我让它工作,但有错误
-bash: eval: line 4: unexpected EOF while looking for matching ``'
-bash: eval: line 5: syntax error: unexpected end of file
-bash: rbenv: command not found
运行
$ brew doctor
Warning: Homebrew's sbin was not found in your PATH but you have installed
formulae that put executables in /usr/local/sbin.
Consider setting the PATH for example like so
echo export PATH='/usr/local/sbin:$PATH' >> ~/.bash_profile
因此,为了解决自制问题,我在路径文件中添加了“/usr/local/sbin”。
$ brew doctor
Warning: Homebrew's sbin was not found in your PATH but you have installed
formulae that put executables in /usr/local/sbin.
Consider setting the PATH for example like so
echo export PATH='/usr/local/sbin:$PATH' >> ~/.bash_profile