【问题标题】:Homebrew Warnings: How do I resolve these warning and correct my path on Mac 10.10.2 Yosemite?Homebrew 警告:如何解决这些警告并更正 Mac 10.10.2 Yosemite 上的路径?
【发布时间】:2015-06-08 21:08:28
【问题描述】:

我对编程很陌生,所以我真的可以使用你的帮助。 我认为优胜美地升级已经彻底搞砸了我的道路和自制软件,并希望你们可以帮助我回到正轨而无需重置我的 mac。因此,当我准备好重新投入到 Rails 中时,我运行了 brew doctor 并收到了一堆警告,但没有“准备好酿造”,我该如何解决这个问题?

这是我当前的路径:

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

【问题讨论】:

    标签: ruby path warnings homebrew osx-yosemite


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2012-10-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-04-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多