自制警告:如何在Mac 10.10.2 Yosemite上解决这些警告并纠正我的路径?

时间:2015-04-03 18:42:32

标签: ruby path warnings homebrew osx-yosemite

我对编程很新,所以我真的可以使用你的帮助。 我认为Yosemite的升级已经让我的道路和自制软件变得非常糟糕,并且希望大家可以帮助我重新回到正轨而不重置我的mac。因此,当我准备潜入铁轨时,我开了一个酿酒医生并得到了一堆警告,但没有“准备酿造”,我该如何解决这个问题?

这是我目前的路径:

anian$ echo $PATH
/usr/local/bin:/usr/local/rvm/gems/ruby-2.0.0-p353/bin:/usr/local/rvm/gems/ruby-2.0.0-p353@global/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

我这样做:echo'export 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

1 个答案:

答案 0 :(得分:0)

我不得不完全重置我的机器,似乎没有办法重置路径并确保一切都稳定在同一时间。