Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/62.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails Brew警告/pkg配置$PATH_Ruby On Rails_Ruby_Macos_Homebrew_Pkg Config - Fatal编程技术网

Ruby on rails Brew警告/pkg配置$PATH

Ruby on rails Brew警告/pkg配置$PATH,ruby-on-rails,ruby,macos,homebrew,pkg-config,Ruby On Rails,Ruby,Macos,Homebrew,Pkg Config,我正试图按照以下指南()安装Ruby 但当我这么做的时候 brew doctor 我明白了 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. 我以前通过RailsInst

我正试图按照以下指南()安装Ruby

但当我这么做的时候

brew doctor
我明白了

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.

我以前通过RailsInstaller安装过Rails(因为我在RVM方面遇到了问题),但后来我将我的OSx从雪豹升级到了山狮,所以我遵循这个指南。

无论
/opt/sm/…
是什么,请从您的路径中删除它。

最后,我以另一种方式安装了它。谢谢