1

我安装了 PIL,然后安装了 libjpeg,但出现以下错误:

    jpeg8-d is already installed, it's just not linked
    Could not symlink file: /usr/local/Cellar/jpeg/8d/bin/wrjpgcom
    Target /usr/local/bin/wrjpgcom already exists. You may need to delete it.
    To force the link and delete this file, do:
    brew link --overwrite formula_name
4

1 回答 1

6

您发布的错误消息完全描述了问题和解决方案。你不明白它的哪一部分?

Could not symlink file: /usr/local/Cellar/jpeg/8d/bin/wrjpgcom
Target /usr/local/bin/wrjpgcom already exists.

这告诉您,出于某种原因,您已经/usr/local/bin/wrjpgcom从 Homebrew 之外的某个地方获得了 a,而 Homebrew 不想弄乱它,以防您有充分的理由。

To force the link and delete this file, do:
brew link --overwrite formula_name

如果你不知道那个文件是从哪里来的,不要在意,只想让它被炸毁,就做brew link --overwrite jpeg8-d.

您可能还希望运行brew doctor它以查找您应该修复的设置中的其他问题。

于 2012-11-14T01:09:15.433 回答