我安装了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
答案 0 :(得分:5)
问题和解决方案都是由您发布的错误消息完整描述的。你不明白它的哪一部分?
Could not symlink file: /usr/local/Cellar/jpeg/8d/bin/wrjpgcom
Target /usr/local/bin/wrjpgcom already exists.
这告诉你,出于某种原因,你已经从Homebrew以外的地方得到了/usr/local/bin/wrjpgcom
,而Homebrew不想弄乱它,以防万一你有充分的理由
To force the link and delete this file, do:
brew link --overwrite formula_name
如果您不知道该文件来自何处,请不要关心,只是希望它被抨击,只需brew link --overwrite jpeg8-d
。
您可能还想运行brew doctor
,让它在您的设置中查找应修复的其他问题。