我正在尝试通过brew安装Imagemagick,我在安装时收到此消息:
Warning: imagemagick-6.8.6-3 already installed, it's just not linked
当我尝试通过brew链接链接时,我明白了:
brew link imagemagick
Warning: Could not link imagemagick. Unlinking...
Linking /usr/local/Cellar/imagemagick/6.8.6-3...
Error: File exists - /usr/local/etc
想法?我试过了:
'brew link -f imagemagick'
没有运气(我得到与上面相同的错误信息)。这里建议:Brew linking with ImageMagick
根据brew更新,我是最新的。 Brew医生回复:
Warning: You have MacPorts or Fink installed:
/Users/user_name/.rvm/bin/port, /opt/local/bin/port
This can cause trouble. You don't have to uninstall them, but you may want to
temporarily move them out of the way, e.g.
sudo mv /opt/local ~/macports
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:
imagemagick
答案 0 :(得分:1)
您需要删除/usr/local/etc
中的imagemagick文件,以便brew可以在那里写一个新文件。
旧文件放在那里,而不是brew。可能是另一个包经理。
更新2015.03.07:正如Chords在上述评论中指出的那样,可能需要完全删除该文件夹。 (尽管设置正确的权限和组可能是一个等效的度量。)