Ruby on rails Brew与ImageMagick的链接
安装: ostaptan:~ostap$brew安装imagemagick--禁用openmp--从源代码Ruby on rails Brew与ImageMagick的链接,ruby-on-rails,macos,imagemagick,homebrew,rmagick,Ruby On Rails,Macos,Imagemagick,Homebrew,Rmagick,安装: ostaptan:~ostap$brew安装imagemagick--禁用openmp--从源代码 ==> 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
==> 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链接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
如何链接???怎么办??到处都找不到答案 按照brew链接输出中的建议,尝试
brew link -f imagemagick
这将清理/usr/local/include/ImageMagick/
中的旧链接,然后链接完成安装所需的文件
如果这不起作用,请检查您的用户是否有权限写入
/usr/local/include/ImageMagick/*
在数小时的尝试后,唯一对我有效的方法是:
sudo brew link --overwrite imagemagick
(还需要将
/usr/local/bin/brew
更改为root
)Homebrew不再支持覆盖sudo命令
sudo brew link --overwrite imagemagick
错误:以root用户身份运行Homebrew非常危险,不再受支持。
由于Homebrew不会放弃安装特权,因此您将提供所有
生成脚本可以完全访问您的系统