2017-07-25 67 views
0

我遇到的問題是安裝mysql與Homebrew,並且運行brew doctor來嘗試進入底層。解決自制警告不會造成不良影響

給出的建議總是能夠解決Homebrew提出的警告/錯誤,但是我不希望這樣做會對我的系統造成不良的副作用。

據我所知,節點錯誤可能是由手動安裝節點引起的,而不是與Homebrew引起的。我不確定git unlinked桶是關於什麼的。

解決這些錯誤的最安全的方法是什麼?

CRMPiccos-MacBook:~ crmpicco$ 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: Unbrewed header files were found in /usr/local/include. 
If you didn't put them there on purpose they could cause problems when 
building Homebrew formulae, and may need to be deleted. 

Unexpected header files: 
    /usr/local/include/node/node_internals.h 
    /usr/local/include/node/smalloc.h 
    /usr/local/include/node/v8stdint.h 

Warning: You have unlinked kegs in your Cellar 
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on 
those kegs to fail to run properly once built. Run `brew link` on these: 
    git 

回答

0

據我瞭解,該節點錯誤可能用自制手動和不安裝節點所致。

我不知道這些文件來自哪裏,但如果您害怕將它們移除,您可以將它們移動到某個位置,然後在需要時移動它們。

我不確定什麼git unlinked桶是關於。

git已安裝,但沒有符號鏈接到標準位置,如/usr/local/bin和朋友。依賴於特定git安裝的程序因此無法找到它。如果您沒有任何依賴它的公式,您應該運行brew link gitbrew rm git

+0

這會影響我以任何方式默認的git安裝嗎?或者這樣做是否安全? 「咕嚕」呢? – crmpicco

+0

@crmpicco它不會影響默認的git安裝,因爲它沒有鏈接。 (編輯:也注意所有這些都可以回滾:'brew link git' - >'brew unlink git';'brew rm git' - >'brew install git')。 – bfontaine