使用ImageMagick进行Brew链接 [英] Brew linking with ImageMagick

查看:173
本文介绍了使用ImageMagick进行Brew链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

安装:
ostaptan:~ostap $ brew install imagemagick --disable-openmp --from-source

Installing: ostaptan:~ ostap$ brew install imagemagick --disable-openmp --from-source

==> Downloading http://downloads.sf.net/project/machomebrew/mirror/ImageMagick-6.7.7-6.tar.bz2
Already downloaded: /Library/Caches/Homebrew/imagemagick-6.7.7-6.tar.bz2
==> Patching
patching file configure
Hunk #1 succeeded at 32371 (offset 447 lines).
==> ./configure --disable-osx-universal-binary --without-perl --prefix=/usr/local/Cellar/imagemagick/6.7.7-6 --enable-shared --disable-static
==> make install
Error: The linking step did not complete successfully
The formula built, but is not symlinked into /usr/local
You can try again using `brew link imagemagick'
==> Summary
/usr/local/Cellar/imagemagick/6.7.7-6: 1388 files, 32M, built in 61 seconds

在安装中链接错误后进行链接:

ostaptan:wand ostap $ brew link imagemagick

ostaptan:wand ostap$ brew link imagemagick

Linking /usr/local/Cellar/imagemagick/6.7.7-6...

Error: Could not symlink file: /usr/local/Cellar/imagemagick/6.7.7-6/include/ImageMagick/wand/wand-view.h

Target /usr/local/include/ImageMagick/wand/wand-view.h already exists. You may need to delete it.

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

To list all files that would be deleted:
  brew link -n formula_name

如何链接???该怎么办??无法在任何地方找到答案!

How to link??? what to do?? Can't find answers anywhere!

推荐答案

正如brew链接输出中所示,请尝试

As suggested in the brew link output, try

brew link -f imagemagick

这个应清理 / usr / local / include / ImageMagick / 中的旧链接,然后链接完成安装所需的文件。

This should clean up old links in /usr/local/include/ImageMagick/, and then link the files required to complete the installation.

如果这不起作用,请检查您的用户是否有权写入 / usr / local / include / ImageMagick / *

If this doesn't work check that your user has permission to write to /usr/local/include/ImageMagick/*.

这篇关于使用ImageMagick进行Brew链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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