终端破损| rbenv:找不到命令

时间:2014-06-06 15:37:10

标签: macos terminal osx-mavericks homebrew

我在OS X 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/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>'

我的路径文件

/bin
/usr/local/bin
/usr/local/sbin
/usr/bin
/bin
/usr/sbin
/sbin
/opt/local/bin
~/.bash_profile

当我完全退出终端并再次运行时,我会让它工作但有错误

-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

0 个答案:

没有答案