我继承了一台电脑,它显然安装了Imagemagick的东西,而不是自制的。当我运行brew医生时,我会收到以下警告:
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected dylibs:
/usr/local/lib/libMagick++-6.Q16.6.dylib
/usr/local/lib/libMagickCore-6.Q16.2.dylib
/usr/local/lib/libMagickWand-6.Q16.2.dylib
Warning: Unbrewed header files were found in /usr/local/include.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected header files:
/usr/local/include/ImageMagick-6/magick/accelerate.h
/usr/local/include/ImageMagick-6/magick/animate.h
#huge list redacted然后:
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
Macbook: fred$ brew link imagemagick
Linking /usr/local/Cellar/imagemagick/6.9.1-10...
Error: Could not symlink etc/ImageMagick-6/coder.xml
Target /usr/local/etc/ImageMagick-6/coder.xml
already exists. You may want to remove it:
rm '/usr/local/etc/ImageMagick-6/coder.xml'
To force the link and overwrite all conflicting files:
brew link --overwrite imagemagick
Macbook: fred$ rm /usr/local/etc/ImageMagick-6/coder.xml
override rw-r--r-- root/admin for /usr/local/etc/ImageMagick-6/coder.xml? y
rm: /usr/local/etc/ImageMagick-6/coder.xml: Permission denied因此,我继续做他们的suggest...but,我似乎不能删除这些文件。
Macbook: fred$ brew link --overwrite imagemagick
Linking /usr/local/Cellar/imagemagick/6.9.1-10...
Error: Could not symlink etc/ImageMagick-6/coder.xml
/usr/local/etc/ImageMagick-6 is not writable.
Macbook: fred$ 我以前成功地在其他的ImageMagick上安装了machines...but,我只是不知道这里发生了什么
发布于 2015-08-03 14:46:24
与其说这是一个回答,不如说这是一个评论,但是对于这样的格式来说,运行时间太长了。
我继承了一台电脑,它显然安装了Imagemagick的东西,而不是自制的。
您能识别出机器上以前的源文件在哪里吗?通常,如果前面的所有者遵循基本的GNU安装方法(即configure、make和make install),只需将cd放入构建目录并键入sudo make uninstall。
如果找不到以前的构建文件,仍然可以卸载,但必须下载与所安装的文件匹配的源代码。
identify -version它应该打印出类似Version: ImageMagick 6.8.5-10 2013-07-08 Q16 ...的东西。
跳到http://imagemagick.org/download/releases/并找到与您的计算机上安装的版本匹配的版本。
# Download & extract (YMMV)
curl -O http://imagemagick.org/download/releases/ImageMagick-6.8.5-10.tar.xz
tar xfJ ImageMagick-6.8.5-10.tar.xz
cd ImageMagick-6.8.5-10
# Configure source, and be sure that default `Q16` matches.
./configure
# Uninstall
sudo make uninstall注意: ImageMagick是一个复杂的生态系统,包含实用程序、文档、库和支持运行时构件。尝试手动删除共享库可能会带来更多的问题。GNU自动工具应该帮你处理这件事。
https://stackoverflow.com/questions/31752333
复制相似问题