错误:安装Octave时无法使用符号链接bin / dvipdf

时间:2014-10-22 14:26:16

标签: octave homebrew

我正在尝试使用Brew在Mac OS Mavericks上安装Octave。我跑了

brew install octave --without-docs

几乎立即给了我

Error: You must `brew link ghostscript' before octave can be installed

我做到了,它给了我以下内容:

Error: Could not symlink bin/dvipdf
Target /usr/local/bin/dvipdf
already exists. You may want to remove it:
  rm /usr/local/bin/dvipdf

To force the link and overwrite all conflicting files:
  brew link --overwrite ghostscript

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

我跑了最后一个,它向我展示了一堆我以前从未见过的文件。我该怎么办?用brew链接删除它们 - 覆盖ghostscript,还是做别的什么?

由于

1 个答案:

答案 0 :(得分:3)

This work for me

1.您应该删除ghostscript

中的/usr/local/share

2. brew doctor,它会提示您一些选项

3.brew link --overwrite ghostscript

4.你可以brew install octave