gpt4 book ai didi

ruby-on-rails - Brew与ImageMagick链接

转载 作者:行者123 更新时间:2023-12-04 17:02:32 25 4
gpt4 key购买 nike

安装:
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
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/*

关于ruby-on-rails - Brew与ImageMagick链接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11878888/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com