我正在尝试从ruby 1.9.3升级到ruby 2.0.0。我不能这样做因为我得到一个错误说需要lib工具。获取libtool的建议引导我进入Homebrew。我以前用它但删除它因为它不会让我安装任何东西。我不断收到很多错误,但没有提出如何处理错误的建议。我目前的酿造医生错误列表是:
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: /usr/bin occurs before /usr/local/bin
This means that system-provided programs will be used instead of those
provided by Homebrew. The following tools exist at both paths:
git
git-cvsserver
git-receive-pack
git-shell
git-upload-archive
git-upload-pack
Consider setting your PATH so that /usr/local/bin
occurs before /usr/bin. Here is a one-liner:
echo export PATH="/usr/local/bin:$PATH" >> ~/.bash_profile
Warning: You have a non-Homebrew 'pkg-config' in your PATH:
/opt/sm/pkg/active/bin/pkg-config
`./configure` may have problems finding brew-installed packages using
this other pkg-config.
我尝试按照建议运行echo export PATH但是这个错误不断被引发。至于其他每一个,我不知道如何解决它们。这真让我抓狂!提前感谢您提供的任何帮助。
答案 0 :(得分:0)
您的系统/ etc / paths中有一个文件,在我的系统中它看起来像这样:
edgarss-mac-pro:~ ejekabsons$ cat /etc/paths
/usr/local/bin
/usr/bin
/bin
/usr/sbin
/sbin
正如您所看到的,我已将/ usr / local / bin放得更高,以使该文件夹中的可执行文件的优先级高于/ usr / bin。