无法“酿造链接" imagemagick [英] Unable to 'brew link' imagemagick

查看:87
本文介绍了无法“酿造链接" imagemagick的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过brew安装Imagemagick,并且在安装时收到以下消息:

I'm trying to install Imagemagick via brew, and I get this message upon installation:

    Warning: imagemagick-6.8.6-3 already installed, it's just not linked

当我尝试通过brew链接将其链接时,会显示以下信息:

When I attempt to link it via brew link, I get this:

    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' 

没有运气(我得到与上面相同的错误消息).在这里提出了建议:与ImageMagick进行链接

without luck (I get the same error message as above). It was suggested here: Brew linking with ImageMagick

根据brew更新,我是最新的.酿酒医生返回此:

According to brew update, I'm up to date. Brew doctor returns this:

    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

推荐答案

您需要删除/usr/local/etc中的imagemagick文件,以便brew可以在其中写入新文件.

You need to remove the imagemagick file in /usr/local/etc so that brew can write a new one there.

旧文件是用brew以外的其他东西放置的.可能是另一个程序包管理器.

The old file was placed there by something else than brew. Possibly another package manager.

更新2015.03.07:正如和弦在上面的注释中指出的那样,可能有必要完全删除该文件夹. (尽管设置正确的权限和组可能是等效的措施.)

UPDATE 2015.03.07: as Chords indicated in a comment above it may be necessary to remove the folder entirely. (Although setting the correct permissions and groups may be an equivalent measure.)

这篇关于无法“酿造链接" imagemagick的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆