2015-04-03 72 views
0

我对编程相当陌生,所以我可以真正使用你的帮助。 我认为优胜美地的升级大肆破坏了我的道路和自制软件,并希望你们这些人可以帮助我重新回到正轨,而不用重新设置我的mac。所以当我准备好重新回到铁轨时,我跑过酿造医生并得到一堆警告,但没有“准备好酿造”,我该如何解决这个问题?Homebrew警告:如何解决这些警告并更正Mac 10.10.2 Yosemite上的路径?

这里是我当前路径:

anian$ echo $PATH 
/usr/local/bin:/usr/local/rvm/gems/ruby-2.0.0-p353/bin:/usr/local/rvm/gems/[email protected]/bin:/usr/local/rvm/rubies/ruby-2.0.0-p353/bin:/usr/local/rvm/bin:/usr/local/heroku/bin:/Users/anian/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/sm/bin:/opt/sm/pkg/active/bin:/opt/sm/pkg/active/sbin 

我目前的bash配置文件:

~/.bash_profile 
-bash: /Users/anian/.bash_profile: Permission denied 

我这样做:回声 '出口PATH = “在/ usr/local/sbin中:$ PATH”' >>〜/ .bash_profile 但是我什么都没有,但你看到下面,请帮助。

这是我得到:

anian$ brew doctor 
Please note that these warnings are just used to help the Homebrew maintainers 
with debugging if you file an issue. If everything you use Homebrew for is 
working fine: please don't worry and just ignore them. Thanks! 

Warning: "config" scripts exist outside your system or Homebrew directories. 
`./configure` scripts often look for *-config scripts to determine if 
software packages are installed, and what additional flags to use when 
compiling and linking. 

Having additional scripts in your path can confuse software installed via 
Homebrew if the config script overrides a system or Homebrew provided 
script of the same name. We found the following "config" scripts: 

    /opt/sm/pkg/active/bin/curl-config 
    /opt/sm/pkg/active/bin/ncurses5-config 
    /opt/sm/pkg/active/bin/ncursesw5-config 
    /opt/sm/pkg/active/bin/pkg-config 
    /opt/sm/pkg/active/bin/xml2-config 
    /opt/sm/pkg/active/bin/xslt-config 

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

我不得不重置我的机器完全,它不会出现有一种方法重置路径,确保一切都在同一时间稳定。