2013-11-22 43 views
8

我收到以下錯誤消息brew doctor

$ brew doctor 
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: 

    /Users/username/.rbenv/shims/passenger-config 

我想這是因爲* -config模式是自制的用途和因爲文件的目錄在$ PATH。我仍然不知道如何解決這個問題。

$ PATH看起來像這樣(我已經重新格式化它,以便其更容易地看到):

/Users/username/.rbenv/shims 
/Users/username/.nvm/v0.9.8/bin 
/usr/local/bin 
/usr/bin 
/bin 
/usr/sbin 
/sbin 
/usr/local/sbin 
/Users/username/bin 

我已經安裝了通過BREW rbenv。

+0

是'/用戶/用戶名/ .rbenv /墊片/'在$ PATH? – CDub

+0

是的。我已經更新了這個問題。 – ayckoster

回答

8

罪魁禍首確實是這一行的自制:

https://github.com/Homebrew/homebrew/blob/master/Library/Homebrew/cmd/doctor.rb#L611

它尋找下面的約定* -config,在這種情況下,你做的文件。如前所述,這不是一個錯誤,只是一個警告。爲了解決這個問題,他們必須有一個不會擴展的所有可能的白名單,所以他們正在做一個最好的猜測。

我有我的機器上的相似:

/Users/duncan/.rbenv/shims/brightbox-config 
/Users/duncan/.rbenv/shims/passenger-config 
+0

我剛剛發現它的價值是什麼https://github.com/Homebrew/homebrew/issues/18552;看起來他們純粹將此視爲一種警告,並且樂於將其留在原地。 –

-1

這不是一個錯誤消息,它是一個警告。 brew doctor提供有關如何在出現問題時修復系統的建議。如果你沒有問題,或者你知道的更好,那麼在你繼續生活之前,沒有必要去除所有這些警告。只要忽略它。

如果你能產生一個特定的規則爲什麼和如何忽略這個文件,你可以用Homebrew提出一個錯誤。