2016-09-17 49 views
5

最近brew doctorbrew upgrade --all(我不知道它,我在腳本中運行它們)報告如下:爲什麼我的所有自制軟件包突然「斷開連接」;我該如何解決這個問題?

Homebrew from 5371359 to e3fe270. 
Updated 3 taps (caskroom/cask, homebrew/boneyard, homebrew/core). 
Error: Could not symlink bin/dvipdf 
Target /usr/local/bin/dvipdf 
already exists. You may want to remove it: 
    rm '/usr/local/bin/dvipdf' 

To force the link and overwrite all conflicting files: 
    brew link --overwrite ghostscript 

To list all files that would be deleted: 
    brew link --overwrite --dry-run ghostscript 
Error: Could not symlink bin/easy_install 
Target /usr/local/bin/easy_install 
already exists. You may want to remove it: 
    rm '/usr/local/bin/easy_install' 

To force the link and overwrite all conflicting files: 
    brew link --overwrite python 

To list all files that would be deleted: 
    brew link --overwrite --dry-run python: 

我通過運行遵循這些說明:

brew link --overwrite python 
brew link --overwrite ghostscript 

但現在每當我運行brew doctor得到:

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: 
    # A list of EVERYTHING listed by brew list 

即:brew doctor現在顯示我已經安裝的所有東西 - 所有東西都列在brew list之間,因爲它們之間沒有任何聯繫!

這是怎麼回事?爲什麼我使用Homebrew安裝的所有東西都突然斷開?他們是怎麼得到這種方式的?我能(安全)做些什麼來解決我的家釀安裝(除了個別在我安裝的每一件事情?

回答

3

運行brew update手動運行brew link --overwrite ...(如果有必要的兩倍)應排序了這一點。

如果不是, brew unlink $(brew list); brew link $(brew list)意願。

+0

任何想法,爲什麼這次卻突然開始遷移代碼發生了什麼? – orome

+1

@raxacoricofallapatorius錯誤。(無論邁克和我都是自制的維護者)。 – 4ae1e1

+0

我得到了很多的'xxxx是小桶,只有而且必須以鏈接--force'。我應該怎麼處理這些?我還得到了'拒絕鏈接:openssl';那裏有什麼最佳做法? – orome

相關問題