2016-09-17 16 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

相关问题