在OS X上覆盖/ usr / local / bin / convert是否安全?

时间:2014-02-05 10:43:38

标签: macos imagemagick install osx-mavericks

我正在尝试在OS X Mavericks上安装imagemagick。当我运行brew install imagemagick时,我会在结尾处获得此输出:

Warning: Could not link imagemagick. Unlinking...
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
You can try again using `brew link imagemagick'

Possible conflicting files are:
/usr/local/bin/convert
/usr/local/share/man/man1/convert.1
==> Summary

我尝试了列出here的一些解决方案(虽然不是全部),但没有进一步说明。我也试过brew link imagemagick,但我得到了:

Linking /usr/local/Cellar/imagemagick/6.8.7-7... Warning: Could not link imagemagick. Unlinking...

Error: Could not symlink file: /usr/local/Cellar/imagemagick/6.8.7-7/bin/convert
Target /usr/local/bin/convert already exists. You may need to delete it.
To force the link and overwrite all other conflicting files, do:
  brew link --overwrite formula_name

To list all files that would be deleted:
  brew link --overwrite --dry-run formula_name

所以我的问题是:运行brew link --overwrite imagemagick是否安全?如果我覆盖/usr/local/bin/convert会出现什么问题?

1 个答案:

答案 0 :(得分:2)

我遇到了同样的问题,经过一番调查后,我很确定现有的/ usr / local / bin / convert是用MacTeX安装的,我没有通过自制软件安装。用安装好的自制软件替换它'转换'工作得很好 - 你可能想要预先备份现有的文件,以防万一。