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

use*_*096 7 homebrew octave

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

brew install octave --without-docs
Run Code Online (Sandbox Code Playgroud)

几乎立即给了我

Error: You must `brew link ghostscript' before octave can be installed
Run Code Online (Sandbox Code Playgroud)

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

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
Run Code Online (Sandbox Code Playgroud)

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

谢谢

Ghr*_*rua 3

这对我来说工作

1.你应该ghostscript删除/usr/local/share

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

3.brew链接--覆盖ghostscript

4.你可以brew install octave