2015-04-03 67 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

我不得不重置我的機器完全,它不會出現有一種方法重置路徑,確保一切都在同一時間穩定。